I am trying to upgrade a scientific CCD camera interface [having a Hamamatsu C-7041 detector head]. We have been using an ISA bus AT-MIO-16XE-10 card with Measurement Studio ver 6 ActiveX components, [2 pulsers and 1 AD ActiveX icons] programmed with Visual Studio 6 and in Visual C++. We would like to switch to a PCI-6221 M-series card using Ni-DAQmx and Measurement Studio ver 8.1 running on Visual Studio.Net C++ or VB.net, but I am not sure that the new card can do the job as I am having trouble with the card. Measurement Studio keeps telling me resources are already in use.
The original application used one of the counters on the ISA card as a master clock pulse running continuously at 100 KHz. A second counter was used as a start pulse generator that was synch to the master clock. The camera returns a triggering pulse for each pixel or column of video data as they are pushed out after starting the master clock. This triggering pulse was used to synch a single channel of analog data conversion. Data was stored as a cwSafearray and when data was acquired, we fired a data-acquired-event. The On-data acquired handler captured, stored, and display the data as we desired. We were able to use this system with several different types and sizes of CCD camera chips for emission and fluorescent detection schemes. Unfortunately, we need to move off of ISA bus and would like to get away from ActiveX components and switch to a PCI bus and Ni class libraries.
The m-Series manual implied that their cards would do this job faster and easier, so we bought one. However I need help making it work. I can easily create the master clock signal using the Ni-DAQmx task assistant to program the M-series card counter ctr0. Similarly, I can create a start pulse generation signal of fixed length using counter ctr1. However, it appears I can not use these signals together. If I start the master clock and then try to start the StartPulse class object, I get an error message that the resource is already in use. I have tried to work the counters into a single task but have been unsuccessful. I have been able to manually trigger the start pulse using a Port 0 DIO line but I prefer to use the counter or a PFI line. The analog input options do not let me set a trigger using a direct DIO line but I can use any of PFI ones.
I am also not sure exactly how best to set up the ADC triggering pulse from the camera. I had the camera return trigger pulse going to the PFI 2 input and then set the ai0 to use the output of the master clock and trigger off the start pulse. If I tried to reference trigger to PFI2 the conversion seemed to hang. The ai0 was set to acquire a fixed N data points. This was either the number of columns on the CCD or the total number of pixels on the CCD depending on if we were collecting a line spectrum [binning on mode] or an image [binning off mode]. The camera also provides a EOS line that uses negative logic. I did not use that option in my original code. The binning mode was set using a single DO line.
To summarize, the camera needs
The camera returns
The M-series analog-in must capture the video signal in synch with the camera master clock and the trigger pulse.
FYI - my signals are currently routed via a BNC-2120 interface box.
We have to do exactly the same thing for a C4350 Hamamatsu Camera
The ISA Board to replace is a Data Translation of the DT283x serie
In this configuration , a DIO relopping on Ctr2 (Ctr labelling starts at 1 for the DT283x)
So Please let me know what is the blocking question concerning the simultaneous generation of Master clock and start pulse
Did you tried to program this using labview?
I finnaly solved my Problem od sync between Masterclock and master start by letting the system acquiring 1025 pixel / projection instead of 1024 and then removing the null pixel
On table, my system is working perfectly but when I add a motor environnement the system is disturbed when the motor is used to move or to regulate a position (which mean current needed to control the motor)
DId somebody met the same problem of noise
if I strap The Video signal and the A_GND on the subd15 and isconnect the C4350, I measure with a simplified Labview program a very small noise (around 3mV) when the noise become 30 mV when the C4350 circuit driver is connected