LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel Binding Mass Configuration

Hi,

 

I use LabVIEW 8.2.1 DSC RT.

 

I need to change the path of over 1000 variables,

I need to create a network copy, so all I need to change is the start of the path of the Shared Variables.

 

For example I need to change -

'My Computer/Vacuum/status001' to '192.168.24.643/Vacuum/status001'

 for every variable.

 

If I change one of the Shared Variables path manually via the Block Diagram,

(right click on the variable and Properties>>Binding Data) its working fine. (to do it 1000 times is not good)

But if I change the path via the 'Front Panel Binding Mass Configuration'

it insists to keep the opening of the path as 'My Computer' ??? (see picture attached)

 

Whether I use the Export&Import option or change it manually in the 'Front Panel Binding Mass Configuration'

 the path is changed visually and everything looks good, but when press the 'Apply' button the path returns to the one before.

 

What am I doing wrong?  I can't find any documentation for this problem,

so I guess it is something wrong with the way I do it.

 

 

Amitai

0 Kudos
Message 1 of 11
(5,134 Views)

Hi Amitai,

 

Are you trying to change the path of the shared variables or the path to which you are binding your front panel objects? Or both?

 

In the Front Panel Binding Mass Configuration you'll only be looking at binding paths for front panel objects. You'll need to change your variables' binding paths from your project.

 

I totally agree that 1000 variables is a daunting number. If you need to change variables' binding paths, I would recommend using the Multiple Variable Editor. To get to the Multiple Variable Editor, right-click the Library of interest in your LabVIEW project and select it from the shortcut menu. Then, you can use Find option from the toolbar (or hit ctrl+F) to Find and Replace text within the variable editor.

 

Please let me know if this is the information you're looking for.

 

Thanks,

Dan Richards
Certified LabVIEW Developer
0 Kudos
Message 2 of 11
(5,070 Views)

Hi Dan_R,

 

Thank you for your reply,

 

I have managed to solve the problem by creating a simple vi that uses VI Server to open the

desired Vi and uses both property and method of 'data binging' to change the front panel binding of all the variable as I set it.

I will post this Vi here, next week.

 

I have another similar question (different Vi) -

This time I also want to change programmatically one of the properties of 560 front panel conrols.

 while in the previous problem the 'data binding' property and method exist,

This time I want to remove all the users from the security property of every conrol,

But there is no property node or invoke node of security.

I can do it manually - right click the control >> security , and remove users.

but I don't want to do it 560 times so I want to do it programatically.

 

do you know a way to do it ?

 

Sincerely Yours, 

 

Amitai Abramson.

0 Kudos
Message 3 of 11
(4,977 Views)

Hi Amitai,

 

This sounds like the right opportunity to create a new post. Would you mind copying your question into a new post so as not to fill up this post with multiple issues that need solving? It's just good discussion forum practice, helps others search for their own solutions. 🙂

 

That said, as far as I know there's no way to programmatically control security options or edit security properties.

 

Regards,

Dan Richards
Certified LabVIEW Developer
0 Kudos
Message 4 of 11
(4,963 Views)

Hi Amitai,

 

    I also have similar probelm that you are facing to create the path for 800 tags.According to your previous reply you have solve the probelm by using VI server an method.MAy i get the VI that you created to solve the problem.I really need it .If I change manually it will take very long time.

 

I would be appericated if you could post the VI .

 

Thanks in adnavce.

SA

0 Kudos
Message 5 of 11
(4,697 Views)

Hi Amitai,

 

    I also have similar probelm that you are facing to create the path for 800 tags.According to your previous reply you have solve the probelm by using VI server an method.MAy i get the VI that you created to solve the problem.I really need it .If I change manually it will take very long time.

 

I would be appericated if you could post the VI .

 

Thanks in adnavce.

SA

0 Kudos
Message 6 of 11
(4,673 Views)

Hi AHMAD,

 

Right now I am in my exams period,

and that VI is at my computer at the office.......

 

all I can do, is to write you an example and you will need to adjust it to your needs.

 

I haven't posted my earlier VI because I have used it specifically with the architecture that I have in my office,

which is not common, and also I had some variables with spaces between them (e.g. 'variable 1')

and I gave some special treatment for them since they are causing some trouble.

 

I will be more than interested to help you further after my exams, that will be 3 weeks from now....

 

I am adding an example that I did just now - follow the steps I am giving here to understand it easily.

 

(I am not sure you need the project (step2) but do it anyway. I have used it to perform the front panel binding to some valid SV)

 

1. Extract the files to some folder

2. Open the project and deploy the library of SV (try_lib)

    you can now close the project- this was only to allow the programatically binding to be to a valid variables.

3.open the VI 'try.vi' and see - (using the 'front panel binding mass configuration') that the variables path lead to a name that begins with 'path1'.

   now close 'try1.vi'

4. Open 'try2.vi' and RUN it.

5. Repeat step 3, and see that the variables path now lead to a name that begins with 'path2'.

 

remarks -

1. There are (sometimes) problems when the SV name is with space

2. I am using 2 vi's since the VI Server method that changes the path can be working only when the VI is in edit mode (not running).

3. I have created the file 'exported.txt' using the Export option at the ' front panel binding mass configuration'.

4. I have created the file 'exported2.txt' by opening 'exported.txt' in 'EXCEL' and changing it and saving it as 'text (tab delimited) (*.txt)'

5. You can add Mode column at 'exported2.txt' and programatically change it too.

 

I hope this can help you in some way....

 

Amitai Abramson.

Message Edited by Amitai Abramson on 01-28-2010 04:59 AM
0 Kudos
Message 7 of 11
(4,670 Views)

Hi again,

 

Maybe don't close 'try1.vi' when you RUN 'try2.vi'

I think I havent added the VI server 'OPEN FRONT PANEL' of 'try1.vi'

I should have.

 

nevermind now.

 

I hope I have helped you.

 

Amitai Abramson.

 

0 Kudos
Message 8 of 11
(4,666 Views)

Hi AHMAD,

 

OK, now I did the example instruction without the project,

and now the VI 'try2.vi' opens 'try.vi' Front Panel, changes the Binding paths, Saves and Closes.

 

Follow the steps I am giving here to understand it easily.

 

1. Extract the files to some new folder

2. Open the VI 'try.vi' and see - (using the 'front panel binding mass configuration') that the variables path lead to a name that begins with 'path1'.

3. Now close 'try1.vi'

4. Open 'try2.vi' and RUN it. (you may close it afterwards)

5. Repeat step 2, but now, see that the variables path now lead to a name that begins with 'path2'.

 

remarks -

1. There are (sometimes) problems when the variables name is with spaces

2. I am using 2 vi's since the VI Server method that changes the path can be working only when the VI is in edit mode (not running).

3. I have created the file 'exported.txt' using the Export option at the ' front panel binding mass configuration'.

4. I have created the file 'exported2.txt' by opening 'exported.txt' in 'EXCEL' and changing it and saving it as 'text (tab delimited) (*.txt)'

5. You can add Mode column at 'exported2.txt' and programatically change it too.

 

I hope this can help you in some way....

If You did not understand something, ask me.

If You understand, and It helped you, Kodus me (by pressing the yellow Kudos button) so I will know It helped you. 

 

Sincerely Yours,

Amitai Abramson.

Message Edited by Amitai Abramson on 01-28-2010 06:54 AM
Message Edited by Amitai Abramson on 01-28-2010 06:57 AM
0 Kudos
Message 9 of 11
(4,657 Views)

Hi AHMAD,

 

I could not help it,

and made something better.

 

now,

with no supporting files.

and easier to understand.

 

though if you have 800 variables, you might need to consider reading from some supporting file.

unless you have a constant change in the paths,  (so I made a 'replace section'. see 'try2.vi')

 

see the attached zipped folder.

 

Sincerely Yours,

Amitai Abramson.

0 Kudos
Message 10 of 11
(4,640 Views)