LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write String in OPC server

Hello im using Labview 8 an I'm a newbie with that Program


I want to write a String or a date in a OPC Server


Is that possible with Labview, if yes could you tell me how it will work



Regards


Densel
0 Kudos
Message 1 of 4
(2,752 Views)

hi there

sure, that's possible!

use the functions from the "DataSocket" palette. Use the "DataSocket Open" function to open a connection once at start of the app, then the "DataSocket Write" function whenever you want to write data and the "DataSocket Close" function at the end of your app to close the connection. right click "Help" on the functions to learn more or search the examples for "DataSocket".

Hint: there's a llb "dataskt.llb" in the vi.lib. the VIs in this llb are not recommended for future use. use the DataSocket functions instead.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 4
(2,746 Views)
I tried with the Socket connection but i always get the same error
Message "Access mode not supported for operation"


Any suggestions

Message Edited by Densel on 08-18-2006 09:09 AM

0 Kudos
Message 3 of 4
(2,741 Views)
your code is correct. it should work. check the opc server security settings of the item you want to write to. opc items can be set to "read only". there should be some kind of configuration application shipped with your opc server.
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 4
(2,734 Views)