Windows Form App Loop needed C#
Posted 24 May 2012 - 10:40 PM
Posted 30 May 2012 - 06:33 AM
I'm pretty new in Labjack U3 also using C# in Visual Studio 2010.
What I basically need is how to implement a basic windows app with a Start/Stop Button where shows the Temperature from AIN0 Temp Sensor in a TextBox window like avary second till I press STOP or close the App.
How this never ending loops are created in windows app or which avents can be used to trigger to rescan all inputs/outpus in a LAbjack to design a basic machie controller ?
To do this the simple way, with a rough precision, you'll probably want to use the System.Windows.Forms.Timer class.
The event raised by the timer (event named Tick in the doc) will be raised in the UI thread, which is good for you if you want to display the information in a WinForm.
Good luck !
Posted 30 May 2012 - 02:49 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users