Activex Control Of Apt Thorlabs Positioning Stages

This code shows how to control the APT Thorlabs positioning system using the third party ActiveX controls. This code also shows how to use ActiveX controls and MATLAB.
It appears that MATLAB modifies the signature of the ActiveX method so that variables originally passed by reference are included in the output of the function. For example:
o the Visual Basic Call to the method GetNumHWUnits is:
MG17System1.GetNumHWUnits USB_NANOTRAK, lngNumNanoTraks
o the equivalent MATLAB call is:
[temp1, temp2] = h_Ctrl.GetNumHWUnits(8, 0);
So, you simply pass a dummy value of 0 into the input argument, and read the output from temp1 and temp2. lngNumNanoTraks gets set to 2 when it is
passed by reference. As expected, temp2 is set to 2 once the line has been evaluated by MATLAB.
At our lab, we have two 6-axis positioning stages. Each axis has a motor control for rough positioning, and piezo control for fine tuning. We also have two NanoTrak modules that let us position four of the axes automatically.

The modules are: NanoTrak, Piezo, and Motor controls. In my setup, a fiber is placed on one of the stages and aligned to an optical modulator. Another fiber is placed on the other stage, and is used to measure the output light. The streaming video from out microscope is shown at the bottom right of the screen capture. Requirements:
· MATLAB Release: R2006b

Related Scripts

  • Skfinger Activex Control
    SkFinger ActiveX Control is a lightweight and powerful Finger client ActiveX control. It allows developers to integrate the Finger protocol message se...
  • Sksntp Activex Control
    SkSNTP ActiveX Control is a lightweight and powerful SNTP (Simple Network Time Protocol) ActiveX control that can be used for very accurate local cloc...
  • Open File Utility
    An m-file that activates the WIN32 ActiveX control for selecting a file. The ActiveX control is part of the Win32 environment and it is written using ...
  • Skicmp Activex Control
    SkICMP ActiveX Control is a lightweight and powerful ICMP (Ping and Traceroute) ActiveX control that can be used for network diagnosing, troubleshooti...
  • Skwhois Activex Control
    SkWHOIS ActiveX Control is a powerful, intelligent, flexible, and lightweight WHOIS ActiveX control. It allows developers to integrate the WHOIS/NICNA...
  • Skdns Activex Control
    SkDNS ActiveX Control is a DNS (Domain Name Service) ActiveX control that can be used for network diagnosing, troubleshooting, and monitoring. The Mag...
  • Matlab Microsoft Media Player
    This application embeds a Microsoft Media Player into a MATLAB figure window. This is achieved using the ActiveX control for the media player. This ap...
  • Sksysteminfo Activex Control
    SkSystemInfo ActiveX Control provides the following vital system information in real-time: -Address translation (ARP) table information. -ICMP protoco...
  • Font List & Combo Activex Control 1.0
    Features - both ListBox and ComboBox control in one ActiveX control. - automatic enumeration of all available fonts on your system, either the screen ...
  • Checklistbox Activex Control 2.6
    In this control, each item's font, color, enabled and checked state can be individually modified. The control also supports 3D look, picture items and...
  • Stream Instrument Data To Excel Using Activex
    Using the Instrument Control Toolbox, stream2excel.m reads data from an osciloscope. Alternatively there is a companion data file that may be used ins...
  • Virtual Serial Port Activex Control 6.1
    Virtual Serial Port is a powerful advanced ActiveX Control that allows your application to create custom additional virtual serial port in system and ...
  • Lundlay Property Browser
    Lundlay Property Browser is an ActiveX control element to view and change the properties of COM objects and ActiveX control elements. This powerful an...
  • Softerra Hex Editor
    Softerra Hex Editor is a freeware component implemented as a 32-bit ActiveX (OCX) control, which will seamlessly integrate a hex editor in your applic...
  • Skportscan Activex Control
    SkPortScan ActiveX Control is a lightweight and powerful port scanner control. It allows developers to integrate port-scanning capabilities into their...
  • Capsela 0.6.3
    Capsela organizes Node.js servers in multiple stages.As the user request and server response goes through these stages, the developer can keep a close...
  • Relative Positioning
    Relative positioning shows how to position a media within a presentation, with relative positioning....
  • Html Viewer Activex Control 1.4
    This is a HTML viewer activeX control for Content Management System developers. Pefect for the developer who wants to display media rich content ...
  • Pfptr
    This is an ActiveX control which allows programmers to execute ping and traceroute operations and easily retrieve results and statistics. Additionally...
  • Java Web Parts 1.2
    This is comprised of a number of packages, each supplied in their own individual JAR, with little (ideally no) cross-dependency.The project was built ...
DMCA Notice-Privacy Policy
2004 - 2013 DownScripts. All rights reserved.