03-04-2021 08:11 AM
Hello!
I have this program that is generating random numbers to a Waveform Graph. I want to be able to generatre new values every time I press the button, but I'm only able to use the button once in every run. What can I do?
Solved! Go to Solution.
03-04-2021 08:26 AM
Your "Status 1" case does not enqueue a state. So the Dequeue Element on the next iteration will wait forever. You should probably put a timeout of 0 on the Dequeue Element and make sure the default value throws an error and/or takes you back to the Wait For Event state.
03-04-2021 08:33 AM
Nice. Thanks!
One more thing.
I want to read files and get the values in the same waveform graph, do I have to use shift register or something else?
03-04-2021 08:52 AM
Just read the file and write it directly to the graph. If you have multiple states that could update the graph, I would probably just use a Local Variable in the additional cases.
03-04-2021 03:41 PM - edited 03-04-2021 04:07 PM
Some more comments:
*Where did you find that "template"? Here's how the same code could look like. (No, I don't recommend to do it this way either. Look at the templates that ship with LabVIEW)