LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program freezes on startup, sort of

This has happened to me a couple of times, but hasn't been an issue until now.  I have written a new application (Labview 7.1) and for some reason, sometimes it acts "frozen" at startup, like something isn't being initialized.  I have a set of tabs and there is a button on the first tab to "advance" to the next tab (using an event structure to detect when the button is pressed).  For some reason, especially after I build the program and run it as an exe, I have to press stop and then run before it will recognize the button click.
 
Anyone else have this problem?  Any suggestions?
0 Kudos
Message 1 of 6
(3,015 Views)
can you post your vi/code?  i will attempt to help you if i can see it :)

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 6
(2,986 Views)
I think I may have fixed it, although I'm not certain what was causing it in the first place.  I believe it had to do with having multiple event structures, although I don't know how any would actually affect each other, and why it would freeze on startup.  I replaced the first 2 event structures with while loops and just handled the events myself, and it runs just fine.  Thanks for the reply though.
0 Kudos
Message 3 of 6
(2,984 Views)
Go to the LabVIEW help and read the caveats section under Event structures. Multiple event structures are usually not necessary and can cause the lockup problem you saw.
0 Kudos
Message 4 of 6
(2,979 Views)
yes, dennis is right - multiple event structures should be avoided and can demonstrate this behaviour.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 5 of 6
(2,972 Views)
Thanks for the help.  I guess I had seen that, but didn't think the way I was using them would interfere with each other.  The program works just as well without the other 2, I was just trying to be consistant.
0 Kudos
Message 6 of 6
(2,966 Views)