LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq read file error

hi

im having problem with imaq readfile. i attach here 1.vi which has list folder vi that i connected with imaq read file. before in my code 3gp.vi i was just using case structure for my paths but i figured it would have a lot of cases and file path if i want a lot of images. then i found this list folder vi which reads multiple files in a folder. unlike with cases i only need one path with listfolder. but unlike listfolder cases work fine. haha i also attach a vi of listfolder i used to view all files in the folder

 

thanks in advance. hope you can help me.

Download All
0 Kudos
Message 1 of 7
(3,711 Views)

i also tried connecting file path to different sources

Download All
0 Kudos
Message 2 of 7
(3,708 Views)

Hi Cecilia,

 

I believe that you might forming the file path incorrectly. You might want to create an indicator from the File path to make sure that you are getting the path that you are expecting. What error is LabVIEW throwing when you run the program?

 

http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_readfile/

0 Kudos
Message 3 of 7
(3,599 Views)

hi fblerg

here are the things that i tried to do and the error message it displays. 

Download All
0 Kudos
Message 4 of 7
(3,556 Views)

i also tried these. hope you can help me 🙂 thanks

Download All
0 Kudos
Message 5 of 7
(3,550 Views)

I believe that you loading the file path incorrectly. Have you tried turning on Highlight Execution to see which VI is throwing the error? I would also add a probe to the Filepath wire to see what file the IMAQ Read is looking to load. I have also a couple useful examples of reading images. 

 

 

Read of Folder of Images and Return File Paths

https://decibel.ni.com/content/docs/DOC-24225

 

Programmatically Train IMAQ OCR Characters

https://decibel.ni.com/content/docs/DOC-42640

0 Kudos
Message 6 of 7
(3,498 Views)

Hi there, your initial program works fine for me. The LED array will only light up if you wire in the filename with extension, ex: Dessert Landscape.jpg. Is that why you thought it wasn't working, or some other reason?

 

P.S. I hope Dessert Landscape wasn't a typo, it sounds delicious!

0 Kudos
Message 7 of 7
(3,492 Views)