03-26-2007 05:13 PM
03-26-2007 05:34 PM
03-26-2007 07:03 PM
03-26-2007 08:14 PM
The second subVI from the right "Stepper get current Position2.vi" has a second copy of itself overlayed on the wired version of same. Just click on the subVI and move it up or down to see. 😮
Since the extra copy is not wired to anything, it has no data dependency and will execute right away and in parallel to the rest of the code. Since no inputs are wired, it most likely generates an error. Since its error out is also not wired, it will generate the automatic error message.
Solution: delete the extra subVI. 🙂
03-26-2007 08:19 PM
03-26-2007 08:46 PM
@pgaastra wrote:
How did you know to look how to find that?
10+ years of LabVIEW programming. 🙂
I did not have any of your subVIs, so I wasn't able to even run the VI, however of you hover over that particular subVI with the mouse, you see all the connectors light up, something that only happens if the terminals are not connected.
I would recommend to make the "stepper handle" a required input for your subVIs. Without that connection, they won't do anything useful anyway and now you'll get an error if you forget to wire the input.
I don't have the VI analizer toolkit, but it probably would have found the problem too. See:
http://zone.ni.com/devzone/cda/tut/p/id/3588