Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I generate a continuous digital waveform from C on a PCI-7633

I would like to be able to generate a continuous digital 1 bit output using
one of the digital I/O lines on my PCI-7633 card.

I can generate a continuous analogue output defined in a buffer, but cannot
work out how to generate a digital waveform based on data samples in a
buffer. The C examples only show a static digital output, or a continuous
write using an external clock (I want an internal one).

Is it possible or would I have to fake the digital waveform using an
analogue channel.

I am using the NI-DAQmx API from C.

Thanks
0 Kudos
Message 1 of 3
(6,628 Views)
Hi,

I dont believe that the 7633 is an NI card, could you please check the model number?

Kind Regards

Tristan
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 3
(6,622 Views)
Appologies, its a PCI-6733 not 7633.

I have also solved my initial problem by an alternative approach but also beleive I know how to solve the general digital out issue.

The solution I found was to use a counter timer to generate a frequency output on ctr0out with a given duty cycle, the waveform I wanted was periodic. This I have then used to clock out an analogue signal, solving that sync problem. Finally I have another counter timer, driven from the ctr0 again, which divides the clock down further to generate another digital pulse but at a lower frequence.

The original problem I thin can be solved by feeding a standard digital out channel with a valid clock. I did not realise that the digital outputs did not have an associated default clock, as do the analogue ports.

Thanks.
0 Kudos
Message 3 of 3
(6,616 Views)