LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write values in OPC via DSC

Hi!

 

I configured one OPC server in my computer to read and write values with siemens PLC.

 

Then I inserted variables on the proyect and I can read them perfectly. The problem appears when I want to write values. If I connect a boolean swicth directly to the variable and I start the application appears one error (FALLO1).jpg.

 

If I connect the swicth to the variable and execute it ONE TIME it works perfectly. It appears like I cannot connect directly the switch.It happens the same with analog values.

 

I need something in Labview to send data ONLY when the switch or variable change, like the VARIABLE MANAGER software. There If I change the value it works perfectly...

 

I hope I have explained...

 

Thanks a lot.

 

Bye.

 

0 Kudos
Message 1 of 2
(2,480 Views)

Hi Allende,

 

Maybe you are having a timing problem. If you check this thread...

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=267124&requireLogin=False

 

it is written that sometimes this problem is solved just using Wait functions.

 

Regards,

0 Kudos
Message 2 of 2
(2,456 Views)