02-16-2007 10:01 AM
02-19-2007 09:31 PM
Hi Yingmai,
Thank you for posting to the NI forums. You can set your analog output to write zero volts using the DAQmxSetAOIdleOutputBehavior function with the DAQmx_Val_ZeroVolts parameter. This will write zero volts to your channel after your continuous output is finished.
I hope this helps. Please post back if you have any further questions.
Ed W.
Applications Engineer
National Instruments
02-20-2007 08:15 AM
Hi, Ed W,
Thanks very much for your help, but it doesn't work. The error is "Run-time error '-200452(fffcf0fc)': specified property is not supported by the device or is not applicable to the task." My code is:
DAQmxErrChk (DAQmxSetAOIdleOutputBehavior(AOTaskhandle, "Dev1/ao0", DAQmx_Val_AOIdleOutputBehavior_ZeroVolts))
I'm using PXI-6259.
Thanks in advance,
Yingmai
02-22-2007 06:49 AM
Hi Yingmai,
When you currently stop your analog output, what is the last data value? It should be 0 V.
There is a different function that could work for your program. Try using the DAQmxSetAODACRefConnToGnd DAQmx property. By setting a TRUE to the data parameter, it should output 0 V to your analog channel, and then you can stop your output loop.
Ed W.
Applications Engineer
National Instruments
03-07-2007 09:20 AM - edited 03-07-2007 09:20 AM
Is DAQmxSetAOIdleOutputBehavior available for LabVIEW (for an M Series card) ? If so, where (what property) ? I could not find a DAQmx property for this.
Steve
Message Edited by SteveP on 03-07-2007 10:21 AM
03-08-2007 03:41 PM - edited 03-08-2007 03:41 PM
Hi Steve,
You can find this property in the DAQmx Channel property nodes.
This property may not be available for your device. But make sure to select the correct property filter by right-clicking on the property node and clicking “Select Filer…”.
Ed W.
Applications Engineer
National Instruments
Message Edited by Ed W on 03-08-2007 03:41 PM
Message Edited by Ed W on 03-08-2007 03:41 PM
03-09-2007 06:55 AM