Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to manullay build a DigitalWaveform to use with DigitalMultiChannelWriter

I'm trying to generate a waveform to send out my pci-6534 digitalIO card. The DigitalMultichannelWriter requires a Digitalwaveform[] as one of its parameters. I'm wondering how to build my waveform so I can write it out my task stream. Any help?
0 Kudos
Message 1 of 2
(3,416 Views)
It sounds like you are using the .NET assembly for DAQmx.  If this is the case it may be more straightforward to use the WriteMultiSamplePort method of the DigitalMultichannelWriter class as opposed to the WriteWaveform method.  This method uses the more basic data types.  There are several different prototypes of the WriteMultiSamplePort method including a two dimensional array of unsigned 16 bit integers that represent the states of the various lines on the board.  For more information on these methods I would highly recommend taking a look a the NI-DAQmx .NET Framework 1.1 Help.  You can find this by clicking Start>>All Programs>>National Instruments>>NI-DAQ>>NI-DAQmx .NET Framework 1.1 Help.

Regards,

Neil S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,401 Views)