Anda di halaman 1dari 3

Connecting LabVIEW to an OPC Server through a D...

http://zone.ni.com/devzone/cda/tut/p/id/3978

Hola luis anaya (Usuario equivocado.)

Tipo de Documento : Tutorial Soportado por NI : S Fecha de Publicacin : 06-sep-2006

Connecting LabVIEW to an OPC Server through a DataSocket Connection


Y ou can use LabVIEW as an OPC client by connecting to an OPC serv er through a DataSocket connection. This document shows how to use an example VI that connects to the Lookout Protocol Driv ers serv er to read a register v alue f rom a Modbus dev ice. Y ou can use this procedure to connect VIs to dev ices on any OPC serv er, such as FieldPoint, NI-DAQ, RSLinx, or Applicom. Make sure y ou hav e LabVIEW 6.0 or later and Lookout Protocol Driv ers 4.5 or later installed on y our computer bef ore completing this procedure. Complete the f ollowing steps to read a PLC register v alue f rom a Modbus dev ice on the Lookout Protocol Driv ers OPC serv er to a VI using a DataSocket connection. 1. Open the opc.llb in labview\examples\comm. 2. Open the Multiple OPC Items Monitor VI. This VI uses DataSocket to connect to an OPC serv er. Y ou can press the <Ctrl-E> key s to display the block diagram and examine how it works. 3. On the f ront panel, toggle the horizontal switch to Select Items and set Number of items to select to 1, so y ou can select a single register v alue.

[+] Ampliar Imagen 4. Run the VI. The Select Item 1 dialog box appears and display s all the OPC serv ers av ailable to y our sy stem. Nav igate to National Instruments.OPCLookoutDriversLookout Protocol DriversModbus1 and select register 40001-49999. Click the OK button.

1 de 3

15/07/08 00:40

Connecting LabVIEW to an OPC Server through a D...

http://zone.ni.com/devzone/cda/tut/p/id/3978

5. If y our connection is successf ul, the wav ef orm chart display s the B:0 register v alue.

[+] Ampliar Imagen

Comentarios del Lector | Enviar un comentario

Legal Este tutorial (este "tutorial") f ue desarrollado por National Instruments ( NI ). Aunque el soporte tcnico para este tutorial sea proporcionado por National instruments, el contenido de este tutorial puede no estar completamente v erif icado y probado y NI no garantiza su calidad, ni que NI continuar proporcionando soporte a este contenido en cada nuev a rev isin de productos y controladores relacionados. ESTE TUTORIAL ES PROPORCIONADO "COMO ES" SIN GARANTA DE NINGUN TIPO Y SUJETO A CIERTAS RESTRICCIONES QUE SE EXPONEN EN LOS TRMINOS DE USO EN NI.COM (http://ni.com/legal/termsof use/unitedstates/us/).

M i Perfil | RSS | Privacidad | Aviso Leg al | Comun q uese con NI 2008 National Instruments Corporation. All rig hts reserved.

Enviar esta pg ina

2 de 3

15/07/08 00:40

Connecting LabVIEW to an OPC Server through a D...

http://zone.ni.com/devzone/cda/tut/p/id/3978

3 de 3

15/07/08 00:40

Anda mungkin juga menyukai