02-19-2018 10:17 AM
Dear All,
I need to develop an application that logs snippets of signal/waveform.
Meaning, for every y period of time, log signal/waveform during an x period of time.
For this end, I have developed an app that goes through the following steps:
The problem is that when I check the TDMS Log file, I can clearly see that lengths of the channels (original signal, snippet signal) are not what I was expecting.
Though the Y components of the signals are correct, the waveforms logged yielded channels with lots of additional values..
Can you please explain why is that? and Should I log the Y component instead?
The VI is attached.
Thanks!
Solved! Go to Solution.
02-19-2018 02:11 PM
Correction:
Even the Y components do not have the right length. Apparently it's a a programming problem from my side..
02-20-2018 05:49 AM
Why do you have an input for both Sample Frequency (Fs) and sample time (dt)? dt = 1/Fs. Do not give the user a chance to mess that up. You can get the dt from the waveform coming from the Sine Wave function.
Your snipetted waveform calculation just seems weird. You could just use Array Subset to truncate your data instead of the FOR loop.
You can also wire up the waveform to the top of the Build Waveform and then only update the items you need to (it works a lot like Bundle By Name).