91
Support Questions / Re: Modbus 16bit addresses Read and hold value and display value in set time
« Last post by Archie on February 17, 2024, 09:03:47 AM »Only the live value should be a BasicLabel. The other two will be updated via code, so they should only be of type Label.
- From the toolbox, add a Timer to the form
- Set the interval property to the time you want in milliseconds
- Set Enabled to True
- Double click the timer to get back to code
- Add code similar to this:
- From the toolbox, add a Timer to the form
- Set the interval property to the time you want in milliseconds
- Set Enabled to True
- Double click the timer to get back to code
- Add code similar to this:
Code: [Select]
Try
Label1.Text=BasicLabel1.Text
Label2.Text=Label1.Text - BasicLabel1.Text
Catch ex as exception
Label2.Text=ex.message
End Try