From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

my buttons works after running the file at least twice (VI is attached)

hello guys as you can see in the VI  my log in button doesn't work until i press it and run the vi  and generate file button has the same problem so anyone help please 

0 Kudos
Message 1 of 2
(1,823 Views)

My first guess is that your VISA loop is blocking the execution of the big loop. As long as that runs continuously, you're still stuck in the first iteration of the big loop.

 

I'm pretty sure that your architecture will give you many more of these issues. I recommend looking at the State Machine design pattern, which will solve most of these problems. Also, look at Buttons and how to add images to them.



Remember Cunningham's Law
0 Kudos
Message 2 of 2
(1,820 Views)