Giter Club home page Giter Club logo

thorlabspm100's People

Contributors

clade avatar gabrielbenedikt avatar peterstrassmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

thorlabspm100's Issues

Corrupt links

The cross-reference links (inside doc to example.rst and ThorlabsPM100.rst) in the doc/index.rst file are broken. I don't know how to fix it.

Can't get value from powermeter

Bonjour Pierre,
I'm trying to get power values from a PM100.
here is the very simple code to test i'm using:

from future import print_function

from time import sleep
from numpy import array
import visa

from ThorlabsPM100 import ThorlabsPM100
import ctypes

rm = visa.ResourceManager()
inst = rm.open_resource('USB0::0x1313::0x8072::P2004152::INSTR',timeout=1)

power_meter = ThorlabsPM100(inst=inst)
power_meter = ThorlabsPM100(inst = inst)

power_meter.system.beeper.immediate()
power_meter.read()

returns : <ThorlabsPM100.ThorlabsPM100.read object at 0x02190FD0>
Seems like the value is stored at the address : 0x02190FD0 but i can't get to read the value stored at this address.
Seems like i'm not using your script properly.
Do you have any idea ?
Thanks for your help.

Pierre, from Bordeaux

Compatibility

Is this library compatible to work with the PM100USB? And I feel like I have seen comments that this is for python 2, not python 3. Is this correct? How might I get this to work with python 3 and a PM100USB?

Wavelength change seems not to change power

When I use powermeter.sense.correction.wavelength = 1550 or 800 the obtained optical power from powermeter.read does not change while it does change on the powermeter software from thorlabs. Is this a bug? powermeter.sense.correction.max_wavelength works fine for example.

Create new release

After #8 was merged, no release was made. It would be helpful to have that code released.

Thanks!

Obtain Power from PM100 in Watts

Hi Pierre,

When I read values from the PM100 in Python, it gives the value in units of volts. How do I get it to read in units of watts?

Only works on Linux?

Only works on Linux?
How can I get the connect string? USB0::0x0000::0x0000::xxxxxxxxx::INSTR

Switch console to local mode

Hello,

Is there a way to switch the PM100A/D console to a local mode (i.e., opposite to remote) after measurements are done? In Thorlabs' C++ API, there is a function PM100D_close() that does exactly this, but I could not find how to do the same using this Python package.

I tried releasing the ResourceManager like this:

rm = visa.ResourceManager()
inst = rm.open_resource('USB0::0x1313::0x8079::xxxxxxxx::INSTR')
power_meter = ThorlabsPM100(inst=inst)

#
# Measurements
#

rm.close()

But it does not bring the console to local mode. The only way so far is to turn it off and on again.

Connection timed out (PM100A)

I have a PM100A Thorlabs device connected to a raspberry pi via usb. I can see that the device is connected to /dev/usbtmc0. I am getting the below result when trying to do anything with this library. Any idea what I am doing wrong?

image

Ask is deprecated in pyvisa

When using the module I get the following warning from pyvisa's resources/messagebased.py file:

FutureWarning: ask is deprecated and will be removed in 1.10, use query instead.
  '1.10, use query instead.', FutureWarning)

It would be nice if this module could be adapted accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.