06-22-2010 02:00 PM
Hi,
I've created a vi as in the attachement with an event structure for tpc 2012. It waits only on step 4. It is also impossible to stop the program. I'am not sure why it behaves so. I would appreciate if someone could give me a hint. Many thanks!
BR,
Martin
06-25-2010 06:42 AM
Martin,
First of all you didn't attach whole project. There are missing VI's. The best is to pack whole project with all including VI's and post that.
Going back to your question - I'm not sure if I understood correctly. If you're saying that you cannot execute anything else than from step 4 then please, be more precise, because I tried it on my PC (with some different data, except from step 1&2, because of missing VI's) and it works fine. I can stop, run and do whatever you want with it:)
If you're talking on other hand about just waiting (in terms of delay), then it's proper behavior in your code, because you've put the delay into one step and it will wait only there.
If that doesn't answer your question then please ask it more precisely and send whole code.
PS. If you would like to use "Timeout" event case, then you have to connect some value to "Timeout terminal". By default there is -1 which means it waits for ever:)
Regards,
Dawid
06-25-2010 07:07 AM
Can you describe the expected or desired behavior for that code?
06-25-2010 07:52 AM
Hi,
thanks for your reply. Unfortunatelly I don't have the whole project at the moment, I will attach it later. But... what I observed is that when I run the programm on the TPC, the programm doesn't "start" at once. The user interface is displayed as it should be, but there can't be performed an action - when I press any button, it doesn't react - eg. I press stop button, and the programm is't closed. After a coulple of minutes, the programm reacts on some actions on tpc(also these which ware performed just after the programm was run on the tpc) - it seems, that the TPC needs to initialise for a while, but it seems that it is much dependant on network veriables.
Moreover, the time period in which the TPC doesn't response for any action is different, and sometimes after a while the tpc reacts properly(as you said, it works on your PC) and sometimes it keeps blocking all the time. I am a little bit confused what's the reason that's so unpredictive.
Martin
06-25-2010 09:58 AM
We'll have to see at least the two missing VI's before being able to reproduce what you are describing.
06-25-2010 10:23 AM
What happens if you do execution highlighting? Where does it get stuck?
06-28-2010 04:43 AM
I've checked the program once again and the observation is, that the program works pretty good when I don't use variables. When network variables are used, the programm "stucks" for a while after it's run. After about a minute from starting the program it seems to be working fine. I'll have to run a couple longer tests to check if there is no "stucking" while the program runs.
Martin
06-28-2010 01:13 PM
@martin388 wrote:
I've checked the program once again and the observation is, that the program works pretty good when I don't use variables. When network variables are used, the programm "stucks" for a while after it's run. After about a minute from starting the program it seems to be working fine. I'll have to run a couple longer tests to check if there is no "stucking" while the program runs.
Martin
Evidently you have network problems. You may need a network sniffer to look at the traffice on the network.
06-28-2010 02:06 PM
@tbob wrote:Evidently you have network problems. You may need a network sniffer to look at the traffice on the network.
It does sound like it.. But then again, I've seen some crazy bugs that appeared to be caused by one thing and turned out to be caused by something completely remote to where the bug was exhibiting itself...