DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to capture the last 10 seconds of data in all channels?

how to capture the last 10 seconds of data in all channels? and create new channels with this data.

0 Kudos
Message 1 of 3
(3,584 Views)

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:

    1. Graph all channels on a 2D-Axis system.
    2. Use the band cursors to select the beginning and endpoints of a region of interest.
    3. Use the Set Flags button (include the <Shift> key to flag all curves) to mark this region of interest.
    4. Select Flags: Copy Data Points to copy the selected data into new curves.
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 2 of 3
(3,565 Views)

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

 

 

 

Otmar D. Foehner
0 Kudos
Message 3 of 3
(3,562 Views)