12-16-2005 10:46 AM
12-16-2005 11:01 AM
| vb.net delegates in Measurement Studio? |
12-16-2005 01:22 PM
VB:
Dim ReadThread As New Thread(AddressOf ReadCode) Dim ProcessThread As New Thread(AddressOf ProcessCode) ReadTimer.Tick ProcessThread.Start() End Sub ControlTimer.Tick ProcessRead.Start() End Sub
12-19-2005 04:01 PM
12-22-2005 08:19 AM
12-22-2005 09:42 AM
12-22-2005 09:56 AM
This is what I want to do:
[vb]
Dim ReadThread As New Thread(AddressOf ReadCode)
Dim CycleThread As New Thread(AddressOf ProcessCode)
' This is the timer than reads data at 10 Hz
Sub ReadTimer.Tick
ReadThread.Start()
End Sub
' This is the timer that makes control decisions at 1 Hz
Sub ControlTimer.Tick
CycleThread.Start()
End Sub
[/vb]
On the second iteration the thread throws an error. Do I need to kill it at the end of code execution?
12-27-2005 11:04 AM
12-27-2005 01:24 PM
12-27-2005 03:13 PM