LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you write a VI that receives a voltage from Labjack U12?

I'm using LJ U12 as my DAQ, on my laptop i've plugged in two U12, and after writing one VI,  i'm able to control a voltage 1-5V to one of my U12 (say U12A), which is able to recieve it, and then i've wired the analog output AO0 to the other U12's (say U12B) AI0. Now i would like to have a separate VI for U12B that is able to recieve and display the voltage from U12A, how do you go about writing this separate VI.
 
So basically i'm using one computer and forming a loop, the need of doing so is to simulate U12B as my hardware (e.g control valve) and U12A as my console (e.g computer)
 
With Regards
Wormwood
 
*Note: as attached is the VI that i've written to give voltages.
0 Kudos
Message 1 of 3
(3,031 Views)
First, if you have not already, check out the following topic from the LabJack forum about getting started with the U12 in LabVIEW:
 
 
 
The first thing you should do is run our sample application LJconfig.exe, and assign each U12 a unique local ID.  Say #2 and #3.  Then you pass a 2 or 3 for the IDNum parameter for each function to specify which U12 you are talking to.
 
The attached example uses the easy functions with IDNum = -1, which means first found.  You would just replace the -1 with a 2 or 3.
0 Kudos
Message 2 of 3
(3,005 Views)

Ahhh~~ was figuring about the configuration of the IDnum, thanks for your help Smiley Happy

With Regards

Wormwood

0 Kudos
Message 3 of 3
(2,995 Views)