08-30-2010 07:17 AM
Do you have example of c# code (.NET 2.0) that generates bursts of pulses continuously with PCI-6533 (or other device if any other device does this and 6533 don't)?
By "bursts of pulses" I mean that each pulse has the same pattern (frequency and duty cycle (of a pulse) are configurable, and each pulse has the same frequency and duty cycle), and between bursts there are some configurable idle time.
08-31-2010 03:56 PM
Hello,
With your card, it is going to be difficult to have that variability since retriggerable tasks in hardware require a counter. You can software time the application, but your speeds will be significantly less than the card can actually sustain. If you have a board with counters, you can generate pulse trains and vary frequency and duty cycle easier.
With a board with counters, you can do a continuous pulse train with pause trigger type application. The example can be located by going to Start » All Programs » National Instruments » NI-DAQ » Text-Based Code Support » .NET 2.0 Examples » Counter » Generate Pulse » GenDigPulseTrainContinuous_PauseTrigger » cs.
What specs are you looking for on the pulses generated? How fast do you need them to be? What selects the idle time between bursts?
09-01-2010 12:49 AM
Hi,
Thanks for your response.
As I understood I can achive this goal with PCI_MIO_16XE_10 (a card that I already have).
I'm going to use ctr0 (or ctr1) as trigger, ctr1 (or ctr0) as the pulse and connect them via PFI4 (or PFI9) (with ConnectTerminals command).
Is this scenario look right?
09-01-2010 10:08 AM
Yes, that sounds right for configuring a continuous pulse train with selectable frequency and duty cycle, while having the second counter adjust your idle time for when the pulses do not need to be output.
Here is a good KnowledgeBase on how to change frequency on the fly, in case this is functionality you are looking for in your application.
To come back to the 6533, you can do the same things you are doing here. You can generate streams of data and run that to your Digital Output on the board. For example, 0011001100110000000001100110011 would give you bursts of pulses with idle time between. To configure frequency and duty cycle by the sample clock you use and the amount of 0 and 1 data points you write out. It would take some math but it is definitely possible. You would also take into consideration that the 6533 card uses a 2MHz clock, so if speed is an issue you would only be able to output max a 1MHz 50% duty cycle signal.