LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert to jpeg

Hi!
i have a picture in LV6.1 and i would know if is there any way to convert it to jpeg format, but not in a file, because i need to send the data using DataSocket. I know about the Intel JPEG Library, but i'm not sure how to use it with Labview. Thanks in advanced!!

Sonia
0 Kudos
Message 1 of 4
(3,036 Views)
What format is your picture currently in? If you have a library to handle this application, such as a dll, you can use LabVIEW to call this library. Let me know what type of library this is and we can find a way to access it from LabVIEW.
J.R. Allen
0 Kudos
Message 2 of 4
(3,036 Views)
Hi JRA,
in my application i have an activeX control wich is an image acquired from a webcam. I get this image using "Get image" method of the activeX container, so i have it as an array of unsigned byte. I have try to send this array using DataSocket, but it's too slow and i have about 1 second delay between the image I acquire and the image I receive.
I know that the JPEG Intel Library has a function to convert to jpeg, with a parameter to select if you want it in a file or in a buffer, but I don't know how use it with Labview.

If you think there's any way more efficient to do this, please let me know.

Thanks a lot!

Sonia
0 Kudos
Message 3 of 4
(3,036 Views)
If you have the DLL, you certainly can do this. There is an Application Note on National Instruments website entitled An Overview of Accessing DLLs or Shared Libraries from LabVIEW. This sounds like what you are looking for. This will give you instructions on calling your Intel DLL from within LabVIEW.
J.R. Allen
0 Kudos
Message 4 of 4
(3,036 Views)