LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

voltage analog output through DAQmx

Im trying to create an output voltage from Labview VI to an instrument though DAQmx USB 6009 on eMAC computer. I connected and configured the AO1 channel. My block diagram should look something like the one belowbut the problem is there is no DAQ assistant in MAC version of labview. I created exactly the same diagram and need some kind of VI (instead of DAQ assistant) in order to communicate with instrument

thanks,
Vitaliy
York University
0 Kudos
Message 1 of 9
(3,989 Views)

To see what's going on under the hood of the Express VI, just click on it, then Right Mouse Button, then choose Open Front Panel, then Convert. Then look at the wiring diagram and you'll see all of the DAQmx VI's that are used to create the Analog Out. From there, you can learn how to use the individual DAQmx VI's, which is about 10% harder than that silly Express VI. Smiley Wink

 

Richard






0 Kudos
Message 2 of 9
(3,945 Views)

Hi Vitaliy,

To know what DAQmx VIs replace the DAQ assistant, right click on the DAQ assistant and select generate code. Then you can use the exact same code on your MAC.

You can also check the examples in LabVIEW help >> find examples >> hardware Input and Output>>DAQmx>> Analog Generation >> Voltage . There are many sample VI's to set up an analog out task.

Regards,

Faris A

Bueller
0 Kudos
Message 3 of 9
(3,923 Views)
You can teach a man to fish or you can teach him how to buy fish sticks. Of course, the fish sticks get the job done much faster.
Richard






0 Kudos
Message 4 of 9
(3,916 Views)
Thanks, Faris

Faris, there is a little problem with "right click on the DAQ assistant and select generate code" because the Mac version of Labview 7 does not have DAQ assistant. As for examples, I do have things like Cont Gen Voltage Wfm - Int Clk-Non Regeneration.vi but it doesn't seem to work. Anyways, I might as well find a hardware substitute to generating voltage.

There is a new more important task, however. I need to add a second channel, coming from same instrument, to the existing acq&graph Voltage VI (see attachment). I want to get two voltage curves on the same amplitude vs time graph. I configured the second channel and created a task, which also works on a that single channelled VI. Thanks a lot in advance

Vitaliy
0 Kudos
Message 5 of 9
(3,872 Views)
Richard, thanks for the input as well. You are absolutely right about fishsticks, I'd rather buy a nicely proccesed, smoked peice of salmon instead of trying to catch one with little to no fishing experience.
Vitaliy
0 Kudos
Message 6 of 9
(3,871 Views)
Nice DAQmx code written in a multifunctional, scalable, reusable manner = smoked salmon
 
Express VI's = Fish sticks
 
Smiley Very HappySmiley Very Happy 
Richard






0 Kudos
Message 7 of 9
(3,861 Views)
Vitaliy,
 
I recommend checking the daqmx Base Examples.
As far as reading from different channels, you need to add all the channels to the same task.
If you assigned a control for the input of the physical channel of the VI used, select all the channels you want to use. ( You can do that by typing the following in the channel selection: "Dev1/ai0:4 , this will read channels 0 through 4 on Dev1 )
Plotting is so simple, check the attachment for that.
 
Regards,
Faris A
Bueller
0 Kudos
Message 8 of 9
(3,831 Views)
"Dev1/ai0:1"!!! yes yes yes, thank you Faris
0 Kudos
Message 9 of 9
(3,762 Views)