LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for examples of synchronization of image and voltage data

With following equipments

1. Image grab card NI PCIe 1429

2. Basler Camera 504kc

3. Data acquisition card NI PCI 6221 connected with two pressure transducers via
NI BNC 2110

4. RTSI bus cable connect to PCIe 1429 and PCI 6221

 

I plan to synchronize my camera and data acquisition card.

It means when camera is taking a frame (200+ frames per second), I need get the pressure data from pressure transducers which is connected with NI PCI 6221 at same time. 

 

Do you know where can I get any example to help me start my coding. 

 

Thank you,

Shao-Yiu

 

0 Kudos
Message 1 of 4
(2,863 Views)

My "quick and dirty solution" - With a digital output cause a "flash" to occure within the frame.  Have the digital signal also make a mark on your data file.  Do this at the beginning and at the end of collecting data.

 

Digitize the video into a format that Windows Media Player can play back. You can then use the ActiveX properties of the WMP control to align the time of the video with a cursor on a data plot.

 

I tried to do this a few years ago, and I found my code.  I don't think it works 100%, but it may give you some ideas.  That code is attached to this message.  It looks to me like your image capturing hardware is a LOT more advanced than what I was using, so a better solution should exist.

 

You might look into the NI Vision Development Module http://www.ni.com/vision/vdm.htm to see if it will do what you need.

0 Kudos
Message 2 of 4
(2,852 Views)

Thank you for you reply. However, I am using Labview 8.0 and can not load your VI.

Is it possible that your file can be convert for older version of Labview ?

 

Thanks,

Shao-Yiu

0 Kudos
Message 3 of 4
(2,824 Views)

Well, I have no way of testing to make sure the "Save for Previous Version" operation worked correctly.  I have an older version of this file that has a time-stamp of 2006 (which I think should be 8.0 or 8.2) that I can attach if this one doesn't work.  I got the following warnings after converting the file:

 

-------------

    The object "Subtract" does not support output configuration in the previous version.
    The object "Subtract" does not support output configuration in the previous version.
    The object "Add" does not support output configuration in the previous version.
-------------

 

So you may have to replace the adds and subtracks.  Very odd warning.

 

Again, my solution is a crude solution for crude hardware.  Doing a quick look at your hardware specs suggestion there should be a much more sophisticated solution for you that would be less error prone and easier to work with.

 

Lemme know if you want me to attach the 2006 file :).

0 Kudos
Message 4 of 4
(2,805 Views)