11-21-2012 06:09 AM
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
11-21-2012 09:59 AM - edited 11-21-2012 10:17 AM
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!
11-21-2012 03:42 PM
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
11-28-2012 10:12 AM
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?