キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Vision assistant in LabView

解決済み
解決策を見る

 

I understand 🙂

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

 

0 件の賞賛
メッセージ11/24
2,192件の閲覧回数

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 件の賞賛
メッセージ12/24
2,189件の閲覧回数

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 件の賞賛
メッセージ13/24
2,186件の閲覧回数

Basically, here is what I am talking about..

0 件の賞賛
メッセージ14/24
2,179件の閲覧回数

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 件の賞賛
メッセージ15/24
2,165件の閲覧回数

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 件の賞賛
メッセージ16/24
2,161件の閲覧回数

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 件の賞賛
メッセージ17/24
2,152件の閲覧回数

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

Cheers

0 件の賞賛
メッセージ18/24
2,141件の閲覧回数
解決策
トピック作成者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 スマイリー ハッピー

 

 

Best regards,

Mark W
Applications Engineer
National Instruments UK & Ireland
0 件の賞賛
メッセージ19/24
2,137件の閲覧回数

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 件の賞賛
メッセージ20/24
2,136件の閲覧回数