From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-28-2011 04:09 AM - edited 04-28-2011 04:10 AM
Hi,
I want to configure my USB-6221 Board in the following mode
1. Counter0: Generates pulses in continuous mode.
2. Counter1: Is triggered by the Counter0 Pulse (rising edge) and generates a train of 128 impulses with a certain frequency.
3. DigitalInput: Using the pulses generated by the Counter read 128 values from Digital Input
Cnt0: _____|______________|______________|______________|_________
Cnt1: ______||||||||||||_________||||||||||||_________||||||||||||__________||||||||||||___
DigIn:______xxxxx_________xxxxx__________xxxxx_________xxxxx____
The problem is: I don't manage to trigger the Cnt1 using the output from Cnt0.
If I connect using the Cnt0InternalOutput: I get the error: this connection is not supported by the board
If I connect the Trigger to a PFI(e.g. PFI5) I get the error: that some resource from Cnt0 is used (I don't see any reason why by ok).
I've been trying for a while to make in in different way (I've completely mixed up my vi) but I didn't manage.
If someone has some suggestion please shear them.
Thanks,
Paul
Solved! Go to Solution.
04-28-2011 06:45 AM
Ignore my previous post.
One mistake is that Sample Clock: Finite Sample doesn't seem to work with trigger in this configuration.
Anyhow I found a way to work around and to achieve my final goal (the purpose of the test) with a complete other counters and digital input configuration.
04-29-2011 12:49 AM
Hi,
Since your question seemed to be answered please mark your own post as answer.
Thanks,
Christian
04-18-2012 10:16 AM
Would you mind sharing your solution? I just ran into the same problem.
Thanks a lot!
Bef
04-19-2012 09:45 AM
What I'd try first is to use Counter 1 as a Pause Trigger for Counter 2, and then set Counter 1's
pulse width to be 128 periods of Counter 2. That oughta work for an M-series.
-Kevin P
04-19-2012 10:42 AM
Thanks!
I figured that out as well. The tricky part was finding the "Ctr1InternalOutput" - channel that has to be connected to the pause-trigger-input. (right-click on the constant - name filtering - show advanced)
04-22-2012 12:27 PM
Hi Bef,
I don't remember exactly which was that solution.
After several days I didn't use the NI board anymore for that project. What I needed was to complex for an Acquisition board so I did everything using a FPGA.
Sorry for not being able to help you more.
Regards,
Paul