06-05-2020 11:02 PM
Hi,
I'm new in using LabVIEW and NI vision. In this VI, I'm trying to find measurement coordinate based on the reference coordinate and find ROI based on the ROI set in the standard image. I used state machine. But when I finished, there are so many errors. I don't know why. Is there anyone can help me ? Maybe some suggestions.
Thank you!
Solved! Go to Solution.
06-07-2020 04:09 AM
@Bella93 wrote:
I'm new in using LabVIEW and NI vision. In this VI, I'm trying to find measurement coordinate based on the reference coordinate and find ROI based on the ROI set in the standard image. I used state machine. But when I finished, there are so many errors. I don't know why. Is there anyone can help me ? Maybe some suggestions.
What sort of errors? Do you get specific error codes, or dialog boxes, or just the output is not as expected?
As a side observation, it appears your "Initialize" case is a dead-end (it will keep going around and around initialize, and never get out) and probably in systems like this you'd want to use a Block Diagram constant input to the Shift Register (with Initialize, for example) instead of a Control. To make this work like currently, probably just change the output tunnel inside "Initialize" to whatever you normally choose (e.g. "Find reference coordinate", perhaps).
Many of the VIs you're using have Error wire inputs and outputs that you're not connecting.
If you connect these together within a case, then use something like the "Simple Error Handler" (on the Dialog and User Interface palette) you might be able to try handling the error more cleanly.
06-08-2020 03:17 PM
Thank you for your two suggestions! After I do some changes in the Initialize state as you told me, the VI works. You really helps me! Thank you very much!