11-29-2012 05:31 PM
Hello, I am new to LabVIEW so please pardon this possibly simple question.
I have searched around and I can't figure out the timebase (dt) for the Time Domain Math Express VI integration function.
I am trying to use it to integrate an acceleration waveform, and I need to understand what the timebase is so I can calculate the units of the output value.
Thanks in advance!
11-29-2012 05:42 PM
A waveform datatype already contains timing information.
11-29-2012 05:50 PM
So how do I determine the units of the output if I was integrating for example, instantaneous power to get power used over time?
11-29-2012 08:52 PM
The units will be the units of Power times the units for time.
So if your power is Watts, and the dT is seconds. The it will be Watt-seconds.
If the power is kW and the dT is based on hours, then it will be kW-hrs.
11-29-2012 09:49 PM - edited 11-29-2012 09:52 PM
Thank you for the reply. I understand that, and I guess I should have been more clear about what I was asking. What I don't understand is how to determine what dt is. Is it seconds, miliseconds, microseconds? How is it determined? Is it based on the time it takes to execute a loop?
11-29-2012 10:48 PM
dT is technically just a number as far a LabVIEW is concerned. If it is 1, then it is 1 unit of time interval. If it is .001 then it is a thousandth of a unit. What the size of the unit is depends on where the data is coming from. Typically if you are dealing with Waveform datatypes, and you are getting data from a DAQ device, the unit is practically seconds. So a dT of 1 on a DAQ card would be 1 second. A dT of .001 would be 1 millisecond.
11-30-2012 10:43 PM
So if I am using the DAQ Assistant to collect waveform data, will the dt be 1/ the sampling frequency? Does it depend on n (the number of samples per cycle in the DAQ Assistant)?
11-30-2012 11:13 PM - edited 11-30-2012 11:14 PM
I would think it dt always in units of seconds.
11-30-2012 11:33 PM
dt has nothing to do with the # of samples, it's the rate at which the data is sampled, dt = 1 / Fs.