LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmable Pulse Generation using a 6533 board

I will use a 6533 board to generate pulse forms.
On 4 digital output channels I have to generate pulses in the range of 1 ... 4 usec (1MHz)programmable (1usec steps). The time between the pulses shall be 1 ... 100msec (5msec steps) also programmable. It is no problem to generate the pulses using the internal frequency. The problem is the time between the pulses.
My idea was to implement the time between by software. But, the sequence I implemented do not work propper.
DIO Config -> DIO Write -> DIO Start -> interval time -> DIO Write -> DIO Buffer Control (Start)-> interval time-> DIO Write -> DIO Buffer Control (Start) a.s.o.
The problem may be a bug in the DIO Write Buffer function. A DIO Write Buffer call after a DI
O Start returns with function finished. The data that should be written to the Write Buffer was ignored. Therefore the following DIO Buffer Control (Start) failes. If you ignore the Error Code and you go on with a DIO Write it will accept the data, it indicates function ready and the next DIO Buffer Control (Start) bursts the pulses.
In that way every second pulse bursts out.
I hope i will get a notice or a solution for my problem.

Peter
Message 1 of 2
(2,599 Views)
Peter

Have you tried to just set up your buffer to take into account the time betweeen pulses. For example to generate a 1 usec pulse and a 10usec delay you could output this data [1,0,0,0,0,0,0,0,0,0,0,1,...].

This will be the most accurate way of doing this. If you do the delay with a software timer, there may be some inaccuracies of the time of the delay.

Brian
0 Kudos
Message 2 of 2
(2,599 Views)