12-14-2020 03:00 PM
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.
12-14-2020 03:07 PM - edited 12-14-2020 03:08 PM
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...
12-15-2020 04:22 AM
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.
12-15-2020 04:42 AM