From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel String Control holding previously entered values for Future Use

Hi All,

 

Iam trying to work on the following requirement.

I have String Control which accepts IP address on the Front Panel. When the User runs the exe and he enters the Ip address in the string control and my exe will communicate with that RT and get data.

 

Now I want to holds the previous entered IP address for future use. I.e. The user open the exe for first time and he enters some IP address (10.5.2.abc) and closes the exe. Now when the user opens the exe and tries to type a new 10.5.xx.xxx it should list down the previously IP address 10.5.2.abc in the drop downlist allowing the user to select it.

 

In the similar manner it should hold only 5 last entered IP address.

 

Please let me know how to work on this.

 

Thanks In advance.

 

Ramesh.

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

I would use a drop down combo box....

 

  • write the user ip to a file, append to file
  • read the file and populate the combo box with your multiple ip address string array using properties "strings[]"
  • since it is an array, use the 'delete from array' and the 'delete portion' of it and set the length to 5

 

0 Kudos
Message 2 of 3
(1,871 Views)

Sounds like a job for configuration files.

 

This post should be a nice springboard for where to find more information about them.

---
CLA
0 Kudos
Message 3 of 3
(1,858 Views)