Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Problem with Analog Input


  • Please log in to reply
3 replies to this topic

#1 G Giles

G Giles

    New Member

  • Members
  • Pip
  • 6 posts

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 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

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 G Giles

G Giles

    New Member

  • Members
  • Pip
  • 6 posts

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 G Giles

G Giles

    New Member

  • Members
  • Pip
  • 6 posts

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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.