LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thorlabs KDC101 Communication

Solved!
Go to solution

For the direct communication method, the second to last code ("21" in the example) is the destination ID.  It uses 21 as an example but it could be something else.  If all you're using is one cube, it might be "50" or "11" instead.  There's a table on page 14 of that same manual.

0 Kudos
Message 21 of 28
(3,901 Views)

The error comes out of the first constructor node.

 

Thanks,

SM

0 Kudos
Message 22 of 28
(3,880 Views)

Kyle,

Which code were you talking about when you said: "For the direct communication method, the second to last code ("21" in the example) is the destination ID." ?

 

Thanks,

SM

0 Kudos
Message 23 of 28
(3,874 Views)

Hi, do you know how can i set velocity using Kinesis code ?

0 Kudos
Message 24 of 28
(3,441 Views)

Hi,

 

It depends on how you are talking to the device. The way I'm doing it is through .NET and I am using the Kineses DLL files. Using Invoke Nodes and Property nodes this can be done easily (see attached snapshot).

 

Hope that helped,

SM

0 Kudos
Message 25 of 28
(3,434 Views)
Spoiler
Err1172

Hallo 
I get this message, can You please help me.
I did the Same as being done in the Solution.
Thank you 
Ghaith

0 Kudos
Message 26 of 28
(2,833 Views)

Hello, please, put the print screen of your VI !!!

0 Kudos
Message 27 of 28
(2,807 Views)

VISA serial tool can send HEX code as well. I have tested it with the LabVIEW example. Before you have to load and set Thorlabs APT driver to use virtual COM port for PC. I have tested the commands on Solenoid K-Cube KSC101 hardware (very similar to KDC101).

Mode is manual: C0, 04, 01, 01, 50, 01

Set the solenoid to ‘ON’: CB, 04, 01, 01, 50, 01

Set the solenoid to ‘OFF’:  CB, 04, 01, 02, 50, 01

 

Selenoid K-Cube setup for external control using TTL levels.

Set the control mode to ‘Trigger’: C0, 04, 01, 04, 50, 01

Set the solenoid to ‘ON’: CB, 04, 01, 01, 50, 01

The last commands let to control  KSC101 using TTL levels of Trigger1 input. TTL high switches the Solenoid shutter ON, TTL Low switches the shutter OFF. This gives the possibility to synchronize Thorlabs shutter with laser. The laser pulses repetition rate is 10Hz.

Very important is to set the right commands as the wrong command blocks all communication of K-Cube. To recover the communication you have to switch the power supply off and ON. 

Debugging: Temporary install Kinesis software. When working with serial commands, the Kinesis Development TestClient can be useful. You can click on the buttons of the GUI and see the respective serial commands. You can find it in this folder: C:\Program Files\Thorlabs\Kinesis

0 Kudos
Message 28 of 28
(2,098 Views)