Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 6704 Analog output current Value

Is it possible to get current value for analog output?

 

In general it is not a problem for digital lines, but what about analog (static outputs, not important for waveforms - would be nice) ones.

 

It is possible to create a workaround with "power-up" states (but again it would work only in controlled invironment, ie. all applications follows the same rules), but i am looking for cleaner native solution.

 

Application is quite simple, recovery from crash, accidental closure or controls from multiple applications. It is always nice before changing outputs to know what is the current value...

 

-Artur

0 Kudos
Message 1 of 5
(3,471 Views)

Hello GriffinRU,

 

 

You can read the actual value of an analog output just create the code as if you were about to read an analog input but in the channel terminal choose as shown in the images below, that will let read the AO vs Ground, and yes in of our some cards ( not so many ) you can modify the start up state of an analog output.

 

ForumG.jpg

 

 

ForumG2.jpg

 

Regards

 

Mart G

0 Kudos
Message 2 of 5
(3,433 Views)

Very Good, Thank you.

 

Bad part, looks like it works only for E/M-series DAQ cards,

NI 6704 (error -200170, channel doesn't exist)

NI 6363 X-Series ( error -50103 reserved, not supported)

 

-Artur

0 Kudos
Message 3 of 5
(3,425 Views)

Hello GriffinRU,

 

As the 6704 does not have any analog inputs the function is not supported, but it is supported in the 6363, I tested on my side. Please verify that no other VI or service is accessing the 6363 while trying to do that. Remember that no other AI task can run at the same time as it will reserved the device.

 

Regards

 

Mart G

 

 

0 Kudos
Message 4 of 5
(3,422 Views)

Hi Mart,

Yes this works only for DAQ's with Analog Inputs. I was looking for solution for NI 6704 board.

 

I got error with NI PXI-6363 because I was creating task as output, while in this case to check Output state I need to create Analog Input Task and obtain value from internal channel. It does make sense, but one need to think through entire process, and if with digital lines I can set and get current state withing the same task, for analog outputs this need to be done by running two tasks in parallel.

 

Thank you,

-Artur

0 Kudos
Message 5 of 5
(3,408 Views)