Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

subtract some amount form acquired data

Hi

I am using NI 6025E daq to acquire data from 2 sensors. I want to subtract specific amount from the acquired signal before i process it. right now i am doing it in the while loop subtracting 2.5 from the data i acquired. Can i do this using daqmx read property node instead of doing it in while loop. All i  wan to do move all the points down 2.5 in amplitude. thanks

0 Kudos
Message 1 of 13
(3,813 Views)
Why are you doing this in a while loop? You can wire an array into one input of the subtract function and wire a constant to the other input.
0 Kudos
Message 2 of 13
(3,811 Views)

Thanks for the reply. I am acquiring data continously form sensors one point at time. I have daqmx read.vi function inside the while loop. Thats why i am doing my subtraction in the while loop.  

0 Kudos
Message 3 of 13
(3,801 Views)

Okay, I thought you might have just the subtract inside a loop - indexing out each element in the array.

 

 Why don't you try the scaling function? With a linear scale, the slope would be 1 and the Y-Intercept would be your current subtraction factor.

0 Kudos
Message 4 of 13
(3,796 Views)
Thanks for the reply. Where can find the scaling function? Is it in the functions pallete?
0 Kudos
Message 5 of 13
(3,768 Views)

Hi suni,

 

The scaling function you are looking for should be in your Functions palette under Measurement I/O » NI-DAQmx » Advanced » Scale setup. You can create your custom scale and use it in your task as shown below.

 

Message Edited by S_Hong on 09-23-2008 11:49 AM
S_Hong
National Instruments
Applications Engineer
0 Kudos
Message 6 of 13
(3,756 Views)