Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQmxSetAOIdleOutputBehavior with a PXI-4461

I'm using DAQmx functions in a c++ program and i'm trying to use the DAQmxSetAOIdleOutputBehavior to keep generating the current value.  So far I have not been able to get this to work.  What do I need to do to get this to work?  Also is this properity supported by the PXI-4461?  Is there a list of functions and proprities that the PXI-4461 supports?  I looked at the C reference help but the information there is to general.
0 Kudos
Message 1 of 4
(3,507 Views)

Hi Eagle01,

 

This property is supported by the PXI-4461.  There is no list of functions and properties supported by this device; however, in LabVIEW, you would be able to filter the property node properties by device (so that only those supported by device are selectable).  With regard to getting this property to work, are you setting the behavior to "maintain existing value"?

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 2 of 4
(3,493 Views)

The code is:

 

TaskHandle taskHandle;
 DAQmxCreateTask ("MyTask", &taskHandle);

 

DAQmxCreateAOVoltageChan (taskHandle, device, "Pin0", 0,5, DAQmx_Val_Volts , NULL);

DAQmxCfgSampClkTiming (taskHandle, "", 5000, DAQmx_Val_Rising, DAQmx_Val_ContSamps   ,50000);

DAQmxSetAOTermCfg (taskHandle,device,DAQmx_Val_PseudoDiff);

DAQmxSetAOIdleOutputBehavior(taskHandle, device, DAQmx_Val_MaintainExistingValue );

DAQmxWriteAnalogF64 (taskHandle, 10, false, 5, DAQmx_Val_GroupByChannel, writeArray, &sampsPerChanWritten, NULL);

 

Is there an example of this function being used that I could look at?

0 Kudos
Message 3 of 4
(3,490 Views)

Hi Eagle01,

 

An example of this function being used can be found in this thread, and also here.

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 4 of 4
(3,465 Views)