11-09-2009 03:33 AM
i've problem with call library function node as i try to use velleman k8061 dll file to get it work labview
all function i try get the same problem
but i choose one to explain it
SetDigitalChannel
Syntax
PROCEDURE SetDigitalChannel(CardAddress: Longint; Channel: Longint);
Parameters
CardAddress: The address of previously opened card.
Channel: Value between 1 and 8 which corresponds to the output channel that is to be set.
Description
The selected digital output channel is set ON.
Example
BEGIN
SetDigitalChannel(0, 1);
now when i try to call library function node to k8061.dll and set 2 parameters one for card address and other for channel
card address type: numeric & dtat type : signed 32 bit intger
channel type : numeric & data type :signed 32 bit intger
function prototype
void setdigitalchannel(int32_t address,intg32_t channel);
i also configure call library function node error checking to maximum
now as i run i get error 1517 occurred and tell me that mismatch between the calling conventions ???
Solved! Go to Solution.
11-09-2009 04:21 AM
An error occurred in the Call Library Node processing. This error was most likely a configuration mismatch between the calling conventions of the Call Library Node and the function being called in the DLL. |
11-09-2009 04:22 AM
11-09-2009 06:55 AM
problem solved
thanx
11-09-2009 06:59 AM
problem solved
thanx
11-09-2009 07:23 AM
11-09-2009 09:06 AM
07-09-2014 03:23 PM
Hi
I am also working on controlling K8061 board with LabView. Would you kindly share your VI with me?
The program needs to be able to set output votages in 3 channels from 0-5 V.
Thanks a lot for your help in advance.
email: twu@optics.arizona.edu
07-10-2014 01:08 PM
Is it safe to assume you already have the .dll required? If not, their software appears to be here: http://www.velleman.eu/support/downloads/?code=K8061
Once you have the drivers installed, consider following this tutorial: https://decibel.ni.com/content/docs/DOC-9069 It should help you understand the Call Library Function Node.
Make note of the setting the previous user had incorrect and ensure you set that to c, as he did.
07-10-2014 01:26 PM
Thank you. It works now. You were right that I had wrong setting by choosing stdcall not c. I don't understand why some functions need to be set in c (like OpenDevice and CloseDevice) but some need to be set in stdcall (like OutputAnalogChannel)? I randomly try/ error to make it work but is there a reason for each setting? Thanks for any advice.