06-02-2012 04:52 PM
In my application I want to capture images continuously with time stamps in milliseconds, acquire data using USB 6210, and run a syringe pump. I can run the syringe pump and acquire data with time timestamps, but I have problems with capturing images at a decent speed (I am running while loop). I am using is a Basler GigE Basler camera that can capture 20 frames per second, but the speed became very low when I am using the loop.
I would appreciate if you guys have any suggestions!
--S
06-04-2012 07:16 AM
So within the same loop you do Image Acquisition with IMAQdx, Data Acquistion with DAQmx and you control a syringe pump. How do you control the pump? Do you have LabVIEW API or is it through an interface like GPIB or Serial? Do you process the acquired data within this loop?
What loop-rates do you achieve and what rates do you expect?
Could you post your code?
Christian
06-04-2012 08:47 AM
At this stage I have three separate programs, (1) for data acquisition (NI 6210), (2) for running pump through serial->USB port, using my own code, (3) for Image Acquisition with IMAQdx. I will put these three together once I am happy with individual program.
The first two programs running well, but the problem is with the Image acquisition loop. I am not doing any processing within the loop and if I write every image on the hard disc the image acquisition rate slows down significantly (2 fps instead of 20 fps). To solve that problem I am trying to acquire images and saving to binary files (https://decibel.ni.com/content/docs/DOC-20952). However, I am not sure how to dequeue the data into individual images or how to get the time stamps for individual images.
Thanks for your help
--S
06-05-2012 03:03 AM
@sankun wrote:
..........
However, I am not sure how to dequeue the data into individual images or how to get the time stamps for individual images.
..........
I assume you want to know how to get the images back out of the binary file. You could use something like this:
If you want timestamps you have to create them along with the image acquisition. Then you will have to pass the timestamp somehow to the loop where you save the images. you will need to do some conversion to save it with the image to the binary file. This will become quite complex then.
Christian