Visual C# Tutorial 1 A Single RFID Reader in Visual C#

Visual C# Tutorial 1 A Single RFID Reader in Visual C#This tutorial provides a starting point for learning how to use the Phidget RFID Reader and develop a feel for the way all Phidgets work. This tutorial is targeted towards those who are new to C# Programming and creating Graphical User Interfaces. However, this tutorial assumes the reader possesses an understanding of basic programming concepts. Knowledge of object oriented programming is also assumed.


GUI Layout
A program with a GUI is composed of one or more “forms”. The forms contain all of the elements necessary to interact with the computer in a graphical environment. The form for this program is the grey box on the screen. Most programs that you will be writing for Phidgets, at least to begin with, will only use one form. Applications that make use of more than one are often substantially more complicated to program. The screen you see now is called the “Form Designer”. It is useful to first set up your workspace. If the “Toolbox” panel is not already visible, open the “View” menu ( 1 ) and select “Toolbox”. To ensure the Toolbox panel does not cover the form you are going to be working on, toggle the “pin” button ( 2 ). The various elements of the GUI, known as controls, can be placed in whatever order you wish and in any location you wish within the form. For this example, we will first place the “Labels”( 3 ) which will be used to display information. Under the “All Windows Forms” rollout, select Label. Click somewhere in the middle and upper region of the form. Repeat this action to create three labels. ‘label1′ will be used to display the tag code whenever an RFID tag is brought into the scanning distance of the antenna. ‘label2′ will be used to represent the connection status of the RFID reader, and ‘label3′ will be used to display the serial number of the connected Phidget. Note the names of your labels and the order they appear on the form, they should follow the order shown here.

Website: www.phidgets.com | Filesize: 422kb
No of Page(s): 11
Click here to download Visual C# Tutorial 1 A Single RFID Reader in Visual C#.

Related Tutorial

Tags: , ,

Comments

Leave a Reply