Using system.opc.writeValues

How do I format the following individual OPC writes using: system.opc.writeValues.

system.opc.writeValue(“IgnitionOPCUA”, “[CHEMIDYN]S2:40”, hourupdate)
system.opc.writeValue(“IgnitionOPCUA”, “[CHEMIDYN]S2:41”, minuteupdate)
system.opc.writeValue(“IgnitionOPCUA”, “[CHEMIDYN]S2:42”, secondupdate)

The user manual tells you what parameters the call expects.

It might look something like this:

system.opc.writeValues(
	"IgnitionOPCUA", 
	["[CHEMIDYN]S2:40", "[CHEMIDYN]S2:41", "[CHEMIDYN]S2:42"], 
	[hourupdate, minuteupdate, secondupdate]
)

[quote=“Kevin.Herron”]The user manual tells you what parameters the call expects.

It might look something like this:

system.opc.writeValues( "IgnitionOPCUA", ["[CHEMIDYN]S2:40", "[CHEMIDYN]S2:41", "[CHEMIDYN]S2:42"], [hourupdate, minuteupdate, secondupdate] ) [/quote]

Funny, I was just working with this today…

I’m thinking that a python manual is the second most useful document to have on your computer, right after the user manual…

Be careful that you have a manual for the right version of Python. Ignition currently uses a rather ancient Python 2.1…

exactly what I was hoping to find out…

This link to Python 2.1 documentation may be useful.

FYI, updating to 2.5 (or the most recent production version of Jython) is on the development roadmap without a current estimated release date.

Teaser?

The current version is: 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) [Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)]