12-12-2022 11:55 AM - edited 12-12-2022 12:42 PM
Hello,
I am having trouble generating a waveform for AO0 (sine wave) and AO1 (cosine wave) respectively.
I can generate any waveform on a single channel, but generating waveforms to multiple channels eludes me.
Code:
I tried using AnalogMultiChannelWriter but I couldn't get the multidimensional double[,] set up correctly..
Anyone have advice for how to proceed? Is there an NI example? I couldn't find one in my local ...\National Instruments\NI-DAQ\Examples folder.
Thanks in advance,
Jon
Solved! Go to Solution.
12-12-2022 12:16 PM
You need to put both channels in the same task and use the N-Channel writer instead of a single channel.
12-12-2022 12:39 PM
I'm not finding the "N-Channel writer"...
I tried using "NationalIstruments.DAQmx.AnalogMultiChannelWriter" but this proved not to be so intuitive.
Which class are you referring to?
12-12-2022 10:19 PM
Yeah, that one, NationalInstruments.DAQmx.AnalogMultiChannelWriter
I am not so familiar with C# but know from LabVIEW APIs for DAQmx.
12-14-2022 12:17 PM
Does anyone have an example of how to set up the multidimensional waveform for the 'AnalogMultiChannelWriter' class method 'WriteMultiSample'?
12-15-2022 07:52 AM - edited 12-15-2022 07:54 AM
I figured it out. My multidimensional array was being populated in the wrong order.
This works:
02-03-2023 12:24 AM
Can cRIO 9039 + 9263 work with measurement studio? It seems like my computer cannnot connect the cRIO successfully? When I am running the examples, it always got stuck? Could someone help me?