09-26-2005 10:35 AM
09-26-2005 01:03 PM
Only time for a few quick thoughts...
I would also like to make sure that I synchronize the counter with the analog source, i.e. to make sure I get exactly 10 data points in each analog cycle.
Ideally I would like to separate the signals that occur in the first 1/2 and the second 1/2 of each analog cycle
I would like to count the photon signals at 100ms integration time, repetitively. But I don't want cumulative counts, just the number of photons (TTL pulses) in every 100ms
I used to do this with the traditional DAQ and connected the analog source to the "GATE" pin of the counter , so i could count "while gate is high" ... However I found some problems and I think my counter wasn't counting correctly
Also I wonder if the "Arm Start Trigger" function is not available on my PCI-6014 card ? Because I can not find it in the Start Trigger property node
09-26-2005 01:03 PM
09-26-2005 10:08 PM
09-27-2005 11:02 AM
Joyce,
Despite the appropriate-sounding name, I don't think CI.CtrTimebaseSource is the correct property to work with. I think you need to use CTR1 as the SampClk.Src under a DAQmx Timing property node. Then you further need to define where the photon pulses are coming in using the DAQmx Channel property node for CI.Period.Term
I'm attaching a code snippet pic. I think this should work, but I couldn't verify it because an executable was using the hw when I whipped it up. Good luck!
-Kevin P.
09-27-2005 02:11 PM
Hi Kevin,
I've changed the property nodes but I still get the error message saying that the Ctr1InternalOut is being used. If I start counting photon pulses first, then it says that Ctr1InternalOutput is being used by Ctr0Gate; if AI is started first, then the error message says that Ctr1InternalOutput is used by AI/sample clock.
Could it be that the InternalOutput of Ctr1 can only be used as sample clock source at one place? I've read somewhere else on the website saying that once the AI Sample Clock is set, the whole board uses the same clock ? But when I tried to set the DAQmxTiming property->SampClk.Src to "Ai/ SampleClock", it wouldn't work either.
If it is true that I can't share the sample clock for AI and CI from another CtrOutput, perhaps I should try to Trigger one of them with the other? Or I am still not configuring it correctly ?
Thank you very much for your help.
Joyce
09-28-2005 11:18 AM - edited 09-28-2005 11:18 AM
Message Edited by Kevin Price on 09-28-2005 12:19 PM
10-03-2005 05:45 PM - edited 10-03-2005 05:45 PM
Message Edited by joyce on 10-03-2005 05:45 PM
10-04-2005 08:54 AM
10-05-2005 02:59 PM - edited 10-05-2005 02:59 PM
Message Edited by joyce on 10-05-2005 03:04 PM
Message Edited by joyce on 10-05-2005 03:05 PM