ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping track of a list of Engineers/Operators for this VI.

Solved!
Go to solution

I am trying to create a VI that runs a series of tests, to improve the users experience I am wanting to make it as simple as clicking an Enum and selecting their name from a list to populate their information. If they are a new user I'd have a button available that opens a subVI allowing to populate their information, which then adds/ updates it to the list of users. I know this is a simple question, but not sure the best practice for doing this. On the front panel of my VI I would have a box similar to this asking for the users name, if their name isn't in the list then they can add their name to the list by clicking Add User and filling out the popup.

 

username.png

Clicking Add User would popup the following dialogue box.

 

addName.png

 

Once a name is input to the box and ADD is clicked then it would return to the previous VI and then the user could select their name from the updated Enum.

 

Would it be best to just have a text file with all of the users information in it that is read in and updated? 

 

Thanks,

 

Kellen

 

 

0 Kudos
Message 1 of 10
(4,285 Views)

It depends on a lot of things. When I have users it is my preference to put it into a database. I find that users, which are several in the factory,  get called over and over again, and it is nice to easily call it up. It is also nice to have a common point to maintain the list. But, if you just have a few users, that won't be used over and over again, a text file would work.

Rather than a full blown database you could also go with a datalog file or an xml file.

It could even be done with a binary file if you have any personal information.

If you have any personal information remember this is a different ball game. You have to secure that kind of data.

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
Message 2 of 10
(4,272 Views)

Is there a way to dynamically update the enum that is in the main VI once a user adds their name to the list of users?

 

Thanks,

 

Kellen

0 Kudos
Message 3 of 10
(4,266 Views)

Rewrite all of them to the string[] array property node.

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
Message 4 of 10
(4,260 Views)

Sorry that is the strings[] array not the string[]array.

 

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
Message 5 of 10
(4,258 Views)
Solution
Accepted by rkmadse

Is an ENUM what you really need?  Enums don't output the name....they output a number associated with the name.  I think a combobox may work better for this, depending on how you plan to use the information. 

aputman
Message 6 of 10
(4,235 Views)

I agree that a comboBox would be better to use, and so i will use that. Now just tring to figure out how to read/write with datalogs to successfully return the list, thanks.

0 Kudos
Message 7 of 10
(4,227 Views)

@PatrickLye wrote:

Rewrite all of them to the string[] array property node.


This not allowed for an enum.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 8 of 10
(4,194 Views)

@rkmadse wrote:

I agree that a comboBox would be better to use, and so i will use that. Now just tring to figure out how to read/write with datalogs to successfully return the list, thanks.


A ring control looks like an enum control but you can add items at runtime.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 9 of 10
(4,190 Views)

Oops, yep, that is a ring control I'm using...

Glad to answer questions. Thanks for any KUDOS or marked solutions 😉
Message 10 of 10
(4,145 Views)