LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I controled voltage output by vertical pointer slide In my vi.Now,I try tocontrol it by a series accurate values. I want to get output according to the array's value.

I controled voltage output by vertical pointer slide In my vi.Now,I try to
control it by a series accurate values. I want to get output according to
the array's value.

0 Kudos
Message 1 of 6
(2,674 Views)

Hi Yun,

 

1) You should type a descriptive title for your post and put the "main" text into the post. Putting the text into the title is annoying...

2) You should init the task before the loop and de-init after the loop. No need to do this with every iteration!

3) When trying to output an array of values you should use a FOR loop instead of the while loop and use the autoindexing feature of the loops to get the actual values from the input array...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,670 Views)

Hi Yun,

 

here I don't have DAQmx installed. But there are several examples to look at when using the Example finder in the help menu of LabVIEW!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,663 Views)

I have seen those examples.But,I still have no idea to solve my problem.

 

Yun

0 Kudos
Message 5 of 6
(2,660 Views)

Yun,

 

Here's a simple example I wrote that does what you are trying to do. You can wire an array into an Analog Out 1D DBL 1 chan N Samples. Then I wired the size of the array into the number of samples per channel on the timing vi.

AnalogOut Array.png

 

Regards,

Danny F

Danny Funk -- Senior Group Manager -- Software R&D -- NI
0 Kudos
Message 6 of 6
(2,638 Views)