02-18-2016 04:49 PM
How do I make my VI into a black box application. All I want the user to have access to is the inputs and outputs.
I looked at making it a subvi and I do not believe this is exactly what I want. Also, I looked at building an instrument driver and it seems overly complicated.
02-18-2016 05:06 PM
02-18-2016 05:13 PM
I thought they were different questions. I guess the best way would be to use the application builder?
02-18-2016 07:56 PM - edited 02-18-2016 07:58 PM
I think forum was answer you before about it
I send you two method to hide code also you can create password for your subvi and then hide with method i mentioned
beside this
altenbach old you them method to prevent user to access the code(make .exe file , create .dll file , and remove the diagram )
so if your question is how to make for example .exe file or dll or remove the diagram it is easy just search inside labview help
otherwise your question is duplicate !!
02-18-2016 11:03 PM
I want to have my users download my thing (not sure what it would be yet). For them it would appear just as a subvi would. It would let them write to the inputs and look at the outputs, but will not be able to see any implementation. I understand this is what a subvi does (and I can make the block diagram unaccessable), but would a user just be able to download the subvi and use it in their vi?
Also, the problem I have with a subvi, is that an output in the subvi will only appear if there is an indicator for the function's output in the subvi. Is there a way around this? All of this makes me believe that a subvi is not what I should create.
02-18-2016 11:28 PM
@User002 wrote:I want to have my users download my thing (not sure what it would be yet). For them it would appear just as a subvi would. It would let them write to the inputs and look at the outputs, but will not be able to see any implementation. I understand this is what a subvi does (and I can make the block diagram unaccessable), but would a user just be able to download the subvi and use it in their vi?
Yes a user can download the subVI and use it. But if it is password protected, the version they download will have to match their version of LabVIEW. So you may need to post multiple versions of the VI.
@User002 wrote:Also, the problem I have with a subvi, is that an output in the subvi will only appear if there is an indicator for the function's output in the subvi. Is there a way around this? All of this makes me believe that a subvi is not what I should create.
Your question doesn't make any sense. Why would you have a problem with an indicator on a subVI that you aren't even giving the user access to the block diagram. How else are you going to your your output OUT of the VI. You need an indicator so you can connect it to the connector panel.
Yes you should use a subVI.
It also sounds like you should take some LabVIEW tutorials.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
02-18-2016 11:47 PM
Okay, and is it correct that all my controls inside loops will need to have a reference?
02-19-2016 12:01 AM
02-19-2016 12:47 AM
You are a huge **bleep**. I am not sure if you have been told that before, but you are supposed to be helpful and you come off as condescending. As someone who posts so frequenctly on this forum, I expect a lot more from you.
I would need a reference because there are controls for loops in my vi that the user will need to be able to have control over. Otherwise it will sit in the loop forever in my vi because it will never get that the user changed it in the main vi.
02-19-2016 12:51 AM
ok it is my last answer
it this code in this code
you can use code but could not find what happen inside it
also thers a loop inside the subvi
so it is what you want
passwords is 123