03-07-2014 07:26 PM - edited 03-07-2014 07:27 PM
Hello all,
I'm working on a LV VI that will send out a voltage from a laptop to a circuit (with an op amp), amplify the voltage, then send it back into the laptop. There is a numeric control which the user can input values into to control the voltage leaving the laptop. I need to send out an unknown voltage at the same time which the user will not know the value of. For instance, say I were to have a control that I could type "1" into, this would generate an unknown voltage of 0.2V, and this then adds to whatever voltage the user sets the VI numeric control to. So, my challenge is how to create a table or array of values that can be hidden in the block diagram from the user? I've attached my attempt at creating a method to do this, I'm new to LV, so any additional suggestions as to how to approach this are welcome! Also, I know the block diagram can be password protected, but are there any other ways?
Thanks in advance,
Graeme
03-07-2014 08:01 PM - edited 03-07-2014 08:02 PM
03-07-2014 08:05 PM
Graeme,
I am curious about the reason you need to hide this array. Will the VI be running in the development environment and the users know how to look at the block diagram? Why do you want to allow that?
If they can edit the program, they can always place an indicator like your Unknown Value Indicator to see what is going on.
You should also disable debugging as that removes some ways to see the data.
If you create an executable, then the users cannot see the block diagram.
L
03-07-2014 08:24 PM - edited 03-07-2014 08:45 PM
Thanks for the prompt reply! I'll have to read up on building a stand-alone application, thanks for the suggestions! The users will be students, so they have no need to get into the block diagram. I'm avoiding a password at this time in case it is forgotten and unable to be found at some point.
@John thanks! My intent when I wrote this post was to have it run in the development environment, yes. Now I see I don't need this to be the case. I briefly came across creating an executable as a solution - is that turning the VI into a .exe file/stand-alone application?
From what I've read unless the LabVIEW version I'm using is Professional, I won't have the application builder, I'll have to wait until Monday to check on this.
03-08-2014 02:05 PM
Yes, creating an executable is turning the VI into .exe (on Windows)/stand-alone application.
If you are in an academic environment, you may have the application builder or may be able to get it at a discount. Contanct your NI representative for more information.
Lynn
03-10-2014 12:07 PM
Thanks for all the help, I do indeed have professional version, and I've managed to create an application!
03-11-2014
09:32 AM
- last edited on
08-13-2024
06:22 PM
by
Content Cleaner
Hi gBlaskov,
Glad to hear you were able to successfully create an executable. Since you are getting started with the Application Builder, I wanted to provide you with our Distributing Applications with the LabVIEW Application Builder white paper. This is a very comprehensive resource that may help with your future endeavors. I hope it helps.