02-12-2016 02:37 PM
Can someone point me towards some simple vb.net code for interfacing with USB-6008?
I am reading in a 1-5V signal taken from a 4-20mA signal droped across a 250 ohm resistor taken from an electromag flowmeter.
I have been able to add the "NI DAQ Component" item and am getting my voltage input correctly, but is there a way of getting it this voltage reading in the user forum side to plot on xy-scatter graphs etc? or at least a way of getting the "DaqTask1.mxb" window/graph to apear to the user at run time? I appoligise for my lack of knolage on this but i'm very eger to learn!
Much thanks to anyone who can help,
PhilipL.
02-15-2016 02:45 PM
Hi,
You'll need to add reference to the National Instruments DAQmx NET library. Then follow the instructions here;
http://www.ni.com/tutorial/5409/en/
Also, there are several example projects that install with DAQmx. You should find them at
C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\
Curt