NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Logic
Posts: 94
0 Kudos

How to stop NI OPC Server from running always?

I was using NI OPC Server to test an application. then I choosed "Exit and Shutdown" in the NI OPC Server. It exits. But after few minutes, it is again showing up in the Task bar. How to stop that from running again and again?
 
Thanks,
logic
Active Participant
Ryan.S
Posts: 1,660

Re: How to stop NI OPC Server from running always?

If something is connecting the NI OPC Server, it will start to run. I guess that a shared variable in the variable engine is connecting the opc server. You deployed it before but have not undeployed it. You can undeploy the variable in variable manager.
Ryan Shi
National Instruments
Active Participant
pallen
Posts: 647
0 Kudos

Re: How to stop NI OPC Server from running always?

Thanks Ryan.  This was driving me nuts!   :smileytongue:
---------------------

Patrick Allen
Member
Ross81
Posts: 5
0 Kudos

Re: How to stop NI OPC Server from running always?

Hi 

 

I am having a similar issue. Is there a way of stopping the NI OPC Server or the shared variable engine automatically when I close my exe. Any ideas would be great!!!!

Active Participant
Ryan.S
Posts: 1,660
0 Kudos

Re: How to stop NI OPC Server from running always?

[ Edited ]

What's your LabVIEW and NI OPC Server version?

 

You need to manually close the NI OPC Server. If it starts again after you close it, it means something like Lookout or shared variable engine is connecting to it.

Ryan Shi
National Instruments
Member
Ross81
Posts: 5
0 Kudos

Re: How to stop NI OPC Server from running always?

 

Hi Ryan,

 

 

Im using ni Labview 2010 and evaluation of NI OPC Server  v 4.500.462.0.u (license on the way). I am connecting to Festo EZOPC. 

 

New users will be logging on to this PC and running the application quite a lot so it would be great if they didn't need to learn how to manually "Stop Process" in the Distribution System Manager.

 

Is there an activeX control, CMD commands or  labview "thing" I don't know about that could stop this process automatically when they close the application????

 

Cheers

Ross

 

Active Participant
Ryan.S
Posts: 1,660
0 Kudos

Re: How to stop NI OPC Server from running always?

Do you want to automatically stop the NI OPC Server or the process in shared variable engine?

 

Do you have DSC module? If you want to stop the process in shared variable engine, I think you can use the Deploy Library.vi/Undeploy Library.vi. It means you programmatically deploy the library at the beginning of your process, and undeploy it at the end.

 

But I don't know a good way in LabVIEW to programmatically stop the NI OPC Server. But if you undeploy the LabVIEW library, to keep the NI OPC Server running actually doesn't matter.

 

You can also post this question in LabVIEW forum. They may have more experience with LabVIEW.

Ryan Shi
National Instruments
Member
Ross81
Posts: 5
0 Kudos

Re: How to stop NI OPC Server from running always?

Hi Ryan Yes the deploy/undeploy function in dsc worked. The answer was under my nose. Thanks a million for your help Cheers Ross
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page