I am a beginner in Gadgeteer and NETMF programming. I have done a sample project (HelloLED) and try to execute but getting “System.NotSupportedException” error.
I have selected “Emulator” as Transport and “Microsoft Emulator” as Device. After searching the trouble shooting guide, I could found following:
Programs using GHI Hardware libraries and .NET Gadgeteer programs will not run on the NETMF emulator.
The most common error in these cases is:
“System.NotSupportedException”
Does this mean that I have to buy the hardware’s to run my application? Or is there any way i can test my application till I buy the hadware.
@ Ajith - The only way to use our library extensions (GHI.Networking, GHI.Hardware, and the others) is to buy the hardware. The emulator only functions with the core NETMF assemblies.
@ Ajith - you can use the emulator to do lots of things but it soon gets limiting as you have to code the emulator to simulate the your hardware.
Easiest way to do a test with the emulator is to use debug.print to write text back to the VS console. Or you can write text or graphics to the emulated LCD.
Thanks for your reply. If I want to run on debug mode, I am not sure what Transport and Device to be selected. I tried following code with Trasport as Emulator. However, I am unable to get to ProgramStarted as start of the project an Emulator will days followed by an exception.
Public Sub ProgramStarted()
Debug.Print("Program Started")
While (True)
While (button.Pressed())
Debug.Print("LED Onnnnnnnnnnnnnnnnnnnn....")
button.TurnLedOn()
Thread.Sleep(100)
End While
button.TurnLedOff()
Debug.Print("LED Offfffffffffff....")
Thread.Sleep(200)
End While
End Sub