03-26-2015 04:37 PM
Dear Frinds
I am working on a project which cotains a main VI and a sub VI that starts when I press a button "Input/Output Setting" botton on the FP.
When I run the code for the first time the main Vi Runs correctly but the sub VI does not run correctly and returns Error1556
When I run the code for the Seccond time the main Vi Runs correctly and the sub VI runs correctly this time.
Consider that in these executions I do not make any change in the code but only I "Abort Execution" and run it again.
Please see the attachment.
What is the reason of this Error and how can I solve it?
Thanks in advance
Sincerely
V.S.
03-26-2015 09:25 PM
03-27-2015 04:44 AM
Dear Mike
Why can not you see my code? is it a problem with the Labview version?
Regards
03-27-2015 07:03 AM
04-02-2015 09:49 AM
It's hard to say why you are getting the error since you don't have your error clusters connected. At this point you can't be sure that you are getting a good modbus reference going into the loop. Also, you need to get rid of the sequence structures, use the error clusters to set the order of execution. You should also learn a bit about state machines, that will help to simplify your code.
Mike...
04-02-2015 03:38 PM
04-02-2015 07:28 PM
04-03-2015 06:35 AM