Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66744

save or clear on button press

$
0
0

My program collects a couple points of data on a button press using a state machine. The data are velocity measurements from multiple points along a track - I've got that part working (in the vi attached it's just random numbers so I can tinker with the code without plugging in the hardware).

Each measurement is appended to an array and added to a graph. Oon each button press the data exits the case structure and goes through a for loop with a shift register. Using this array, I am trying to implement two buttons: clear and save. Pressing clear would empty the array and the graph, while pressing save opens a dialog to save the numbers. It almost works! It saves fine, but to clear I have to press "clear" and then "measure" again.

I think my problem lies in how I'm attempting to reinitialize the main array, but after a lot of searching the forums I'm still stuck. I'm not sure if I'm almost there, or if a for loop is the wrong way to go and I need to get rid it altogether?

Thanks for any help!


Viewing all articles
Browse latest Browse all 66744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>