NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
AustinCann
Posts: 120
0 Kudos

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

Member
TrottM
Posts: 91
0 Kudos

Re: Restarting the executable until all conditions are true

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
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page