Problem with Analog Input
Started by G Giles, Sep 23 2010 02:28 PM
3 replies to this topic
#1
Posted 23 September 2010 - 02:28 PM
Hi,
I am trying to use the code for Seven Segment display using the analog input. The port seems to set up fine and the 'SetRange' seems to execute.
When the 'var value = analogPort.Read();' statement executes, the program stops and requests the user find the file 'ANALOGINPUT.CS'
Why would this be happening?
Thanks,
Greg
analogPort = new AnalogInput(Analog_Pin);
// Set value range to display in 2 digits
analogPort.SetRange(0, 99);
}
public void Run()
{
while (true)
{
// Read analog value
var value = analogPort.Read();
#2
Posted 23 September 2010 - 02:44 PM
Hi Greg,
Are you single-stepping through your code? If so, press F10 (step over) instead of F11 (step into)...
If you're not single-stepping through your code, perhaps your Visual Studio installation is configured to step into DLL source?
You can also grab the AnalogInput.cs source files out of the Netduino SDK source on the downloads page...if you're just wanting to make your computer happy
Chris
#3
Posted 23 September 2010 - 03:34 PM
Hi Greg,
Are you single-stepping through your code? If so, press F10 (step over) instead of F11 (step into)...
If you're not single-stepping through your code, perhaps your Visual Studio installation is configured to step into DLL source?
You can also grab the AnalogInput.cs source files out of the Netduino SDK source on the downloads page...if you're just wanting to make your computer happy
Chris
Thanks Chris, I'll give that a try tonight. Greg
#4
Posted 23 September 2010 - 10:10 PM
Hi Chris, Worked like a charm , Thanks, Greg
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users