Data sources

Reading an array (OPC UA)

In order to be able to use individual elements of an array by an OPC UA server, the array must first be created as a subscription (1).

Via Edit a script can be created which is always executed together with the subscription (2).

The script uses a for-loop to iterate over the single elements of the array. In the screenshot, the individual elements are then output in the log of the Peakboard Box (3). In order to use these elements for calculations, KPIs or graphics, it is recommended to store them in a variable list.

img01

for index = 0, message.itemValue.length - 1 do
	peakboard.log(message.itemValue[index])
end

We are learning from you!

Did you find this article helpful?

Be enlightened!

Do you need more support?

Peakboard Youtube icon Visit our YouTube channel

Our numerous videos for beginners and advanced users explain exactly how to design your dashboard.

Peakboard Templates icon Visit the Peakboard Templates

Download our templates for various use cases for free.

Peakboard icon Visit www.peakboard.com

Find out all about Peakboard and browse our different use cases and success stories.