thorlabspm100's People
Forkers
peterstrassmann victorclaessen asyring omarabde hongbo-miao gregmoille diamond2nv arafune thpham1610thorlabspm100's Issues
Change from `.ask` to `.query` not completed
Renaming ask
to query
has introduced a bug in:
https://github.com/clade/ThorlabsPM100/blob/master/ThorlabsPM100/usbtmc.py
Now getName
and ask_for_value
still try to use the old method, but this results in an exception.
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?
Running example: ValueError: 'term_chars' is not a valid attribute for type USBInstrument
Running example script after installation. Fairly new to pyvisa, so not sure what the issue is here. Also when I search resource manager, no objects are returned but instrument is findable otherwise.
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.