LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

program no longer works when compiled

Solved!
Go to solution

Instead of hidden buttons, it's usually better to use constants on the block diagram.

 

It's difficult for me to say what might be wrong with the stop command since I do not have the instrument nor have I ever used it. You might want to enable debug mode in the exe and try to determine exactly what is happening. Another NI-Spy capture would also be called for now that you closed the other application and eliminated the one error.

0 Kudos
Message 11 of 15
(1,288 Views)
I think what was happening was that the "stop" command was getting stepped on by the "GOK" command.  I put all commands in sequential circuits and added a longer wait time for the "GOK" cmd to finish.  Now it sees the "S" cmd and works. 
0 Kudos
Message 12 of 15
(1,279 Views)
Solution
Accepted by topic author PRCalDude
You might also want to study on how to make clean and understandable diagrams and eliminate what is unnecessary. Here is a considerably cleaned up version of your code. Notice that the stupid sequence structure is not required nor the inner case statement. Dataflow takes care of sending the last command when the loop stops.
Message 13 of 15
(1,259 Views)
Why would you go back to using this code when what you did at the end of this thread was working for you?
0 Kudos
Message 14 of 15
(1,250 Views)

Dennis,

 

Thanks a lot.   I'm brand new to LabView and have been working from Travis and Kring's book "LabView for Everyone."  Do you have any other book/website recommendations for me where I can read up more on this?

0 Kudos
Message 15 of 15
(1,211 Views)