1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Reading currents and controlling voltages in c++

  1. Jan 25, 2009 #1
    Hi all -- I'm writing a controller for an interferometer and I need to be able to control the voltage across a terminal and read the current from a photodiode in c++. What would be a good, reasonably priced peripheral that would accomplish this, preferably with linux support?

    Better yet, is it possible to perform this using the 1/8'' speaker output with any real precision?

    Thanks,
    Dave
     
  2. jcsd
  3. Jan 25, 2009 #2
    As a note: I'm very new to writing interfaces between programs and peripherals. If I'm going about this the wrong way, let me know. Please, no suggestions to using LabVIEW though :)
     
  4. Jan 25, 2009 #3

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    The microphone input is generally 8bits and pretty fast 20-40khz, you are probably going to need to build more electronics to interface to it - but it will be cheaper than using custom hardware http://www.techlib.com/Karen/misc.htm#Mic Input Telemetry

    In the Uk these people are great http://www.picotech.com/, otherwiseyou cna probably find similair stuff locally. Look for devices aimed at education (http://www.heathkit.com/) or hobbies rather than the industrial control ones.
     
  5. Jan 26, 2009 #4
    Cool. Is there a set of linux libraries that will let me control/record the mic signal in c++ that anyone can recommend?

    Dave
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Reading currents and controlling voltages in c++
  1. C read, open (Replies: 22)

  2. C++ csv file reading (Replies: 2)

  3. [C#] FFT in read world (Replies: 33)

Loading...