07-22-2013 03:28 PM - edited 07-22-2013 03:28 PM
I would like to generate a 20mA signal via my PXI 6239 device. How would I do so? I am outputting to port ao0. I just can't seem to see the signal.
Thank You
07-22-2013 03:29 PM
The signal needs to be analog output.
07-30-2013 04:39 PM
Jerome,
Here are a few examples which show how to create a VI, using an analog output for 20mA current. They show the most basic steps for sending an analog output which you could then customize to meet your application, you will at a minimum have to change the channel in the VI to match the channel you are outputting to.
https://decibel.ni.com/content/docs/DOC-25372
https://decibel.ni.com/content/docs/DOC-12128
Any additional information you could provide about your application would help with troubleshooting. Particularly, how are you trying to see the signal?
Thanks,
07-31-2013 07:25 AM
I actually have that figured out now. Could you help me with my pump simulator?
________________________________________________________________________________________________________
I'm trying to simulate pump strokes and my while loops does not seem to be working. I have to stop the entire VI to update the value. I want the vi to continuously check my input value if that's possible.
I have attached my VI. I am also running 2010 LABView. Any suggestions on how to change my loop would be great!
Thank You
08-01-2013 07:34 PM
There are two options that would allow you to achieve the functionality that you would like. Essentially, the reason that you are not getting updates, is that while the while loop is running, none of the VI's or indicators are checked for value changes. they are only read when called. The simplest solution (but not best programming practice) would be to put the entire program in a while loop, and make the boolean for that while loop called "stop". Then you could use the stop button you already have as an "update" button.
Alternatively you could use property nodes and local variables to update the task as illustrated in this example:
DAQmx: Pulse Train with Changing Specs:
http://zone.ni.com/devzone/cda/epd/p/id/4812