Skip to content

Possible reasons for failure of connection to laser #4

@supernight3

Description

@supernight3

Code and problem description

https://github.com/gregmoille/InstrumentControl/blob/master/pyLaser/newfocus.py
I ran the code and find it has problems connecting to the laser.
To be detailed, from line 182 to 185

out = self._dev.OpenDevices(self._idLaser, True)
tab = self._dev.GetDeviceTable()
#empty buffer
out = self._dev.Read(self._DeviceKey, self._buff)

the first 'out' shows 'true', the seconde 'out' shows '-1' and the 'tab' shows 'System.Collections.Hashtables'. I also tried a query function after these lines and still got no answer, which means if fail to connect to the laser.

Troubleshooting

  • The laser has connected to the laptop by usb and it can be controlled by "New Focus TLB-6700 Tunable Laser Application" software.
  • The device key and id are also double-checked by running labview code with them and they are correct
  • Newport and Newport.USBComm.USB() have also been successfully imported after check of the variable

What else could possible cause the failure of connection? Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions