WasatchPhotonics / Wasatch.PY

Python driver for Wasatch Photonics spectrometers with demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raman virtual device: RUN

mggluscevic59 opened this issue · comments

Hello,

Did everything as noted in Doc file. Sending the output.

Kind Regards!
Screen Shot 2022-11-03 at 13 08 29

@mzieg can you check to see if you get this error? I can't replicate it on my machine. I recognize what is complaining about and have fixed it in #59, but I can't verify it resolves the issue since I can't get it on my machine.

@mggluscevic59 are you able to switch to the demoVirtualFix branch and see if that change resolves the issue for you?

@mzieg Hello. Sorry for late reply. Switched to demoVirtualFix. No error, but no reply. Sending an output.

image

P.S. feel free to send me e-mail reminder. My employee did not prioritise Virtual device, so not full time on it!

Ok,

I figured it out. You can access virtual from WP shell. Is it possible to use it for testing Demo.py?

Kind regards
P.S. will close the issue now, because shell virtual is working for me.

Ok,

I figured it out. You can access virtual from WP shell. Is it possible to use it for testing Demo.py?

Kind regards P.S. will close the issue now, because shell virtual is working for me.

It would be possible but would require modifying Demo.py. It would mean replacing the connection function's logic with the connection process for a virtual spectrometer as in demo-virtual.py

Ok,
I figured it out. You can access virtual from WP shell. Is it possible to use it for testing Demo.py?
Kind regards P.S. will close the issue now, because shell virtual is working for me.

It would be possible but would require modifying Demo.py. It would mean replacing the connection function's logic with the connection process for a virtual spectrometer as in demo-virtual.py

Yes, I see.

Currently Demo.py uses RealDevice class to connect. If "URI" string would be used to connect, then "MOCK" parameter could be passed.

Warmly waiting for improvements!
Keep me posted.
Engr. Gluscevic