LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Restarting the executable until all conditions are true

I wonder if I could be very clever and find the way out of my problem here.
I am communicating with a device over UDP and for some reason, the device doesn't often establish communication with my Labview Executable on the first attempt.
I run it, it fails, I then use CTRL+ALT+Delete to shut it down. I donubleclick the executable ICON on the desktop again and I sometimes do it five or six times then finally the communication is established and it all works.
I wonder if I could add some code in the application to automate this process. One of the way I could now think to do is by creating another vi and call my current vi dynamically and add all those conditions into cluster, call this cluster (by wiring to the output terminal of the current main vi into new main vi) and monitor my cluster in the new main vi to see if the conditions are true if so continue or reload the current vi until those conditions are met? Is it the right way to do this? Or can I make my life easier and applcation more stable by doing something different?
Kind Regards Austin

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

Can you post your current code and show us the part that is communicating via UDP. I think the way to go is deffinately make your current code stable rather than an automation of failing code.

 

Also what is the device you are trying to communicate with. Does this have a set protocol that you need to follow or is it one you are trying to figure out.

 

Let us know and we could help you further.

Matthew Trott
Applications Engineer
National Instruments UK
www.ni.com/ask
0 Kudos
Message 2 of 2
(2,181 Views)