LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control terminal input to array while vi running

hi, 

I am new to labview, but I couldn't find any solution to my problem on the internet. I want to add elements to an array while vi is running. In more detail, I want to make an executable, which shows the control terminal to write a number in it, and I want to press enter to save the number to an array. Any help is appreciated.

 

Thank you,

 

0 Kudos
Message 1 of 3
(1,090 Views)

Hi Erng,

 


@Erng wrote:

I want to add elements to an array while vi is running. In more detail, I want to make an executable, which shows the control terminal to write a number in it, and I want to press enter to save the number to an array.


How is this to creating an executable vs. running the VI in the IDE?

 

Just show the VI frontpanel to present that control to the user. Then use BuildArray to append the user input to your array…

Best regards,
GerdW


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

This is a very basic exercise and almost smells like homework. Even in this forum here, there are dozens of examples for this!

 

To be able to add to an array, you first need an array, typically this is a thick wire in LabVIEW. Since this should function over and over, you also need a while loop. Since it should only happen when a button is pressed, you need a case or event structure.  If you want to append over and over, the array belongs in a shift register. You need a control for the value to be added, a button, and an indicator for the array plus all the typical trimmings such as a wait and a stop button.

 

I recommend to start with the learning resources listed at the top of the forum.

 

See how far you get ...

0 Kudos
Message 3 of 3
(1,024 Views)