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
masoudk1368
Posts: 17
0 Kudos

Read and Write with OPC through NI Vision

Hi

 

   How can I Write and read directly from NI Vision to Plc?

 

in other words, how can connect to another device through OPC by NI Vision?

 

Many thanks for your reply.

Best Wishes,

Trusted Enthusiast
Christian Mergl
Posts: 2,604

Re: Read and Write with OPC through NI Vision

Do you mean an LabVIEW application (with Vision Development Module) or with VBAI?

 

 

Christian

Active Participant
ChristopheC
Posts: 440

Re: Read and Write with OPC through NI Vision

We have several application notes that explain how to do that:

 

Using Vision Builder AI as an OPC Server: http://www.ni.com/white-paper/13574/en

https://decibel.ni.com/content/docs/DOC-18647

 

For implementation in LabVIEW, just search for OPC on ni.com. There are a lot of documents explaining how to implement this communication protocol.

If you give us more details (who you want to be the server or client), we can provide better guidance.

 

Hope this helps.

 

Christophe

Member
masoudk1368
Posts: 17
0 Kudos

Re: Read and Write with OPC through NI Vision

[ Edited ]

Hello

 

i need to use Vision Builder AI as opc client,because i want to  connect to One opc server for the other machine and i need to write and read the register from opc server.

best regards

Active Participant
ChristopheC
Posts: 440

Re: Read and Write with OPC through NI Vision

To allow VBAI to connect to an OPC Server (i.e. act as an OPC client), you need to purchase and install the DSC Run-time System.

Once installed, you can create an OPC I/O client using the Distributed System Manager, create variables bound to OPC tags, then create VBAI network variables that are bound to these variables.


Another possible technical solution to connect to OPC Servers supporting Data Access 2.0 is to use the datasocket API in a Run LabVIEW step.

 

-Christophe

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