LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing problem

Actually, it is my first trial to use Visual Basic to get signal from DAQ.
And i don't how to interface them. I have read an article to use DataSocket.
However, it demostrated the OPC demo in OPC sever only, and so i didn't know
how to get the signal directly from DAQ card to monitor the real-time
signal.
Also, i have tried to build a .dll from my VI file which is used to monitor
the DAQ signal. However, the .dll file didn't have any return value or
argument, did it mean i can use this method?
And how can i interface the DAQ using VB?and my ADC model is AT-MIO-16E-2!
Thank you very much
0 Kudos
Message 1 of 2
(2,459 Views)
I'll answer your LabVIEW question about the DLL. The VI that reads the DAQ board needs to have an indicator on it's front panel for the DAQ output. When you create the DLL, on the source file tab, you click on the Add Exported VI button to select the VI and you'll automatically get the Define VI Prototype window. Next to the parameters window, you'll see a little + button. Click on this to add parameters or arguments to the DLL prototype. It will only add existings controls and indicators of the VI. The little window at the bottom shows the Function Prototype that you need in whatever app you want to use the DLL in.

If however, you want to call NI-DAQ functions directly in VB, all of those functions are detailed in the NI-DAQ documentation and you'd prob
ably be better off doing that. LabVIEW calls the NI-DAQ DLL and a VB app that calls a LabVIEW DLL that in turn calls the NI-DAQ DLL doesn't seem the most effecient method.

For help in VB coding, please post to either the VB or DAQ forum but if you have a specific LabVIEW question, feel free to post here again.
0 Kudos
Message 2 of 2
(2,459 Views)