LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A problem with file loading

Solved!
Go to solution

Hello,

 

I need to load a binary file and display it. If I wire output from Read binary file to shift register it will be displayed only after I add next element to an array. How to display an array asap and to be able to add next elements to it?

 

Thank you

0 Kudos
Message 1 of 5
(2,589 Views)
Solution
Accepted by topic author notazomby

Put the database indicator terminal outside of the event structure,  before it.  That way no matter which event runs, the database data will be displayed at the beginning of the next loop iteration before the event structure starts waiting again.

 

Also, your VI needs a stop button to have a way to stop the while loop.  Right now you can only abort the VI to stop it.

0 Kudos
Message 2 of 5
(2,569 Views)

Great, thank you. So easy.

 

A requirement is that user can abort aplication only if he closes window. 

0 Kudos
Message 3 of 5
(2,562 Views)

notazomby wrote:

A requirement is that user can abort aplication only if he closes window. 


Then handle the VI->Panel Close event and stop the loop when you get that event.  That way you can properly shut down your VI instead of aborting.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(2,559 Views)

Thank you.

0 Kudos
Message 5 of 5
(2,542 Views)