05-12-2008 05:49 AM
05-13-2008 01:18 PM
Hi angelmcdoggie,
I’d be happy to help you figure out the best way to set up your application. If I understand your application, the DAQ hardware will send out a digital pulse. This will pulse will then trigger your shutters to go to high or low magnification. Once the shutter has switched you will receive a pulse back from the shutter. So you are trying to measure the time difference between when you send out a pulse and another pulse comes in? Do you need to test all four shutters at the same time? I’m assuming you are using the 9172 cDAQ chassis with your 2 – NI-9401 modules. The 9172 has two counters available. You will need to have the 9401 modules in slots 5 and 6 to have access to the counters. You can then use 2 edge separation to measure the time between the two pulses. Text based examples of this can be found under the “C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples” directory. Please let me know if you have any questions or if my assumptions are wrong. Take care.
Thanks,
05-14-2008 02:04 AM
05-15-2008 02:08 PM
Hey angelmcdoggie,
A digital output task and a counter input task will work together just fine. A counter input and a counter output task at the same time can work depending on the type of counter tasks you are using. Some counter tasks require two counters. There are only two counters available in the 9172 chassis. For counter input is you are doing two edge separation it only requires one counter. For counter output if you are doing a single pulse generation or a continuous pulse generation it only require one counter. A multi pulse finite generation however requires both counters. So you should be able to generate a single pulse with a counter and measure 2 edge separation on the other counter. Please let me know if you have any questions.
Thanks,