Discussion:
voltage analog output through DAQmx
(too old to reply)
kapishon
2008-06-03 15:40:10 UTC
Permalink
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, VitaliyYork University


voltouteditbd.png:
Loading Image...
Broken Arrow
2008-06-04 14:40:09 UTC
Permalink
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. :smileywink:
 
Faris_A
2008-06-04 20:40:08 UTC
Permalink
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
Broken Arrow
2008-06-04 21:10:09 UTC
Permalink
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.
kapishon
2008-06-12 18:40:05 UTC
Permalink
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
Broken Arrow
2008-06-12 20:10:08 UTC
Permalink
Nice DAQmx code written in a multifunctional, scalable, reusable manner = smoked salmon
 
Express VI's = Fish sticks
 
:smileyvery-happy::smileyvery-happy: 
kapishon
2008-06-12 18:10:08 UTC
Permalink
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


Acq&Graph Voltage-Int Clk.vi:
http://forums.ni.com/attachments/ni/170/331268/1/Acq&Graph Voltage-Int Clk.vi
Faris_A
2008-06-13 21:40:10 UTC
Permalink
Vitaliy,
 
I recommend checking the daqmx Base <a href="http://digital.ni.com/public.nsf/allkb/BEA8C88ED8B09AF286256ED0004544F7?OpenDocument" target="_blank">Examples</a>.
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.
&nbsp;
Regards,
Faris A


Plot all channels.PNG:
http://forums.ni.com/attachments/ni/170/331715/1/Plot all channels.PNG
kapishon
2008-06-16 18:40:34 UTC
Permalink
"Dev1/ai0:1"!!! yes yes yes, thank you Faris

Loading...