LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passsword

0 Kudos
Message 11 of 15
(865 Views)

I never stop getting frustrated with this issue. Smiley Mad

 

Never, never, NEVER password-protect a VI. EVER. I've been writing LV code for over 11 years and I have never seen a password solve a problem. And a password almost always invariably causes more problems, including yours. If you need to keep others from messing with your code create an executable. If that is not an option insist that your manager fire the next person who messes with your code. And you should always have a backup of your work. Always. That way, if you suspect someone has changed your code you can always go back to your most recent backup.

PaulG.

LabVIEW versions 5.0 - 2023

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 12 of 15
(842 Views)

PaulG. wrote:

I never stop getting frustrated with this issue. Smiley Mad

 

Never, never, NEVER password-protect a VI. EVER. I've been writing LV code for over 11 years and I have never seen a password solve a problem. And a password almost always invariably causes more problems, including yours. If you need to keep others from messing with your code create an executable. If that is not an option insist that your manager fire the next person who messes with your code. And you should always have a backup of your work. Always. That way, if you suspect someone has changed your code you can always go back to your most recent backup.


I think I know of an exception to that rule.

 

Believe it or not, not all customers can be trusted to pay up. In my line of work, I often write "getting started code" where I put together the architecture and code up version one for the customer. Depending on the customers skill level I'll write to their level of proficiency. Since my end deliverable is source code and I have to run the app on thier machines to prove the requirements were met, password protecting the code that goes on the customer machine is a nice way to make sure we get paid. No pay, no password. Sure the cusotmer could still stiff us and forget about being able to mod the code. But getting stiffed is rare so this is one of those corner cases were our management just has to eat the project, but I don't think that has happened except in the case of a customer going bankrupt.

 

So when the final bill has been paid the customer get the password. They have been very accepting of this idea because until they pay the IP is technically still ours.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 13 of 15
(834 Views)

As it looks now rewriting is your only option. And if you manage to write the new version without abusing globals or locals, or using any ExsperssVI. I think NI actually have done you a favorSmiley Very Happy



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 14 of 15
(832 Views)

I have to agree with Ben.  Only once have I ever password-protected a series of vi's.  And it had to do with one ex-customer.  The single worst customer I've ever had.  You can quickly predict the outcome with customers like that. 

 

Do I remember the paswword?  no

 

Do I want to remember the password?  no

 

Will they ever get the password?  no

 

Was it good to put a password?  yes

 

😄

Message 15 of 15
(807 Views)