LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to transform LabVIEW type picture to IMAQ type picture?

Hello everybody,
I have got a LabVIEW library, which makes AVI files from series of pictures. But unfortunately, as the input for the "AVI write" function, it needs the picture in the IMAQ format (not this blue line which means LabVIEW picture, but just pink line which means cluster). So IMAQ picture is a cluster, and I want to find a method for transforming the LabVIEW picture to IMAQ picture. Is it possible without buying any additional IMAQ libraries? (I have got only restricted number of IMAQ functions which were originally installed with LabVIEW itself).
TIA,
Yazilim
0 Kudos
Message 1 of 11
(9,133 Views)
Yazillim,

Unfortunately, you are probably going to need the IMAQ library, unless you have the following (I don't know what you have because I have IMAQ): IMAQ Create, IMAQ Read ___(format, either tif, jpg, png, etc), IMAQ Destroy.

The problem is that IMAQ uses pointers, which is what the IMAQ image datatype is.

If your library that you acquired has the ability to read files, I would go that route instead of trying to input the pictures directly. The ONLY way to input the pictures is to read them from a file, or to acquire them through IMAQ, so you can see the problem you are going to have.

I would also suggest two things: Contact NI (ni.com/ask) and the person/company that made the library. They should be able to make a tool for you to read the
files into their library. Then, all you need is to purchase the runtime license for IMAQ.

Good luck.
0 Kudos
Message 2 of 11
(9,131 Views)

Hi,

Does anyone can provide the source code to solve the above problem?

Or any other reference available on the web?

Thanks,

Kai

0 Kudos
Message 3 of 11
(8,954 Views)
Kai,
 
So you are trying to convert a picture that is a LabVIEW picture format into an Image data type? I used the Picture to Pixmap.vi wired to the Write JPEG File.vi, wired to the IMAQ Read File.vi.  If you let me know what version of LabVIEW you are using I can upload the example I wrote.
 
Christopher W.
Message 4 of 11
(8,931 Views)
Hi Christopher,
 
Hopefully, I did not mis-understand your suggestions.
However, I just can't achieve the task.
Please find the attached vi for your reference.
 
I am grateful if your can comment on my simple viSmiley Wink
(The vi only can convert U32 color video to jpeg individuel files.)
The broken wire was due to the IMAQ Readfile. (They are still not compatible)
 
I am using LabView 7.1, IMAQ 3.5.1 and IMAQ 1394 2.0.2.
 
Many thanks,
Kai
0 Kudos
Message 5 of 11
(8,922 Views)

Kai,

Check out this example.  I wrote the file with the Write JPEG.vi but you could also use the Write PNG File.vi or the Write BMP File.vi.

Christopher W.

Message 6 of 11
(8,907 Views)
Christopher,
since my version is 7.0 express with imaq also 7.0. I can't open your demo.
would you please upload one file by screen copy which allow me to see
the diagram of your vi inner structure if it is only one layer.
It is urgent for me to know how to convert picture to imaq image also.
thanks very much.
tang
0 Kudos
Message 7 of 11
(8,886 Views)
Tang,
 
I attached a screen shot of the block diagram.  It is very simple so you should be able to reproduce my example. Enjoy!
 
Christopher W.
0 Kudos
Message 8 of 11
(8,863 Views)
Christopher,

Thanks for the picture. It works.
my question is if this is the way we have to work,  that's mean we need to
write this file to HD each time, therefore, for high frequence operation, this
may cause some problem for HD. 

in fact, can we only read from memory without treat by write file? so this will
be faster and safy method. I hope to discuss with you for this issue.


tang
0 Kudos
Message 9 of 11
(8,857 Views)
Hi Christopher,
 
The example is great.
This is exactly what I want to achieve.
 
Tonight, I can sleep well ... ...
 
Smiley Very Happy Smiley Very Happy Smiley Very Happy
 
Many Thanks,
Kai
0 Kudos
Message 10 of 11
(8,832 Views)