LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I deploy an OPC server on a Run Time system?

I want to read tags from a AB PLC.  I have created my collection process and now I want to depoy it to a run time system.  I have LabVIEW, DSC and NI-OPC on my development system.  I have LabVIEW RTE, DSC RTM, and NI-OPC on the deployed system.

 

I created my application to deploy. I copied the NI-OPC definition file and it works there.  I ran the application and nothing happens.  I opened the distributed system manager and there isn't any server listed.

 

How do I deploy my library of shared variables on the deployed system?

 

I can add a process and go one tag at a time and add them in but this doesn't seam the best way.

 

What am I missing?

 

Thank you,

 

Ben

0 Kudos
Message 1 of 6
(4,852 Views)
0 Kudos
Message 2 of 6
(4,836 Views)

Let me add more information on this.

 

** Development system **

I have made an IO Server and created a library with all of the tags that I want to read.  I have deployed the library and it works fine.   I can look in the Distributed System Manager and see all the tags clicking along like crazy.  I build my application ensuring to select the "Deploy shared variable libraries..." so that it will deploy them on the deployed system.

 

** Deployed system **

I have the same NI-OPC set up so I can see the variables on this system.  I run the application, and open Distributed System Manager and I can see the tags inside the OPC1 server but the tags under my library name are not connected and do not display information.  My application doesn't see the information either.

 

I have found that by right clicking the tag under my library I can edit the tag and point it to the OPC1 tag but this is long and I have to do it for every one.

 

I went back to the development system and used the project to deploy and get good data.  Then I launch the executable application and it deployes the complied library and erases the good tags.

 

I think it is something in the application build, but I can not find it.

 

Thank you,

 

Ben

0 Kudos
Message 3 of 6
(4,809 Views)

Ben 7128,

 

Have you tried deploying the shared variables manually via an Invoke node in your code? It would be interesting to see if your application worked correctly when deploying by that method instead of the build specifications method.

 

How Do I Deploy Network Shared Variables from a Compiled Executable?

 

Also, you may want to take a look at the following two documents as they may provide some other tips or insights into what may be going on.

 

Developing Portable Shared Variable Applications

Using Shared Variables in Executables

 

 

 

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 Kudos
Message 4 of 6
(4,787 Views)

Ben_7128 已写:

Let me add more information on this.

 

** Development system **

I have made an IO Server and created a library with all of the tags that I want to read.  I have deployed the library and it works fine.   I can look in the Distributed System Manager and see all the tags clicking along like crazy.  I build my application ensuring to select the "Deploy shared variable libraries..." so that it will deploy them on the deployed system.

 

** Deployed system **

I have the same NI-OPC set up so I can see the variables on this system.  I run the application, and open Distributed System Manager and I can see the tags inside the OPC1 server but the tags under my library name are not connected and do not display information.  My application doesn't see the information either.

 

I have found that by right clicking the tag under my library I can edit the tag and point it to the OPC1 tag but this is long and I have to do it for every one.

 

I went back to the development system and used the project to deploy and get good data.  Then I launch the executable application and it deployes the complied library and erases the good tags.

 

I think it is something in the application build, but I can not find it.

 

Thank you,

 

Ben


I think you need to buy DSC Run-Time System.

0 Kudos
Message 5 of 6
(3,379 Views)

Just FYI, you revived a 7 years old post, and the OP was visited the forum in 2014 last time...

0 Kudos
Message 6 of 6
(3,375 Views)