Hello
I created the header file using Labview VI.
Read my data is an I32.
In the description, a buffer created and due dates come in an array.
Can someone help me to configure the VI for Labview?
How is data retrieved?
Thanks
Hello
I created the header file using Labview VI.
Read my data is an I32.
In the description, a buffer created and due dates come in an array.
Can someone help me to configure the VI for Labview?
How is data retrieved?
Thanks
Here is a simple LabVIEW example to read the data from the K8047 to an array.
It opens the communication link, turns the LED on, reads the data, turns the LED off and finally closes the communication to the K8047.
Here is how the function ReadData is defined:
Here is the header file you need to check the function prototypes:
[code]#ifdef __cplusplus
extern “C” {
#endif
#define FUNCTION __declspec(dllimport)
FUNCTION void __stdcall StartDevice();
FUNCTION void __stdcall StopDevice();
FUNCTION void __stdcall LEDon();
FUNCTION void __stdcall LEDoff();
FUNCTION void __stdcall ReadData(int *ptr);
FUNCTION void __stdcall SetGain(int Channel, int Gain);
#ifdef __cplusplus
}
#endif[/code]
I’m sorry if i re-post in such an old discussion, but i have some problems using K8047D.dll and Call Library Function Node in Labview 2012. I did not use any header file, and i set manually each function.
Just to try, i created a simple block scheme, using StartDevice ----- [while loop (LedON)]---- LedOFF ---- StopDevice. It should turn on my led untill the exit from the loop: after that it should turn it off and stop my device.
When i run it, no error reported but anything appen.
The manually set of the function used is the same for all: void input, void output.
The blocks interconnection scheme is the same of the previous post. And nothing different (i think).
What’s wrong?
Thanks for answering!
Marco