It is currently Tue Apr 25, 2017 6:29 pm

All times are UTC




Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: K8061 + K8055
PostPosted: Thu Mar 10, 2016 6:56 am 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
Did all that was sugested but get error Keine Überladung for the ReadAllAnalog_K8055 Method takes one Argument
implemented the following code
[DllImport("k8055d.dll", EntryPoint = "ReadAllAnalog")]
public static extern void ReadAllAnalog_K8055(ref int Data1, ref int Data2);
[DllImport("k8061.dll")]
public static extern void ReadAllAnalog(int CardAddress, int[] Buffer);
ReadAllAnalog_K8055(ref int Data1, ref int Data2);
Greetings


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Thu Mar 10, 2016 7:06 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Mon Dec 11, 2006 12:03 pm
Posts: 4880
Location: Belgium
This should work:
Code:
 [DllImport("k8055d.dll", EntryPoint = "ReadAllAnalog")]
        public static extern void ReadAllAnalog_K8055(ref int Data1, ref int Data2);


Code:
 [DllImport("k8061.dll")]
        public static extern void ReadAllAnalog(int CardAddress, int[] Buffer);


For more details please see the K8061 C# example code.


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Thu Mar 10, 2016 1:23 pm 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
Implemented the code as proposed but still get Errors
any advices appreciated how that can be solved
are there other Solutions
nice day


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Thu Mar 10, 2016 1:36 pm 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
Found that the Card is easily disturbed by EMC pulses
1nF to ground could solve the Problem
had the Problem that usb was diconnected that was because of direct contact of cables with cables that have a distortion
there should be a hint in the Manual how to install the cables correct


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Thu Apr 07, 2016 2:32 pm 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
May we ask how many cards of K8055 and K8061 your company sells each year
contacted your collegue one year ago and asked him if it is possibel to get a link from my company which is shown at your site
is it possibel to get a link for commercial software product
solved our question which we stated at the forum
forgot to open the connection to the card now everything works with both cards
thank you very much have a nice day greetings
P.S. is there a card planned with more output channels


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Fri Apr 08, 2016 6:51 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Mon Dec 11, 2006 12:03 pm
Posts: 4880
Location: Belgium
Quote:
P.S. is there a card planned with more output channels
At this time, there are no plans for such a device.


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Sat Apr 09, 2016 12:07 pm 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
[DllImport("k8055d.dll", EntryPoint = "ReadAllAnalog")]
public static extern void ReadAllAnalog_K8055(ref int Data1, ref int Data2);

int l = 0; int lFl = 0;
ReadAllAnalog_K8055(ref l,ref lFl);
progressBar9.Value = l;
//int k3=ReadAnalogChannel_K8055(2);
progressBar10.Value = lFl;

wrote this source code but don`t get Data from the Card
if we use the original Software from Company the Card Shows Data
do you have suggestions
greeting


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Mon Apr 11, 2016 7:07 am 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
Found the mistake both Cards work properly now
Thak greetings nice day


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Mon Apr 11, 2016 7:14 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Mon Dec 11, 2006 12:03 pm
Posts: 4880
Location: Belgium
OK, thank you for the reply.
I tested your code too...
Indeed, this seems to work fine:
Code:
        private void button11_Click(object sender, EventArgs e)
        {
            int l = 0; int lFl = 0;
            ReadAllAnalog_K8055(ref l, ref lFl);
            progressBar9.Value = l;
            progressBar10.Value = lFl;
        }


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Thu Apr 14, 2016 1:58 pm 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
have another Thing
the data when for one day data is kept from the Card is sometimes missing for more the 5 hours
advice would be nice
Thank
greetings
bye


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Thu Apr 14, 2016 7:59 pm 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Mon Dec 11, 2006 12:03 pm
Posts: 4880
Location: Belgium
It is very difficult to say what causes this problem.
One possible cause may be some electrical noise interference from the surrounding equipment.


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Fri Apr 15, 2016 6:14 am 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
Also thought that this may cause the Problem
because Software can`t cause such a randomize effect
is it possibel to get a filter before the Inputs
where can we buy one
do you have any suggestions
thank


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Fri Apr 15, 2016 6:33 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Mon Dec 11, 2006 12:03 pm
Posts: 4880
Location: Belgium
I'm sorry, there no such filter available.
You may try adding 100nF ceramic capacitors between each input terminal and GND.


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Fri Apr 15, 2016 12:42 pm 
Offline
Member
Member

Joined: Thu Oct 22, 2015 8:44 am
Posts: 55
Is it possibel to get non SMD ceramic Capacitors
or are there also wired ceramic Capacitors
Thank nice day
greetings
possibel that the wires are to long


Top
 Profile  
 
 Post subject: Re: K8061 + K8055
PostPosted: Mon Apr 18, 2016 6:10 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Mon Dec 11, 2006 12:03 pm
Posts: 4880
Location: Belgium
Quote:
Is it possibel to get non SMD ceramic Capacitors
or are there also wired ceramic Capacitors
Yes, they are available too.
http://www.velleman.eu/products/view/?id=4919
http://www.velleman.eu/products/view/?id=354878


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group