LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset strip recorder on each run

strip chart using waveform graph in labview. how can I reset the x-axis display to time =0 every time I run the program?

0 Kudos
Message 1 of 9
(3,020 Views)

I'm confused.  Waveform Graphs do not have a "strip recorder" mode.

 

Are you talking about a Waveform Chart?

 

What is the datatype you have wired to the graph?

 

Attach your VI.

0 Kudos
Message 2 of 9
(2,981 Views)

I'm taking the waveform from a USB-6251. Yes, waveform chart in the strip recorder mode. 

 

I'm not in my lab right now, but I will, if what I'm asking doesn't make sense.

 

Thanks for your reply . 

0 Kudos
Message 3 of 9
(2,972 Views)

Try either of these techniques.

 

The Reinit to Default is an invoke node.

The datatype may affect how they work, particular for the empty array for the history data property node.

 

0 Kudos
Message 4 of 9
(2,968 Views)

I'm not sure if I have this correctly wired with the node that you sent, but it's not resetting the x-axis. Here is the vi. 

0 Kudos
Message 5 of 9
(2,904 Views)

Hi Allan,

 

1. You should ReInit before the loop, but not inside with each iteration.

2. You are using those DDT wires: this can introduce a lot of "side effects". Usually you are recommended not to use ExpressVIs and DDT wires…

3. You are reading "1 sample on demand" so do you expect any useful result from your filter?

 

One step to less DDT wires:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(2,896 Views)

This is a dumb question, but how does one create the initialize strip recorder node? (does one right click on the wire?)

It almost works except for the initialize step.

 

 

0 Kudos
Message 7 of 9
(2,859 Views)

Right click on the Waveform chart terminal.  You have two choices, create property node and create invoke node.  In this case, the reinitialize is a "method" so you use Create Invoke Node.

0 Kudos
Message 8 of 9
(2,841 Views)

The waveform chart is still not resetting. I'm not sure if I've invoked the node correctly. (The chart will reset if I close the vi and reopen it. But it won't reset if I rerun) (Fortunately, rerunning will reset the time stamp on the measurement file).

0 Kudos
Message 9 of 9
(2,808 Views)