LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

history reset of waveform chart

hello,

I have some question (probably so basics) regarding waveform chart. As you can see the from attached file, i am feeding a waveform chart with number type data.  In the graph, i want to display x scale only for only  intervals ( 0, 20, 30..) not counting continously. And when ever I start a new measurement , history values of graph are still exit. How can I reset the history values upon new measurement.
thanks
0 Kudos
Message 1 of 10
(10,434 Views)
Hi looser (nice nickname :-),

create a property node for the chart, select 'History Data', set the node to 'Write' mode and wire an empty array of data to it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 10
(10,426 Views)
Hi GerdW,

I am not sure how to set node to write mode and wire it.. do u have any example? Besides , what abaout the other question regarding x axis.
0 Kudos
Message 3 of 10
(10,420 Views)
What I tried is that I have wired to history property to a initialize array VI that is feeded by a constant.
but it doesnt allow for that wiring?
another way?
0 Kudos
Message 4 of 10
(10,409 Views)
deleted due to extensive 'back'-key usage...

Message Edited by GerdW on 02-08-2007 04:56 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(10,395 Views)
Hi looser,

back from lab:
now you find an attachment (LV6.1) to explain the property node stuff 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 10
(10,395 Views)
Hi looser,

now the example contains also the X-scale adjustment via property node!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 10
(10,388 Views)
Super! it works even without converting array! But i have another question. The history property node is located outside the loop so that it perfroms after every loop termination. But how it is possible without wiring anything from node to loop? If i would add more VIs outside of the loop , it would not be a problem of calling order?
0 Kudos
Message 8 of 10
(10,385 Views)
Hi looser,

you can use error clusters to assure a proper calling order!
Wire an error cluster from your loop to the 'History' node...

Btw. error clusters are the perfect way to make up the calling order for (nearly) all kind of functions! When you create subVis always include error in/out connections!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 10
(10,360 Views)

Thanks for these information

Samer EL KALAMOUNI
Electronics & Electrical Engineer
Informatics & Automation Control
Tél:0033(0)6.62.12.94.61
samer_kalamouni@msn.com
Before printing think about the environment
0 Kudos
Message 10 of 10
(7,870 Views)