06-22-2023 02:22 PM
For some reason the Func generator would not work for me on a For loop. The phase didn't shifted.
I had repeat the code 3 x.
06-22-2023 02:29 PM
Hi LVninja,
I was able to make the code produced waveforms in 3 phase and one graph. My question is for the other channels, like ao4, ao5, ao6, do I need to again copy paste and just select these channels?
06-22-2023 02:30 PM
I need to generate 3phase of 3 sets at the same time from the NI device.
06-22-2023 03:17 PM
I don't have the device board, check this example
you can copy the waveform to the outputs you need.
06-23-2023 06:29 AM
Hi,
This is where I based my code. I want to fire all 10 channels at the same time. I have already done for the first 3 channels, and the other 2 sets (3 lines each) is similar to the first 3, is there any function that can do this?
06-23-2023 06:55 AM
Hello All,
I have my own Topic created but I feel I can get more answers here.
I want to program certain channels to the following so when I run the program, all channels will work at the same time. I am using NI 9264 device. Attached is my code.
Physical Channel 1 - ao0, ao3, ao6
Physical Channel 1 - ao1, ao4, ao7
Physical Channel 1 - ao2, ao5, ao8
I am trying to generate 3 sets of 3 phase analog voltage output with 120 degrees apart.
Your help will be highly appreciated.
Thank you!
06-23-2023 07:31 AM
Hi Richard,
richard.tiatco@sandc.com wrote:
I was able to make the code produced waveforms in 3 phase and one graph. My question is for the other channels, like ao4, ao5, ao6, do I need to again copy paste and just select these channels?
Whenever you duplicate code to get an array of data you should think about using an array of input data and a loop to process those array input data!
And when outputting an array of waveforms onto a multi-channel AO module you should use the DAQmx "multiple channels" mode instead of creating 9 DAQmx tasks for 9 DAQmx channels…
Conclusion: it doesn't matter if you process 3 or 9 channels when you handle them with arrays and loops!
(And please keep your discussion in one place (aka thread) instead of spreading the discussion to several places.)
06-23-2023 07:34 AM
Thank you Gerd!
I will update my program and let you know.
06-23-2023 07:49 AM
Hi Gerd,
This code is giving me error. Please help and let me know what needs to be done. Thanks!
06-23-2023 08:05 AM
Hi Gerd,
NVM. I got it. Thanks! I just have to select the channels.