LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision assistant in LabView

Solved!
Go to solution

 

I understand 🙂

Although I can't see the images you have posted, the only thing visible is a red cross...

 

0 Kudos
Message 11 of 24
(1,783 Views)

Hi Xavier,

 

My fault! The links were a bit too long and didn't work, they've been replaced now with attachements, have a look at those.

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 12 of 24
(1,780 Views)

Yes I can see what you mean, and I think the only problem left is actually on the wire at the between Get Data up to close.vi. The thing is that, on the loops, the little square on the second loop from the inside linking to the third loop, well the rectangle instead of being purple is white... And I have tried many times to delete the wires and rewire correctly, there is nothing to do, the square is always white on that loop...

0 Kudos
Message 13 of 24
(1,777 Views)

Basically, here is what I am talking about..

0 Kudos
Message 14 of 24
(1,770 Views)

Hi Xavier,

 

This document is good for understanding those terminals, you need to make sure for each case that you have wired an input to this terminal, like in the image I have attached.

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 15 of 24
(1,756 Views)

ok, I understood what u meant, and I managed to fix the problem :). Althoug now, the arrow at the top is not broken any more, wich is what we want, but now it requires an Image to browse in my documents to launch, although I would like it to take it from the resource...

 

Thanks so much Mark

 

Regards

0 Kudos
Message 16 of 24
(1,752 Views)

Hi Xavier,

 

So the part of your code which is prompting you to open up a file is your "IMAQ ReadFile" function, this has a "File Dialog" express VI wired in to it, which will prompt you to search for a file on your computer. As you are reading in your image from your initial "ConvertToImage.vi" down through your VI's to "IMAQ ArrayToColorImage" you do not need this step, and so you can delete your File Dialog and your IMAQ ReadFile function, and connect up the reference and error wires.

 

I would suggest looking at the functionality of each of these blocks using the detailed help on each to help you understand the inputs, outputs, and results of their functions. You can get to this by right clicking on the VI and selecting "Help".

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 17 of 24
(1,743 Views)

actually, it's the "IMAQ ColorValueToInteger" that requests a file on the computer...

Cheers

0 Kudos
Message 18 of 24
(1,732 Views)
Solution
Accepted by topic author reivaxseniab

Hi Xavier,

 

I've attached the code without any of the other VISA stuff in it, and just stripped it down to your IMAQ functions and your image, it looks like this part of the code works fine. You can see where it would request for you to input a file if you run your code in highlight execution mode (with the lightbulb on the toolbar of your block diagram switched on). It does not pause in any place or feed an error down any of the wires in this VI which suggests for me it's functioning fine, and the output of the program is just as you would expect with your image and the functions.

 

Feel free to mark this as a solution if this has solved your initial query so that others can gain quick access to it if they find your thread or have similar problems Smiley Happy

 

 

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 19 of 24
(1,728 Views)

Actually, sorry it doesn't it just says error"-1073807346 occured at VISA Read in Land FTI-EA.lvlib:GetRawImageData.vi->Land FTI-EA.lvlib:GetData.vi->for Mark1.vi. and of course I try and fix the problem, but I just can't seem to find the way to fix it. It's reasons to the "GETDATA" right?

0 Kudos
Message 20 of 24
(1,727 Views)