08-12-2011 10:21 AM
how to capture the last 10 seconds of data in all channels? and create new channels with this data.
08-15-2011 03:36 PM
Hi joeviv,
As usual, there are many ways to accomplish this. One easy (interactive) way would be to use the "Flags" capability of DIAdem VIEW. Simply:
08-15-2011 05:16 PM
Hello joeviv,
How is the data stored? Waveforms or numerical channels?
If you have a numeric time channel, you can use the PNO function in DIAdem:
L1 = PNo(Ch("[1]/Time"),(Cmax("Time")-10))
L1 will contain the row number where the channel called "Time" is at the maximum time - 10, so it assumes the time in the "Time" channel is in seconds.
You can then use the DataBlCopy command in DIAdem to copy the correct section of data into new data channels that only contain the last 10 seconds of values in your time channel.
If you have waveform channels, this requires a little bit of code, but before I put effort into that I'll see if the above idea is sufficient for you already ...
Let me know if that helped,
Otmar