Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

From string to Jpeg

Hello to all.
I'm trying to capture an image from a camera connected to the PC with arduino.
I can get a string with the code of labview image jpeg (from FFD8 to FFD9) but I can't view it in any way.
I have tried all.

https://decibel.ni.com/content/docs/DOC-13513 (but when run the program labview crash)

http://forums.ni.com/t5/Machine-Vision/Convert-JPEG-image-in-memory-to-Imaq-Image/td-p/851074 (the program not displays the image)

but can view the image.
I hope you can help me.
thanks.

 

I use Labview 2010 with NI-IMAQ.

0 Kudos
Message 1 of 4
(3,903 Views)

hi Carmine,

 

in order to understand your problem, i want ask you a couple of things.

 

1) You have install the LabView interface for Arduino Toolkit?

2) From first link that you attached me, you can try the second dll?

3) From second which are the results?

 

Thanks

0 Kudos
Message 2 of 4
(3,881 Views)
Thanxs m.amoruso.
1)no because i use the VISA, but the arduino and labview looks talk good.
2)yes
3)but like a first when run the program labview crash...
Thanxs a lot.
0 Kudos
Message 3 of 4
(3,868 Views)

Try saving the striing as a jpeg file, then reading the file.  If you don't get an image, there is something wrong with your string.  The string should be exactly equal to the contents of a jpeg file.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 4
(3,866 Views)