02-28-2013 04:01 AM
I understand 🙂
Although I can't see the images you have posted, the only thing visible is a red cross...
02-28-2013 04:12 AM
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.
02-28-2013 04:28 AM
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...
02-28-2013 04:38 AM
Basically, here is what I am talking about..
02-28-2013
05:22 AM
- last edited on
04-27-2025
10:35 PM
by
Content Cleaner
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.
02-28-2013 05:30 AM
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
02-28-2013 05:48 AM
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".
02-28-2013 06:52 AM
actually, it's the "IMAQ ColorValueToInteger" that requests a file on the computer...
Cheers
02-28-2013 07:14 AM
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 ![]()
02-28-2013 07:14 AM
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?