Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

load image to CVS from files

Hello,
 
I want to know if there is a way to read  images stored in the CVS and to display it on the VBAI display screen. the script i made load images to a folder located in the CVS. Then i want to be able to read in this folder again and to display those pictures if the process fail. my issue now is how to read pictures in this folder and display them. if someone can help me with this...
 
Best Regards
 
Tchaou 
0 Kudos
Message 1 of 6
(4,112 Views)
Tchaou-

       I was a little unclear on what you want to do.  You said to read the files on the CVS from VBAI.  Are you talking about reading them from another computer in VBAI or driectly from the CVS and outputing them in the script running on the CVS?
      If you'd like to open them on the CVS then you could just use the simulate acquisition step to open the images. Maybe that's another state of the program.  You would be able to cycle through the images in the folder and check to see if they pass or fail.
      If you were wanting to read them from another computer, the best way is to add a TCP step in VBAI and send them to the other computer.  On the other computer you will need some kind of program to read the data coming in. I don't think you can do that with VBAI.  A TCP listening program is pretty simple to make using LabVIEW but could also be done with another languages.
     So, a couple options here, just let me know if something is unclear or you have any questions.

Regards,

John H
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(4,096 Views)
Hi John,
 
Thank you for your reply. what you told is good but i don't want to use another computer. i just want to use the CVS. Loading images in the folder in CVS and reading images from this folder.
 
Best Regards,
 
Tchaou
0 Kudos
Message 3 of 6
(4,082 Views)
tchaou--

     I wasn't clear, did you also try to do a simulate acquisition step in your VBAI script on the CVS like I suggested in my fist post to read the files on the CVS?

Regards,

John H
0 Kudos
Message 4 of 6
(4,053 Views)
Hi John,
yes I did what you told me on your first post. but as you know simulate acquisition gives only access on files lacated on the host computer and not on those lacated in the CVS.
 
Best Regards,
 
Tchaou 
0 Kudos
Message 5 of 6
(4,050 Views)
Hey Tchaou,
 
I believe your question has been answered on your other discussion forum post: http://forums.ni.com/ni/board/message?board.id=200&message.id=13085#M13085. Read Vudoo's explanation on how to do this. There are really two ways to do this, but his second suggestion, which explains to follow how the Tutorial 1 (and Tutorial 6 - both for VBAI 3.0 on a CVS) performs the Simulate Acquisition, is probably the easier way to go. The reason I suggest doing it this way is because you can test the code on your computer, but then when you run it on the CVS, it reads the images that are on the CVS without having to change the directory on the step.
 
Also, in the future, please try to keep the same (or similar) questions on only one post instead of multiple posts. Having multiple threads with the same question makes it difficult for others to find your questions and answers if it is in multiple threads. I hope this makes sense. Thanks, and have a great day.
 
Regards,
DJ L.
0 Kudos
Message 6 of 6
(4,037 Views)