Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

analog input voltage to data conversion to analog output current using DAQmx

Hello,

I'm working with measuring voltage (2 NI 9213's) and resistance (1 NI 9217) that are connected to a Chassis. I've taken an example from NI Max->Analog Input-> Continuous Voltage and have added more code to convert values to what we need. At the end I have an array of values, (which works up to that point). I will then need to send these values to an AO using 2 NI 9265's. This is where I am stuck and have tried to combine programs (the 2nd from Example from NI MAx->Analog Output-> Current on Demand output.vi, but that doesn't work. So the calculated values in the array are routed into the NI 9265.  I am a beginner using the NI Max. I've looked into producer-consumer and master-slave architechture and also doing other loops, but not sure where to go from here. I'm attaching the code to get a better idea. Any help, advice or ideas would be greatly appreciated!
Thanks!

Download All
0 Kudos
Message 1 of 2
(4,669 Views)

Hello, I believe that is better to use the current-continuous output.vi and build an waveform with the data in the array, remember to attach a delta time to the data that is in the array so it can be sent through the AO (This is to build a waveform). check the waveform settings in the VI and modify it to your needs. Also this information is going to be helpful for you, check it.

http://digital.ni.com/public.nsf/allkb/DD750D84BAD703E386256E6E005B41AC?OpenDocument

http://digital.ni.com/public.nsf/websearch/45A7AC6B59E026B386256F90006DAA49?OpenDocument

 

0 Kudos
Message 2 of 2
(4,624 Views)