LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Personal Project

Hey guys, 

I am trying to come up with a system where an array is able to control an indicator by using a loop.

The array is divided into 2 columns where one describes the time and the other, the value to be set in the indicator. Said value has to be set for the amount of time specified by the value which is paired with in the row of the array.

I am quite new at this and trying to learn, but I've found myself stuck in the middle of this problem for a couple days now.

0 Kudos
Message 1 of 4
(1,349 Views)

Hi guy,

 


@ScienceGuy2910 wrote:

Said value has to be set for the amount of time specified by the value which is paired with in the row of the array.


All you need is an autoindexing FOR loop with an indicator and a wait inside...

 


@ScienceGuy2910 wrote:

I am quite new at this and trying to learn, but I've found myself stuck in the middle of this problem for a couple days now.


But still you forgot to attach the VI you are working on...

Best regards,
GerdW


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

I have tried to do this, but it is not possible to connect a 2D array to an indicator, via the autoindexing FOR loop.

The image that I have attached is the error that is giving me. I have tried to separate them into rows and then feeding it into the indicator, but it gives me the same error.

I don't know how to program it so that the column to the left sets the value on the right on to the indicator for the specific amount of time (indicated by the value on the left) and then doing so for all of the rows simultaneously.

 

So that the value 40 is set for 1s, then the value 45 is set for 2s and so on.

0 Kudos
Message 3 of 4
(1,289 Views)

Hi, 

 

in the loop you get a 1D array, containing two values.

Just use IndexArray to get both values...

 

This is pretty basic stuff: did you notice the Training resources offered in the header of this LabVIEW board?

Best regards,
GerdW


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