Hello
I have been working with maps for a year now. This is goning well.
But now I’m working on VB.NET scripting. I’m running into some problems.
It’s about writing a value to an agent.
Below is my code.
'Initializes Event Handlers and Control Name Bindings
Private Sub button_Click(sender as System.Object, e as System.EventArgs) Handles button.Click
Dim dec As DataElementCollection = VIZNET.Shared.DataElements.Engine.DataElementEngine.NewDataElementCollection()
Dim agent1 As DataElement = VIZNET.Shared.DataElements.Engine.DataElementEngine.NewDataElement("Adroit.Analog.TST_PLC_NUMBER.value")
agent1.value = 5
MessageBox.Show("Successfully executed script")
End Sub`Preformatted text`
The value does not change in the plc.
The messageBox works fine.
What am I doing wrong.
Can you help me.
Greetings,
A.J.