LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find errors in the VI

Solved!
Go to solution

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!

 

 

template.png

corn seed0003.png

0 Kudos
Message 1 of 3
(2,364 Views)
Solution
Accepted by topic author Bella93

@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.


GCentral
Message 2 of 3
(2,294 Views)

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!

0 Kudos
Message 3 of 3
(2,256 Views)