Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronization analog input & counter output

Good morning,

 

I'm using a PCI-6032E and LabVIEW 6.0.

I want to synchronize the analog input acquisition with the generation of a continous pulse train on the counter output pin. But I'm not succeding about this.

I tried also to use another counter output as a trigger for the analog input and, at the same time, as the gate signal of the counter from which I want to have the pulse train, but I register a variable shift between the two signals I want to be synchronized.

Any help??

 

Thank you very much in advance for your help,

 

Paolo

0 Kudos
Message 1 of 7
(7,011 Views)

Hi Paolo

 

I will try to help you, if I can. Which drivers are you using? If you use the DAQmx it will be easier for me to try to support you.

 

I will synchronize the two tasks by using the counter out as master and the the AI as slave. It means that the counter should start generating the signal only after the Ai has been configured to use as sample clock the counter out pulse train.

 

Let me know if this suggestion can be of any help

0 Kudos
Message 2 of 7
(6,996 Views)
Thank you Hudson for your interest!Unfortunately I have to use Traditional Daq and not DAQmx.I was already thinking about such a solution but I don’t know exactly how to set the analog input to use as clock the train pulse I generate. I think I have to use, for the analog input part, the  LabVIEW block ‘clock config’ where I can choose the clock source. Among the possibilities of clock sources that this block offers, there is a counter output, but I have to choose the counter0 output. But if I generate the train pulse on the counter0 output pin, I don’t obtain a physical train pulse that I can wire externally in order to use it for my application. I get a physical train pulse output only if I generate it on the counter1 output pin (it seems that counter0 can generate a train pulse only for an internal use on the board). So if I have to generate my train pulse on the counter 1 output pin, how can I use it also as clock source for the analog input acquisition? I need to wire the counter1output pin, in addition to the wire for my application, even to a PFI channel and select it as clock source?Thank you very much for your helpPaolo
0 Kudos
Message 3 of 7
(6,988 Views)

Hi Hudson, i'm try to solve the problem about syncronization between Counter output and Analog Input.

 

I'm trying to acquire data in same time that i trigger digital output that enable counter output.

 

Now i would a syncronize counter pulse and acquiring input analog.

0 Kudos
Message 4 of 7
(3,467 Views)

Can you describe what you need in more detail?  Perhaps show something like a timing diagram, even if you have to hand-draw it?

 

It's pretty easy to generate a counter pulse train and also have an Analog Input task that acquires samples on each output pulse.  Is that all you're looking for?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 5 of 7
(3,463 Views)

i've done.

 

thanks a lot for your interesting on my request.

0 Kudos
Message 6 of 7
(3,336 Views)
Hi Labview friends,
I meet a question in program Init that I do not discover the use of the <Daq Trigger Property Node> and I really want to know why do not use the <daq trigger(Digital Edge)>?
When i use <daq trigger(Digital Edge)> for AO signal triggerring Counter output signal,my Counter does not do reaction for AO signal .
And Why do you use <ArmStartTrigger>? I see a expaination that AO/DO/AI/DI always use <StartTrigger>because they  have a FIFO buffer for saving data in buffer and CO/CI always use <Arm Start trigger> .But in NI X_Series_manuals Counter can configure three trigger for <ArmStartTrigger><StartTrigger><PauseTrigger>,I am really confused about this part of introduction. 
Could you help me ?
Thank you !
I am looking for ward to your reply!
Beat Regards!
Yunze Lei 
 
Detail in enclosure.
First iamge below is your Program (Init modula).
Second iamge below is NI manual.
Third image below is my program.
Download All
0 Kudos
Message 7 of 7
(3,327 Views)