Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple analog channel output with Delphi

I try to output two different waveforms on the two analog channels of a PCI-1200 device. I managed to ouput the same waveform on both channels, but can't get it to work with two different waveforms.
Besides that, how can I add and remove channels. I am using Borland Delphi and the parameters of "CWAO.Channels.Add()" are not clear to me. What does the ActiveX component expect for 'UpperLimit', 'LowerLimit', 'ReferenceSource' and 'ChannelType'? They are all of type OleVariant and I am not sure what to pass there.

Any help would be highly appreciated.

Thanks Michael Russold
University of Liverpool
We
0 Kudos
Message 1 of 2
(2,668 Views)
Hello;

To output different waveforms on the Analog output channels, you just need to change the buffer array of data points that will be output.

The array will be output in a way that its first data point goes to channel 0, second data point to channel 1, third to channel 0 again, fourth to channel 1, and so on.

Therefore, in case you want to modify the waveform that goes to channel 1, you just need to change the data points of odd indexes of your array.

Regarding your second question, the upper and lower limit are the input range expected for your signal. That will automatically set the best gain to fit your signal to the full range of the ADC.

You can get more information about a specific component in the ComponentWorks on line help installed on yo
ur machine.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,668 Views)