Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save image data to file using delphi?

Dear All,

Can anybody help me regarding how to store image data to a binay file so that it can be used for later processing purpose. Here i've attached one zip file for your reference. The given code works fine when i set the frame rate to 4.0 Hz(PCI-1424) but this is not working with frame rate lower than 4.0. It does not give any error with lower frame rate but the data that will save is not proper or not synchronized. One more thing i want to ask is what is the difference between two constants cwimaqBufferComplete and cwimaqFrameDone while using them with SignalOccurrence Event.

Any help regarding this problem is very much helpful.

Thanks in advance.

Regards

Mehul Parekh.
0 Kudos
Message 1 of 2
(4,759 Views)
Hello!

The given code works fine when i set the frame rate to 4.0 Hz(PCI-1424) but this is not working with frame rate lower than 4.0. It does not give any error with lower frame rate but the data that will save is not proper or not synchronized.
Unfortunately, we do not support using our IMAQ libraries in Delphi, and I therefore do not have the development environment. That being said, there are several people who have some success using the ActiveX controls to get images, but beyond that there can be issues.

One more thing i want to ask is what is the difference between two constants cwimaqBufferComplete and cwimaqFrameDone while using them with SignalOccurrence Event.
I have attached an image of the IMAQ Vision for Visual Basic Refere
nce file, which can be found in the Start menu_Programs_National Instruments_Vision_Documentation path, that describes the differences between these two signals.

This should help you out!
Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
0 Kudos
Message 2 of 2
(4,759 Views)