10-21-2014 12:31 AM
i want to lock block diagram from editing but front panel can be edited for creating controls, moving controls editing properties...
10-21-2014 01:10 AM
You can try something like this
10-22-2014 11:52 AM
Okay so play along with me. Lets say you did this so you couln't interact with the BD only the FP. So you drop down a graph and...well you can't wire it to anything that would require the BD. So I don't think you know what you are asking for.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-22-2014 12:39 PM - edited 10-22-2014 12:39 PM
I want to lock block diagram from editing but front panel can be edited for creating controls.
Not possible.
Create a NEW VI.
Open the block diagram side by side with the panel.
Place a control on the panel.
By creating a control, you are inherently editing BOTH the front panel and the block diagram.
What is your goal? If you want to avoid accidental editing, close the diagram window.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-25-2014 12:22 AM
i can create frontpanel controls and i will use databinding from properties.....
executables will be delivered to customer and they can create new vi and edit frontpanel and link tag through databinding. but i dont want them to open block diagram...
10-26-2014 11:19 AM
I don't think you understand the difference between an executable and a VI. If you want them to be able to edit anything, they'll need LabVIEW. You'll also only send VIs rather than executables.
You are also setting yourself up for a world of heartache. There is no single way to program EVERY potential change a customer may make. It won't act as you desire and you'll spend more time ad frustration trying to fix things than you would just coding what you want in the first place.
Stop trying to find a way to make things harder on yourself.
10-27-2014 06:49 AM - edited 10-27-2014 06:50 AM
executables will be delivered to customer and they can create new vi and edit frontpanel and link tag through databinding. but i dont want them to open block diagram...
Natasftw is right - you seem confused about the difference.
If the customer can "create a new VI and edit frontpanel" then they have to have LabVIEW Development System.
If you give them an EXE, and they don't have the DevSys, then they can use your VIs, but not edit them or look at the code.
If they have the DevSys, then they can edit your VI and look at the code, UNLESS you protect it.
If you save a VI with protection (VI PROPERTIES - PROTECTION ) then you can LOCK it (user has to explicitly unlock it with an extra step), or you can PASSWORD PROTECT it (user has to explicitly unlock it by giving a password). Either way requires the DevSys.
There is no situtation where one can edit the front panel without being able to edit the block diagram.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-27-2014 06:50 AM
You can manage the mouse dragging, clicking, etc using an Event Structure. You could then even programmatically move the controls. But everything will have to be there. You are talking about actions that require compilation, which requires having LabVIEW and therefore the ability to change the code.
10-27-2014 08:05 AM
@manig wrote:
i want to lock block diagram from editing but front panel can be edited for creating controls, moving controls editing properties...
What is your goal (like other have already asked)? One another way is to use Source Code Control systems configured from within LabVIEW & not giving edit permissions to everyone in the team, so that they can only view the VIs in the locked mode but can't edit them.