Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-1424 with NI-IMAQ 1.0

hi, I want to use PCI-1424 acquire images and save the images to local disk. For some reason, I have to use NI-IMAQ 1.0 as the driver and Visual Basic. My question is how to add a header to the image and how to save the images in my own format? Thanks.
0 Kudos
Message 1 of 4
(3,266 Views)
Hello trinight,
 
Do you know why you are using IMAQ 1.0?  If possible, I would certainly recommend using a more recent driver, preferably the most recent version.
 
You can definitely use the NI IMAQ Save Image VI to save images to file, but if you are looking to use your own format, the best method is probably to use the IMAQ Image to 2Darray function.  After doing this, you can modify the image as you see fit and save it to file using LabVIEW's File I/O subpalette.  This will give you more explicit control over the save format, allowing you to save it with other data as well.
 
Hope this helps,
 
Robert
0 Kudos
Message 2 of 4
(3,247 Views)

Hello Robert
    The reason is the camera file, I tried the IMAQ3.0 but it does not work with the camera file, and I haven't fixed the camera file. The LABVIEW is good to use, but I have to use Visual Basic. Can I use the API(IMAQ.DLL) functions to solve the saving problem?
0 Kudos
Message 3 of 4
(3,247 Views)

Hi trinight,

If you have an older camera file, I would recommend seeing if we have that same camera file available on our website or if it downloads with the driver.  What camera are you using?

Yes, you can use the API to interface with the driver.  The most recent version of the IMAQ driver (3.1.3) has great support for Visual Basic, with many different example programs.

Additionally, many times the newer driver version will actually go through and update the camera file.  Sometimes, for extremely old versions, this does not work. 

Maybe we can use both a newer camera file and newer driver.  In my opinion, it might make the programming process a little simpler.

Regards,

Robert

0 Kudos
Message 4 of 4
(3,225 Views)