LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

´The test pins at the Waveform graph freeze (in the same position) after a while!!!, How can I make them move with their data`?

Hi all 

you gotta see the VI to understand the question!

I got this SetMarks.vi, When I set the tests it go's ok , they appear on the waveform Graph, but if you wait for a moment (50 sec. or so), when the waveform graph begins to move by stand position (Riverflow !!) The marks they stand still in the waveform graph window.  In the start they move in their right position when you run the program and sets the test, but when the waveform graph start to move like river flow, the testpins freeze. How can i  make them move with their real position ??

Remember to ´write some testnames and press add button!

Zamzam

HFZ
0 Kudos
Message 1 of 6
(2,824 Views)
A basic feature of a waveform chart is that it has a history buffer of limited length. The length is something you set by right clicking on it and selecting Chart History Length. By default, it is 1024 points. Because you have the chart history wired to the graph, you have limited the graph display to the size of chart history. So, after a while, all that you display is a fixed 1024 points. The position of the cursor is defined by specifying a fixed x position in this array so it will not move. Instead of wiring the history to the graph, what you can do is create a shift register and use the Build Array function in it to keep an array with all values acquired and wire that array to the graph. You should be aware though, that eventually, this array will grow quite large, performance will suffer, and eventually you'll run out of memory.
Message 2 of 6
(2,815 Views)

I thought about, if there is a way of emptying or flush the array after example closing the vi, or another solution, is to save the data from the array into an external file, flush the array builded before closing the vi-application.!

Is it possible.

I wondered if there are a funktionspallete or a finnish .VI blok in Labview, that can set markers in a wavegraph when running, those markers should be used as tests. 

Example when set, a function will be called to save some various data at the test moment and a test Pin will show up at the wavegraph as in the example attached before.

Zamzam 

HFZ
0 Kudos
Message 3 of 6
(2,803 Views)
There are numerous ways to save data. You can save as text, binary, Excel, database, etc. Check out all of the functions on the File I/O palette and the shipping examples.
0 Kudos
Message 4 of 6
(2,795 Views)

reading the dat anad saving it to a text file etc. is no problem. But in that example you sent me , u wrote that the buildarray ( conneted to the random nr. generator and the shift reg and ..) will grow in memory, coz of saving the data measured between the tests. it about that array i'm asking, if there is some way to empty it or flush it, so it wont grow that big that it would infect the program speed process. I can save the data in it, to use when to open a test.

I was thinking, when closing  the program .VI,  then the array will be flushed by automatic after starting the program again. or is it not so?

Zamzam

HFZ
0 Kudos
Message 5 of 6
(2,781 Views)
To clear the array in the shift register, all you have to do is wire an empty array constant to it. If you wire an empty array constant to the left side of the shift register, it will be cleared every time you re-start the VI.
Message 6 of 6
(2,775 Views)