LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop sub vi while loop from main vi

I have an issue I am dealing with that needs a quick fix while I am at the jobsite.  I have a subvi that has a subvi in it (third party with no access to block diagram Saphire modbus) that handles some modbus communication.  What is happening is when some of the pumps turn on the electrical noise causes the communication to hang up in the third level vi that I have no access to and the second level vi that has that sub vi in it wont complete because it is stuck in the third level vi .  What I would like to do is after a certain amount of time basically in the second level vi or in the top level vi is stop the process and reinitialize.  Any quick suggestions?  Thanks in advance

0 Kudos
Message 1 of 4
(2,807 Views)

Trinity,

 

Could you reference the VI, Abort and Run using invoke nodes? Its not elegant but it should work... I found the snippet below on the community, that should get you most of the way there!

 

Abort VI.png

Regards

Andy
_______________________________________

"To 'G' and not to 'C', this is not a question!"
0 Kudos
Message 2 of 4
(2,784 Views)

I would also contact the third party and demand that for the amount of money you probably paid them for the device and VI that they either make it work in the industrial environment for which it was designed, give you your money back, or at least give you the source code so that you could fix it yourself.

 

If you do not let them know that it does not work properly, they will probalby not fix it and may not even be aware of the problem.

 

Lynn

Message 3 of 4
(2,760 Views)

Thanks for all of the suggestions.  It seems that a quick fix is not the best solution and digging into the hang itself is necessary.  Not sure what is causing the hangup but the third party software thinks that it is in Visa commands.  I will reply when I get to the bottom of it. 

 

Side note:  I am about tired of dealing with noise issues on RS485 networks.  Seems like every project we do is requiring tweaking to get good or semi-good communications.  Thinking of switching to TCP communications for better noise immunity.  Any thoughts?

0 Kudos
Message 4 of 4
(2,718 Views)