-
Notifications
You must be signed in to change notification settings - Fork 35
Labview Examples for Kinesis Motion Control Products #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a03adda
PPC example update
Doneill-Thorlabs d4a65bd
Update PFM450_pythonnet.py
TrumanMetz 5ababa2
Update PFM450_pythonnet.py
TrumanMetz cba6689
Update PFM450_pythonnet.py
TrumanMetz d562361
Merge branch 'main' into Development
TrumanMetz d31565a
Update BBD30X.py
TrumanMetz 17eb03c
Finally updated ELLO C# example
TrumanMetz c346187
Create KST201.m
gboedecker 864af70
fix bugs
ZiyingZhang313 edf2005
fix bugs
ZiyingZhang313 212b9a6
fix MFF c++ example bugs
ZiyingZhang313 db468a5
Merge branch 'main' into Development
movagharnematiThorlabs e1ec900
Kinesis Labview Examples
movagharnematiThorlabs 101e8dc
Update K10CR1_pythonnet.py
gboedecker 4d2ff1e
Create TTC_pythonnet.py
gboedecker 4b75077
updated readmes, screenthots, taking
movagharnematiThorlabs 896f32c
Merge branch 'Development' of https://github.com/Thorlabs/Motion_Cont…
movagharnematiThorlabs 79e39e3
Cleaned up readme files
TrumanMetz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Thorlabs.MotionControl.DeviceManager.dll | ||
Thorlabs.MotionControl.KCube.FilterFlipper.dll | ||
Thorlabs.MotionControl.KCube.FilterFlipper.h | ||
Thorlabs.MotionControl.KCube.FilterFlipper.lib | ||
Thorlabs.MotionControl.FilterFlipper.dll | ||
Thorlabs.MotionControl.FilterFlipper.h | ||
Thorlabs.MotionControl.FilterFlipper.lib |
Binary file added
BIN
+162 KB
Labview/Kinesis - BBD30X - Connect Abs Rel Move/BBD301ConnectMoveTo.vi
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### Thorlabs Hardware: BBD30X - Benchtop 3-Phase Brushless DC Servo Controller | ||
https://www.thorlabs.com/thorproduct.cfm?partnumber=BBD303 | ||
|
||
# Description: | ||
This VI will enable you to communicate with BBD30X series to control Brushless Stages & Actuators. | ||
|
||
# Instructions: | ||
1) Connect your BBD30X device to your PC & power the device, ensuring your stage/actutator is connected. For full device setup, the device product manual can be found on our website. | ||
2) Enter the device serial number as well as channel number below. | ||
3) Click 'Run' in the LabVIEW Toolbar which will attempt a connection, and enable the device. | ||
4) Ensure the device move path is clear for homing, and press Home. | ||
5) Await for device to be be available, and to have finished homing (Home indicator in control panel should be green). | ||
6) Input desired absolute position, and press 'Set Abs Pos' to set that for absolute moves. | ||
7) Similarly input desired direction and step size for relative moves. | ||
8) To end the Program click 'STOP'. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
### Thorlabs Hardware: BNT001/IR | ||
https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=1194&pn=BNT001/IRDescription: This VI will enable you to connect to & safely disconnect to a BNT001 device. | ||
|
||
# Description: | ||
This VI will enable you to connect to & safely disconnect to a BNT001 device. | ||
|
||
# Instructions: | ||
1) Connect your BNT001 device to your PC & power the device. For full device setup, the device product manual can be found on our website here. | ||
- https://www.thorlabs.com/thorproduct.cfm?partnumber=BNT001/IR | ||
2) Enter the device serial number below. | ||
3) Click 'Run' in the LabVIEW Toolbar. | ||
4) To end the Program, click 'END'. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.09 MB
Labview/Kinesis - BNT - Set Circle Home Position/Kinesis - BNT - Set Circle Home Position.vi
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
Labview/Kinesis - BNT - Set Circle Home Position/Readme.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### Thorlabs Hardware: BNT001/IR | ||
https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=1194&pn=BNT001/IR | ||
|
||
# Description: | ||
This VI will enable you to set the Scanning Circle Home Position, throught the GetCircleHomePosition() method. | ||
Horizontal and Vertical positions can be adjusted in the range of 0 to 10 in NanoTrak Units. | ||
|
||
# Instructions: | ||
1) Connect your BNT001 device to your PC & power the device. For full device setup, the device product manual can be found on our website here. | ||
- https://www.thorlabs.com/thorproduct.cfm?partnumber=BNT001/IR | ||
2) Enter the device serial number below. | ||
3) Click 'Run' in the LabVIEW Toolbar. | ||
5) Enter values for Horizontal & Vertical Position (0-10 NT Units). | ||
5) To end the Program, click 'END'. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thorlabs Hardware: KBD - K-Cube Brushless DC Servo Driver | ||
https://www.thorlabs.com/thorproduct.cfm?partnumber=KBD101 | ||
|
||
Description: This VI will enable you to communicate with KBD101 to control Brushless Stages & Actuators. The VI will first connect and initialize the device, home it, and await user command to move to a specified location. | ||
|
||
Instructions: | ||
1) Connect your KBD101 device to your PC & power the device, ensuring your stage/actutator is connected. For full device setup, the device product manual can be found on our website here. -https://www.thorlabs.com/thorproduct.cfm?partnumber=KBD101 | ||
2) Enter the device serial number below. | ||
3) Ensure the device move path is clear for homing. | ||
4) Click 'Run' in the LabVIEW Toolbar which will attempt a connection, and send a home command in that order. | ||
5) Await for device to be be available, and to have finished homing. | ||
6) Input desired Jog Direction and step size position, and press 'Jog'. | ||
7) To end the Program click 'STOP'. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thorlabs Hardware: KBD - K-Cube Brushless DC Servo Driver | ||
https://www.thorlabs.com/thorproduct.cfm?partnumber=KBD101 | ||
|
||
Description: This VI will enable you to communicate with KBD101 to control Brushless Stages & Actuators. The VI will first connect and initialize the device, home it, and await user command to move to a specified location. | ||
|
||
Instructions: | ||
1) Connect your KBD101 device to your PC & power the device, ensuring your stage/actutator is connected. For full device setup, the device product manual can be found on our website here. -https://www.thorlabs.com/thorproduct.cfm?partnumber=KBD101 | ||
2) Enter the device serial number below. | ||
3) Ensure the device move path is clear for homing. | ||
4) Click 'Run' in the LabVIEW Toolbar which will attempt a connection, and a home command in that order. | ||
5) Await for device to be be available, and to have finished homing. | ||
6) Input desired movement position, and press 'Move To Position'. | ||
7) To end the Program click 'STOP'. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thorlabs Hardware: KIM101 - K-Cube Inertial Motor Controller | ||
https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=9790&pn=KIM101#9791 | ||
|
||
This VI will enable you to run the Kinesis Device panel for the KIM101 Intertial Motor Controller. | ||
You will also be able to set Jog Parameters & toggle the Jog Mode, as well as assert control to a particular channel. | ||
|
||
Instructions: | ||
1. Connect your KIM101 device to your PC via USB & power your device. See the product manual for details of device setup | ||
https://www.thorlabs.com/thorproduct.cfm?partnumber=KIM101 | ||
2. Enter the serial number of the controller into the SerialNumber box below. | ||
3. Run the VI from the LabVIEW Toolbar. | ||
6. To end the program, click 'END'. | ||
|
movagharnematiThorlabs marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thorlabs Hardware: KNA - K-Cube Nanotrak Controller | ||
https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=2877 | ||
|
||
Description: This VI will enable you to run the Kinesis Device panel for KNA-nnn devices. | ||
You will also be able to set the Operating Mode to Track or Latch. | ||
|
||
Track - When tracking, the NanoTrak detects any drop in signal strength resulting from misalignment of the input and output devices, and makes positional adjustments to maintain the maximum signal strength. | ||
|
||
Latch - Scanning is disabled and the piezo drives are held at their present position. | ||
|
||
1. Connect your KNA-nnn device to your PC via USB & power your device. | ||
2. Enter the serial number of the controller into the SerialNumber box below. | ||
3. Run the VI |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.09 MB
Labview/Kinesis - KNA - Set Circle Diameter/Kinesis - KNA - Set Circle Diameter.vi
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thorlabs Hardware: KNA - K-Cube Nanotrak Controller | ||
https://www.thorlabs.com/newgrouppage9.cfm?objectgroup_id=2877 | ||
|
||
Description: This VI will enable you to run the Kinesis Device panel for KNA-nnn devices. | ||
You will also be able to set the Operating Mode to Track or Latch. | ||
|
||
Track - When tracking, the NanoTrak detects any drop in signal strength resulting from misalignment of the input and output devices, and makes positional adjustments to maintain the maximum signal strength. | ||
|
||
Latch - Scanning is disabled and the piezo drives are held at their present position. | ||
|
||
1. Connect your KNA-nnn device to your PC via USB & power your device. | ||
2. Enter the serial number of the controller into the SerialNumber box below. | ||
3. Run the VI |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72 KB
Labview/Kinesis - KST201 - Move Relative/Kinesis - KST201 - Move Relative.vi
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Thorlabs Hardware: KST201 - K-Cube Brushless DC Servo Motor Controller | ||
https://www.thorlabs.com/thorproduct.cfm?partnumber=KST201 | ||
|
||
Description: This VI will enable you to communicate with KST101 to control Stepper Motor Stages & Actuators. The VI will allow you to home the device and move it by any valid distance in any direction. | ||
|
||
Instructions: | ||
1) Connect your KST101 device to your PC & power the device, ensuring your stage/actutator is connected. For full device setup, the device product manual can be found on our website here. - https://www.thorlabs.com/thorproduct.cfm?partnumber=KST201 | ||
2) Enter the device serial number below. | ||
3) Click 'Run' in the LabVIEW Toolbar. | ||
4) To end the Program click the 'STOP' button. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+161 KB
Labview/Kinesis - M30XY - Set Velocity Step/M30XYConnectSetVelocityStep.vi
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Thorlabs Hardware: M30XY - 30 mm Motorized XY Translation Stage | ||
https://www.thorlabs.com/thorproduct.cfm?partnumber=M30XY | ||
|
||
Description: This VI will enable you to communicate with M30XY series to control Brushless Stages & Actuators. | ||
|
||
Instructions: | ||
1) Connect your M30XY device to your PC & power the device, ensuring your stage/actutator is connected. For full device setup, the device product manual can be found on our website. | ||
2) Enter the device serial number. | ||
3) Click 'Run' in the LabVIEW Toolbar which will attempt a connection, and enable the device. | ||
4) Ensure the device move path is clear for homing, and press Home. | ||
5) Await for device to be be available, and to have finished homing (Home indicator in control panel should be green). | ||
6) Input direction and step size for relative move. | ||
7) To end the Program click 'STOP'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
""" | ||
TTC_pythonnet Example | ||
Date of Creation(YYYY-MM-DD): 2025-04-28 | ||
Date of Last Modification on Github: 2025-04-28 | ||
Python Version Used: python 3.11 | ||
Kinesis Version Tested: 1.14.52 | ||
|
||
""" | ||
import time | ||
import clr | ||
|
||
# Add References to .NET libraries | ||
clr.AddReference("C:\\Program Files\\Thorlabs\\Kinesis\\Thorlabs.MotionControl.DeviceManagerCLI.dll") | ||
clr.AddReference("C:\\Program Files\\Thorlabs\\Kinesis\\Thorlabs.MotionControl.TCube.TECCLI.dll") | ||
from Thorlabs.MotionControl.DeviceManagerCLI import * | ||
from Thorlabs.MotionControl.TCube.TECCLI import * | ||
|
||
from System import Decimal # necessary for real world units | ||
|
||
def main(): | ||
"""The main entry point for the application""" | ||
|
||
# Uncomment this line if you are using a aimulated device | ||
#SimulationManager.Instance.InitializeSimulations() | ||
|
||
try: | ||
|
||
DeviceManagerCLI.BuildDeviceList() | ||
|
||
# create new device | ||
serial_no = "87000001" # Replace this line with your device's serial number | ||
device = TCubeTEC.CreateTCubeTEC(serial_no) | ||
|
||
# Connect | ||
device.Connect(serial_no) | ||
time.sleep(0.25) # wait statements are important to allow settings to be sent to the device | ||
|
||
# Get Device Information and display description | ||
device_info = device.GetDeviceInfo() | ||
print(device_info.Description) | ||
|
||
# Start polling and enable | ||
device.StartPolling(250) #250ms polling rate | ||
time.sleep(0.25) | ||
device.EnableDevice() | ||
time.sleep(0.25) # Wait for device to enable | ||
|
||
# Configure device# | ||
device_config = device.GetTECConfiguration(device.DeviceID) | ||
|
||
temperature=Decimal(10) | ||
device.SetTemperature(temperature) | ||
|
||
for i in range (10): | ||
print(device.GetValueReading()) | ||
time.sleep(1) | ||
|
||
|
||
|
||
# Stop Polling and Disconnect | ||
device.StopPolling() | ||
device.Disconnect() | ||
except Exception as e: | ||
print(e) | ||
|
||
# Uncomment this line if you are using Simulations | ||
#SimulationManager.Instance.UninitializeSimulations() | ||
... | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but we need to make sure we are initializing a channel for the benchtops as well.