02-16-2010 08:51 PM
Hello,
Is there a way to disable the ability of a user to edit the cells of a table indicator? I have a table indicator on my front panel and just want it to be a indicator, nothing else. I have found that I can change the contents of a cell in the table indicator and type in any value I want.
02-16-2010 08:58 PM
If its an indicator, and the VI is running, then they can't edit the cells of the table.
The only way they can edit an indicator is if the VI is not running. Which begs the question, why are you allowing a user to access a non-running VI?
02-16-2010 11:55 PM
02-17-2010 07:20 AM
Hello,
The code that puts data into the table is in a subvi that periodically runs to get the power levels from the AC power supply. So when the power supply is not being queried for the power levels the user can change the cell contents. So , I will try the multi-column list box to see if that works any better. Stay tuned for further details....
02-17-2010 07:52 AM
Hello,
I tried using a multi-column list box and the data type for the list box value is a 32 bit unisigned integer. How do I put a data array into a multicolumn list box?
02-17-2010 07:56 AM
02-17-2010 07:58 AM
02-17-2010 10:08 AM
02-17-2010 02:00 PM
You can lock your VI (VI Properties -> Protection). This stops the casual user from editing the values when the VI is not running. The cunning user will simply unlock the VI and mess with the table. In this case your choices are either to threaten them with physical harm or password protect your VI.
You can also put a transparent control (such as a 2D picture) on top of the table and group them. This is effective, but very annoying, so this is usually relegated to 'dirty tricks to play on your co-worker'.
The best advice is probably what you have already been given, if someone is to be "using" your VI then it should be running. Trusting a user with access to the block diagram is like trusting your teenager with the keys to your sportscar.
02-17-2010 02:31 PM - edited 02-17-2010 02:32 PM