LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I write to an OPC Server?

Hello!
 
I was busy a few days with LabVIEW 8 to finish a special task, but now I've got problems to solve the following problem:
 
I have an OPC connection between a frequency converter and LabVIEW 8. With the example vi's I get the data out of the OPC Server (revolutions per minute).
So I can read data out of the OPC Server, but how can I write? I want to write several voltage values to the OPC Server that the frequency converter gets the required revolutions per minute.
 
Have you got any ideas? Are there existing example vi's to write data to an OPC Server?
 
Best regards and Thanks in advance!
0 Kudos
Message 1 of 7
(3,416 Views)

Hi

Basically said - if you can read, you can write - just do it the other way ;).

I made some programmes which communicate with a Siemens OPC-Server using Datasockets. I used these VIs to read and also to write. You just have to know wher to write and how the data has to look like.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 7
(3,408 Views)
Hello.
 
Thanks for your fast answer.
I had the same idea, but i can't implement the "read example" to a solution, where i can write to an OPC Server.
If you have any examples, how you write to an OPC-Server, it would be nice if you can published it.
 
Best regards und Thanks in advance! 
0 Kudos
Message 3 of 7
(3,393 Views)
No problem - I'll post you some code as soon as possible.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 7
(3,385 Views)

So here it is - a little bit modified, but you should get the idea out of it.

If you have questions, I'll try to answer them ;).

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 5 of 7
(3,381 Views)

Hi There,

I am having the same problem, but I cannot open this VI becuase I have an older version.  If possible could you please re-post the file saved as a LabVIEW 7.1 or earlier.  I would really appreciate this. 

Thanks in advance.

Mike

0 Kudos
Message 6 of 7
(3,291 Views)

No Problem

Here you are - I hope it runs, as I got some message that some vis from vi.lib could not be saved for LV7.1

 

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 7 of 7
(3,287 Views)