LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically Deploy Library of Variables binded to Custom IO Server?

Hello,

I'm developing an application where I've created a Custom Periodic IO Server  doing  special custom scaling of values read from  CompactFieldPoint module.  Then I've created a Library of Network-Published variables, where each variable is binded to a different item on Custom Server.

Now I want to do a programmatic deployment of server and variable library at the start-up of application,because I need the customer to get a list of all variables from variable library to select which one he will be using in a measurement. The idea is to set various properties of selected variables, like enable logging, set alarm values etc. I can get a list of variables only from deployed libraries.

The problem is that I can not deploy a library of binded variables neither with Deploy Library.vi or Library:Deploy method. I receive an error code 1, Invoke Node in PRC_Deploy.vi->Deploy Library.vi<APPEND>

If I manually deploy the same library from Project Explorer, everything works as expected and no error is thrown. I'm using DSC 8.0.1 on XP Prof

Can you give me some tips or advise how to achieve this. Is this approach OK or do you have better idea?

Thank you,

Roman
0 Kudos
Message 1 of 4
(3,889 Views)
Hello,

I found the answer to my own question. Solution is very simple. When you create a data binding on a shared variable, you need to browse for item in Network Items and not on Project Items, doesn't matter if item is actually inside the same project.

This solve my problem and I can now successfuly deploy library using Deploy Library.vi

So far, my problems are solved, until the next one, of course 🙂

Good luck,

Roman
0 Kudos
Message 2 of 4
(3,882 Views)

Hi,

I had a simular problem with the Deploy Library.vi. I was binding shared variables up to an OPC-server. I got error messages all the time when I tried to deploy the library with the variables programmatically, but it worked fine manually. It turned out that the OPC-server has to be in the same library as the variables in order to deploy them using Deploy Library.vi. 

Hope it helps someone some day. Smiley Wink

Erik

0 Kudos
Message 3 of 4
(3,463 Views)

Hi. 

 

I know it's been a while but I'm having the same problems with LabVIEW and DSC 2009 run-time engines.

I programatically deploy my library and the IO Server is missing, and I cannot create it with the DSM either...

 

Am I missing something? 

 

  

0 Kudos
Message 4 of 4
(2,930 Views)