LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9264 to produce 3 phase waveforms and shown in 1 chart

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. 

 

0 Kudos
Message 21 of 58
(730 Views)

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? 

 

richardtiatcosandccom_0-1687462096968.png

 

richardtiatcosandccom_1-1687462141485.png

 

0 Kudos
Message 22 of 58
(727 Views)

I need to generate 3phase of 3 sets at the same time from the NI device.

0 Kudos
Message 23 of 58
(726 Views)

I don't have the device board, check this example 

 

LVNinja_0-1687464979124.png

you can copy the waveform to the outputs you need. 

 

 

0 Kudos
Message 24 of 58
(706 Views)

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?

 

0 Kudos
Message 25 of 58
(695 Views)

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!

 

0 Kudos
Message 26 of 58
(695 Views)

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 27 of 58
(682 Views)

Thank you Gerd!

I will update my program and let you know.

0 Kudos
Message 28 of 58
(679 Views)

Hi Gerd,

This code is giving me error. Please help and let me know what needs to be done. Thanks!

 

richardtiatcosandccom_0-1687524543655.png

 

0 Kudos
Message 29 of 58
(671 Views)

Hi Gerd,

NVM. I got it. Thanks! I just have to select the channels.

0 Kudos
Message 30 of 58
(668 Views)