©Sealevel Systems, Inc.
HazPAC R9-8.4 Manual
28
SL9257 8/2015
Now that the Talos Framework has been referenced, you have access to all the I/O points exposed
on the HazPAC R9-8.4 device.
For this simple HelloWorld application, we will just echo the string “Hello World” in the console
window. This can be accomplished by adding the following code to the automatically created
Program::Main() method. This code will echo “Hello World” and then pause for 5 seconds.
static
void
Main(
string
[] args)
{
Console
.WriteLine(
"Hello World"
);
System.Threading.
Thread
.Sleep(5000);
}
From Visual Studio’s menu bar, select “Build
à
Build HelloWorld”. After the build process has
completed select from the same menu bar, “Build
à
Deploy HelloWorld”. A “Deploy HelloWorld”
dialog will appear for you to choose the appropriate target. Choose “Windows CE Device” then press
the ‘Deploy’ button. (See Figure 14.)
Figure 14.
Choose Windows CE Device and Deploy
After the deployment phase, select “Debug->Start Without Debugging” from the Visual Studio menu
bar. A console will appear to display the “Hello World” message. After 5 seconds, the window will
automatically close.
Examples can be found from the installation directory under ‘..\R9 Development\Samples\C#’ and
‘..\R9 Development\Samples\VB.NET’.