12-28-2014 11:58 PM
Dear fourm members,
I am reading analoge data using DAQmx Read vi and I want to plug it into waveform chart, before that I want to do some mehtimatical operation on the values of waveform.
Here is what I want to do
I believe that what I did above is wrong because it is going to do the calculation on all values inside waveform (dt - t0 - Y) and I want to do it only on wavform values (Y).
So, how to do the calculation correctly knowing that the data that coming out from this DAQmx Read VI is 1D array of waveform.
Thank you
12-29-2014 12:20 AM
You probably are looking for this: http://digital.ni.com/public.nsf/allkb/B965F316364DE17B862572DF00363B10
12-29-2014 12:51 AM
12-29-2014 12:58 AM
Thank you
I read it but I am dealing with 1D array of waveform so I cant use get wavefront directly and also I want to know if my code in the picture calculate the values correctly or not.
and if it is ntot correct what is the alternative solution in my case
12-29-2014 01:06 AM
12-29-2014 09:14 AM
@xGlories wrote:
Dear fourm members,
I am reading analoge data using DAQmx Read vi and I want to plug it into waveform chart, before that I want to do some mehtimatical operation on the values of waveform.
Here is what I want to do
I believe that what I did above is wrong because it is going to do the calculation on all values inside waveform (dt - t0 - Y) and I want to do it only on wavform values (Y).
So, how to do the calculation correctly knowing that the data that coming out from this DAQmx Read VI is 1D array of waveform.
Thank you
Am I correct that the function you wish to compute on each sample (which I will call S) is 1000000 * (4S / 2.1*(2S + 1))? That seems to be the function in the picture (why do people attach pictures of code instead of code or code+pictures = snippets?).
If so, there are only a few details for you to work out.
P.S. -- I didn't know the answer to #3 "off the top of my head", but I followed my own advice, and now I'll never need to ask this again about LabVIEW ...
Bob Schor