Property Node Gui Labview
Aug 06, 2015 Updating a LabVIEW GUI from a subVI. Ask Question 5. I'm writing a program to control two similar devices in Labview. In order to avoid copying the code I use subVIs. But I have a piece of code where I update some values on the GUI inside a while loop. In the subVI, use a property node to write the Value property of the indicator.
LabVIEW can be used to communicate with any APT-based controller via ActiveX technology. In LabVIEW, you build a user interface, known as a front panel, with a set of tools and objects and then add code using graphical representations of functions to control the front panel objects. The LabVIEW tutorial provides some information on using ActiveX to create control GUIs for apt-driven devices within LabVIEW. The LabVIEW tab provides an overview of some basic information about using apt-based controllers in LabVIEW. The Getting Started tab explains the basic setup procedure that needs to be completed before using a LabVIEW GUI to operate an apt-based device. The Basic VIs, Intermediate VIs, and Advanced VIs tabs provide a summary of LabVIEW virtual instrument (VI) examples provided by Thorlabs to help you get started with creating programs for your controllers in LabVIEW.A comprehensive guide to using LabVIEW with APT can be dowloaded.
Adding a Thorlabs ActiveX Component to LabVIEW. From the Main Menu bar, select 'Controls/ActiveX/Container' to place an ActiveX Container on the front panel. Right click the ActiveX container created at item (1) to display the short cut menu. Select 'Insert ActiveX Object' to display the 'Select ActiveX Object' dialog box. From the top menu bar, select 'Create Control'. From the 'Components' list displayed, select the Thorlabs components required, (e.g., MG17Motor, MG17NanoTrak ®, MG17 Piezo, MG17Logger). Note: If a checkmark is placed in the Validate Servers checkbox, LabVIEW verifies the server and lists only the servers in the registry that actually exist on your computer.
If a checkmark is not placed in the Validate Servers checkbox, LabVIEW does not verify the server and lists all servers in the registry. On the block diagram, select 'Functions/Communication/ActiveX/Invoke Node'. Wire the container 'refnum' to the reference input of properties and methods within the diagram.Once the control is placed on the front panel, it can be used in the same way as any other LabVIEW control. However, each APT Control must be activated by carrying out the following two steps. For detailed instructions, see the blue box titled Creating an ActiveX Property or Method in LabVIEW. The 'HWSerialNumber' property must be set to the correct (factory programmed) hardware unit serial number. The 'StartCtrl' method must be called in order to activate the control.A guide to using the APT software within a LabVIEW environment can be found.Note: Thread allocation in LabVIEW is dynamic.
The number of threads and the usage of thread allocation will vary with each application. If the thread allocation is important in your application, some information on multithreading is provided below.Working virtual instrument (VI) files are available with basic, intermediate, and advanced examples of how to perform general programming tasks within a LabVIEW environment (see the Basic VIs, Intermediate VIs, and Advanced VIs tabs). Useful comments have been added to the software to further explain each step in the program. These examples, which can be run with either an actual hardware configuration or a simulated configuration, interact with the hardware via the APT Server, which is. Creating an ActiveX Property or Method in LabVIEWA new 'Property Node' or 'Method Node' for an ActiveX object can be created directly within the block diagram without having to navigate the function palette. Property and Method Nodes can be added by using the drop down menu system within LabVIEW.
Multiple Property Nodes and Method Nodes can be created for the same object. In LabVIEW, a Method Node is sometimes referred to as an Invoke Node.To create a Property Node or Method Node for an ActiveX object:.
Right-click the ActiveX object and select 'Create Property' or 'Create Method' from the shortcut menu. The object can be a control on the front panel within an ActiveX container, an ActiveX refnum or a terminal from another VI, a function, or a node.
On the block diagram, click where you want to place the Property Node or Method Node. A preoprty Node or Method Node appears on the block diagram where you clicked. Right-click in the white area of the Property Node or Method Node, and select the property or method to access it.Examples of how to create Methods in LabVIEW are provided in the videos below. Working with ActiveX Events in LabVIEWActiveX events allow all of the data to be stored for a specific action that occured as a result of an ActiveX communication. The following procedure shows how to create a VI that creates and waits on an ActiveX event queue and then destroys the event queue. Getting StartedThe steps below outline the startup procedure for using the example virtual instruments (VIs) and connecting them to an APT-controlled device in your lab.
Once you have finished this start up procedure, you can use the VIs outlined in the Basic VIs, Intermediate VIs, and Advanced VIs tabs. Download the Examples from the relevant section (Basic, Intermediate, or Advanced) to the desired location on your PC. Associate the Axes. To ensure that a particular stage is driven properly by the system, a number of parameters must first be set. These parameters relate to the physical characteristics of the stage being driven (e.g., min and max positions, leadscrew pitch, homing direction, etc.). To assist in setting these parameters correctly, it is possible to associate a specific stage type and axis with the motor controller channel using the APT Config utility.
Once this association has been made, the APT server applies the suitable default parameter values automatically upon boot up of the software. See the APT Config Utility Helpfile for details on how to assign a stage type and axis. Setting the Serial Numbers. The routines are hard coded to run the following preconfigured serial numbers:Motor - 20000001Piezo - 21000001NanoTrak ® - 22000001In the APT server, the serial number must be changed accordingly in the VI diagram, whether using actual hardware or a simulated configuration. This is commented within the diagram. In the case of hardware, the serial number is on the rear of each unit. Basic Virtual Instrument (VI) ExamplesThese basic examples contain all the information needed to get started using the APT Server with LabVIEW, and are not intended to be used as the basis for any custom application.
The use of each ActiveX control is demonstrated in a simple.vi file, which shows how the associated ActiveX methods and properties are used. Furthermore, if an error does occur from the server, a dialog box will pop up to inform the user of the error, and the VI will stop running.The VI's are split into five sections dependent on the control with which they are associated: Motor, NanoTrak ®, Piezo, Strain Guage, or Solenoid. A Screenshot of the LabVIEW Code of TL Motor MoveHome.viA zipped file containign all of the Motor VIs can be downloaded.TL Motor MoveHome.viThis VI Moves the axis of the stage to the Home position.Each axis on the associated stage has settings for the Zero Offset and Minimum Position parameters. The Zero Offset is the distance between the negative limit switch and the end of travel. The Minimum Position is the minimum absolute position that can be set for the stage axis. Typically, when the TL Motor MoveHome.vi is run, the stage axis moves to its negative limit and then moves forward by a set distance (zero offset). The absolute position count is then reset to zero to provide the reference point for all subsequent absolute moves.
If position is lost on a stage axis, the MoveHome method should be called to re-establish the zero (Home) position.TL Motor MoveAbsolute.viThis VI moves the axis of the stage to the specified absolute position. The position is measured from the Home position in millimeters.TL Motor MoveRelative.viThis VI moves the asix of the stage a specified distance, relative to the present position. A Screenshot of the GUI Interface of TL Motor SetGetStageAxisInfo.viTL Motor SetGetStageAxisInfo.viThis VI sets and retrieves data describing the properties of the stage, producing settings that are specific to the design of the associated stage. The Units parameter contains the units of measure for stage motion in either millimeters or degrees, whichever is relevant. The MinPos and MaxPos parameters contain the positions of the minimum and maximum travel limits respectively, and are determined by their displacement from the Home position.
MinPos is usually set to zero. The Pitch parameter returns the pitch of the motor leadscrew in mm or degrees per rev, which is used to calculate the distance moved for each revolution of the motor. The DirSense parameter is for future development and is not implemented at this time.TL Motor SetGetVelParams.viThis VI is applicable to moves initiated from software by running the TL Motor MoveRelative.vi or TL Motor MoveAbsolute.vi. It allows the trapezoidal velocity profile parameters to be set for all moves. Parameters are set in real world units (mm or degrees) dependent upon stage type.TL Motor MoveComplete.viThe TL Motor MoveComplete.vi must be run with a correctly entered serial number. The MoveComplete.vi presents the user with a motor GUI panel, which can be used to move motors by pressing the job buttons or entering a position in the display. When the move is complete, the MoveComplete CallBack.vi is called and run.
This second VI displays a message in the Events dialog box to state that the move has completed. NanoTrak ® VIsA zipped file containing all of the NanoTrak ® VIs can be downloaded.TL NanoTrak LatchTrack.viThis VI sets the tracking mode for the NanoTrak. When set to Latched, scanning is disabled and the piezo drives are held at the present position. When set to Track, scanning is enabled and the NanoTrak follows the position of maximum power.TL NanoTrak SetGetCircDia.viThis VI sets and retrieves the diameter fo the NanoTrak scanning circle. The circle diameter is measured on a scale (NanoTrak units) such that 10 units is the width and height of the screen. If, for example, the NanoTrak is driving a 20 micron actuator, a circle diameter of 1 unit will result in a real diameter of 2 microns.
The scanning circle diameter can have values in the range of 0 to 5 with a value of 5 corresponding to one half the range of piezo motion.Note: If the NanoTrak is latched when this method is called, the circle diameter will not change. When the NanoTrak is set to Track mode, the circle diameter will change to the value set in this method.TL NanoTrak SetGetCircDiaLUTVal.viThis VI enables a look up table (LUT) of circle diameter values (in NanoTrak units) to be specified as a function of input range. The system then uses the values in this LUT to modify circle diameter in relation to the input range currently selected.
This mode of adjustment allows the appropriate circle diameters to be applied on an application-specific basis.TL NanoTrak SetGetCircleHomePos.viThis VI sets and retrieves the circle home position. The present horizontal and vertical coordinates of the home position are displayed in the 'Initial Pos' field. Both position outputs can have values in the range of 0.0 to 10.0 (NanoTrak units), with (5.0, 5.0) representing the display's origin (screen center).TL NanoTrak SetGetLoopGain.viThis VI sets and retrieves the feedback loop gain.
The gain setting is used to ensure that the DC level of the input (feedback loop) signal lies within the dynamic range of the input.The present gain value is displayed in the 'Initial Gain' field. The gain can be changed by entering a value (in the range 100 to 10,000) in the 'New Gain' field.TL NanoTrak SetGetPhaseComp.viThis VI sets and retrieves the phase compensation for the horizontal and vertical components of the circle path.The feedback loop scenario in a typical NanoTrak application can involve the operation of various electronic and electromechanical components (e.g., power meters and piezo actuators) that could introduce phase shifts around the loop and thereby affect tracking efficiency and stability. These phase shifts can be cancelled by setting the 'Phase Compensation' factors. This VI sets and retrieves the phase compensation for the horizontal and vertical components of the circle path.The present values are displayed in the 'Initial Phase Comp' field. These values can be changed by entering different values into the 'New Phase Comp' field. The values are specified in degrees and lie in the range -180.0 to 180.0 degrees.Typically, both phase offsets will be set the same, although some electromechanical systems may exhibit different phase lags in the different components of travel and so require different values.TL NanoTrak SetGetRangingMode.viThis VI sets and retrieves the ranging mode. The ranging mode currently selected is displayed in the first box of the 'Initial Ranging Mode' field.
It can be set by entering a number 1 through 4:. Changes the ranging mode to to Auto ranging at the range currently selected. Changes the ranging mode to Manual ranging at the range currently selected. Changes the ranging mode to manual ranging at the range set in the SetRange method (or the 'Settings' panel). When auto-ranging mode is selected, range changes occur whenever the relative input power signal reaches the upper or lower end of the currently set range. Changes the ranging mode to Auto ranging at the range set in the SetRange method (or the 'Settings' panel).
When auto-ranging mode is selected, range changes occur whenever the relative input power signal reaches the upper or lower end of the currently set range.The second box of the 'Initial Ranging Mode' field specifies how these range changes are implemented by the system:. The unit visits all ranges when ranging between two input signal levels. Only odd numbered ranges between the two input signals will be visited. Only even numbered ranges between the two input signal levels will be visited. These latter two modes are useful when large rapid input signal fluctuations are anticipated.
This is because the number of ranges visited is halved to give a more rapid resonse.The ranging mode can be changed by entering different values into the 'New Ranging Mode' field. Piezo VIsA zipped file containing all of the Piezo VIs can be downloaded.TL Piezo GetMaxTravel.viIn the case of actuators with built-in position sensing, the Piezoelectric Control Unit can detect the range of travel of the actuator since this information is programmed in the electronic circuit inside the actuator. This VI retrieves the maximum travel for the piezo actuator associated with the channel specified by the lChanID parameter, and returns a value (in microns) in the plMaxTravel parameter.When in closed-loop mode, position is maintained by a feedback signal from the piezo actuator. This is only possible when using actuators equipped with position sensing.
This VI sets the control loop status. For more details, please refer to the APT server help file (After APT installation, this can be found in Start/All Programs/Thorlabs/APT/Help).TL Piezo SetGetPosOutput.viThis VI sets and retrieves the position of the piezo actuator.The current position of the actuator is displayed in the 'Initial Position' field. The position of the actuator is relative to the datum set for the arrangement using the ZeroPosition method. Once set, the extension of the actuator will be read and scaled automatically to a position in microns, for whichever actuator is connected to the control module. Note: The SetPosOutput VI is applicable only to actuators equipped with position sensing and operating in closed loop mode. Actuators fitted with feedback circuitry can be interrogated by the Piezo module for maximum travel in microns (see the GetMaxTravel.vi).The position of the actuator can be changed by entering a different value in the 'New Position' field.TL Piezo SetOutputLUTValue.viIt is possible to use the controller in an arbitrary Waveform Generator Mode (WGM). Rather than the unit outputting an adjustable but static voltage or position, the WGM allows the user to define a voltage or position sequence to be output, either periodically or a fixed number of times, with a selectable interval between adjacent samples.
This waveform generation function is particularly useful for operations such as scanning over a particular area, or in any other application that requires a predefined movement sequence.The waveform is stored as values in an array, with a maximum of 8000 samples per channel which represent either voltage or position. If open loop operation is specified when the samples are output, then their meaning is voltage; if the channel is set to closed loop operation, the samples are interpreted as position values. If the waveform to be output requires less than 8000 samples, it is sufficient to download the desired number of samples. Strain Guage VIA zipped file containing the Strain Guage VI can be downloaded.TL Strain Guage Reader GetReading.viThis VI returns the current reading of the strain gauge associated with the Strain Gauge Reader.The units applicable are dependent on the current operating mode.
If the unit is operating in Position mode, then the vi returns a position value in microns. If the unit is in Voltage mode, then the vi returns a Voltage.
If the controller is in ‘Force Sensing Mode’ then a force value in Newtons is returned. The returned data values are sampled at 500 Hz, which is particularly useful in touch probe or force sensing applications where rapid polling of the force reading is important.All values are relative to the datum set for the arrangement. Intermediate Virtual Instrument (VI) ExamplesThe Intermediate Examples contain five routines, written using the APT Server. These are only intended to be used as examples when writing custom applications, and all parameters are hard coded. Before the examples can be used as the basis for any custom application development, parameters may need to be changed. For example, the scan routines may require different start point and interval values.
The threshold for the power range to locate during a search may also be different. If an error occurs from the server, a dialog box will pop up to inform the user of the error, and the VI will stop running.The function of each VI is explained briefly below.
Easy PCB ordering from Advanced Circuits.
The files can be downloaded. 2D Raster Scan PatternMotor2DScan.viThis VI shows a basic two-dimensional raster scan using a motor control, which is the most basic scan pattern. Coordinates are generated along the Y axis between a lower and upper search limit. Once the upper limit is reached, the search is stepped in the Z axis and begins again.
The number of coordinates generated is dependent upon the search area and the step size.MotorScan2DFindRange.viThis VI is an extension of the Motor 2D scan. A NanoTrak ® control is included, and the scan is exited when the signal being searched exceeds a predefined threshold value.Piezo2DScan.viThis VI shows a basic two-dimensional raster scan using a piezo control.This is the most basic scan pattern. Coordinates are generated along the Y axis between a lower and upper search limit. Once the upper limit is reached, the search is stepped in the Z axis and begins again. The number of coordinates generated is dependent upon the search area and the step size.PiezoNanoTrak2DScanFindRange.viThis VI is an extension of the Piezo 2D scan.
A NanoTrak control is included, and the scan is exited when the signal being searched exceeds a predefined threshold value.MotorNanoTrak2DRevector.viIn any application, when the NanoTrak is set to tracking mode, the NanoTrak is limited to the range of the piezos in order to track the signal. If, due to thermal drift or other external influences, the NanoTrak reaches the edge of its screen it will lose the signal due to the range of the piezos. A revector routine checks the circle position, and if the circle position is not near the center of the NanoTrak's screen, motors are used to ensure that the NanoTrak has sufficient range to continue tracking the signal. Advanced Virtual Instrument (VI) ExamplesThe Thorlabs approach to alignment is based on a combination of stepper motors (NanoSteps) and piezo positioners. The stepper motors provide coarser motion over longer range whereas the piezos provide extremely fine motion over shorter range.
The piezos are driven from the NanoTrak ®, an analog instrument that optimizes the piezo extension for maximum optical power.The Advanced Examples contain five routines, written using the APT Server. These VIs are intended to be used as examples when writing custom applications. Before the examples can be used as the basis for any custom application development, some alteration of the code may be necessary.
For example, the order and process in which optimization occurs may need altering. Furthermore, if an error occurs from the server, a dialog box will pop up to inform the user of the error, and the VI will stop running. In an end application more complex error handling may be needed.The function of each VI is explained below. A zipped folder containing all of the advanced example VIs can be downloaded.Note: These VIs contain sample code to illustrate optimization of alignment along several sets of axes. The code may be copied and pasted into another program, but more advanced error handling must be added before this example can be run as part of an end application.
2-Axis OptimizationThis virtual instrument optimizes the alignment of two parts of a system along 2 axes (for example, the alignment of two fiber tips to maximize the amount of light that is coupled from one to the other). A 2D spiral search is performed by the NanoStep motors to locate the initial (threshold) power; then the optimum power is located using the piezos, with revectoring as required. The procedure is outlined in the flow chart to the right.A zipped folder containing all of the advanced example VIs can be downloaded.Setting Up the NanoMax StageFor this example, we will set up a NanoMax Stage with two V-groove fiber holders as shown in the drawing below. The mechanical components are listed in the table to the right.
The components that need alignment have been left out of the setup, since these will be user dependent. Connect the NanoMax stage to the PC as detailed in the handbook for your device. 2-Axis Optimization GUIThe 2-axis optimization VI GUI is shown to the right and a description of each field is provided in the table underneath. 3-Axis OptimizationThis VI is used to optimize the alignment of 3 axes in a system. First, a 2D spiral search is performed by the NanoStep motors to locate the initial (threshold) power.
Next, the optimum power is located using the piezos, with revectoring as required. Once max power is located in axes 1 and 2, the power is further optimized by adjusting the position in axis 3, while the position in axes 1 and 2 are maintained by `nudging' the NanoTrak. The alignment is complete when a specified ceiling power is achieved.A zipped folder containing all of the advanced example VIs can be downloaded.Setting Up the NanoMax StageFor this example, we will set up a NanoMax Stage with two V-groove fiber holders as shown in the drawing below. The mechanical components are listed in the table to the right. The components that need alignment have been left out of the setup, since these will be user dependent.
Connect the NanoMax stage to the PC as detailed in the handbook for your device. Item #DescriptionQuantityorNanoMax-HS 3-Axis Stage1NanoStep Actuator3orFixed World Bracket1Standard V-Groove Fiber Holder a1Tapered V-Groove Fiber Holder a1Standard Fiber Chuck1APT NanoTrak ® Controller1APT Stepper Motor Controller1.
may be chosen based on the components that you wish to align. The example given here is appropriate for aligning the tips of two jacketed fibers.3-Axis Optimization GUIThe 3-axis optimization VI GUI is shown to the right and a description of each field is provided in the table underneath. Instructions for running the GUI are as follows. 4-Axis OptimizationThis VI is useful for aligning two NanoMax stages, each along two axes. The figure to the right shows the breakdown of where each axes is located. 2D spiral search is performed on axes 1 and 2, and on axes 3 and 4, by the NanoStep motors. Once the initial (threshold) power is located, the power is optimized using the piezos, with revectoring as required.
The tracking is performed simultaneously on 2 NanoTraks (set to different frequencies), one at each end of the device being aligned.A zipped folder containing all of the advanced example VIs can be downloaded. Setting Up the NanoMax StageFor this example, we will set up a NanoMax Stage with two V-groove fiber holders as shown in the drawing below. The mechanical components are listed in the table to the right.
The components that need alignment have been left out of the setup, since these will be user dependent. Connect the NanoMax stage to the PC as detailed in the handbook for your device. Item #DescriptionQuantityorNanoMax-HS 3-Axis Stage2NanoStep Actuator4Differential Micrometer2Fixed Platform1Waveguide Mount with Vacuum Holddown a1Tapered V-Groove Fiber Holder a1APT NanoTrak ® Controller2APT Stepper Motor Controller2.
may be chosen based on the components that you wish to align. The example given here is appropriate for aligning the tips of two jacketed fibers.4-Axis Optimization GUIThe 4-axis optimization VI GUI is shown to the right and a description of each field is provided in the table underneath. Instructions for running the GUI are as follows. 6-Axis OptimizationThis VI is useful for aligning two NanoMax stages, along 3 axes each, to a component in the middle. A 2D spiral search is performed on axis 1 and 2 and on axis 3 and 4 simultaneously. The NanoStep motors locate the initial (threshold) power; then the optimum power is located using the piezos, with revectoring as required. Once max power is located in axes 1, 2, 3, and 4, the power is further optimized by positioning in axis 5 and 6, while the positions along axes 1, 2, 3, and 4 are maintained by 'nudging' the NanoTrak.The tracking is performed simultaneously on 2 NanoTraks (set to different frequencies), one at each end of the device being aligned.
Similarly the nudging is performed on 4 axes to centre the circle on both NanoTraks. The alignment is complete when the specified ceiling power is achieved.A zipped folder containing all of the advanced example VIs can be downloaded.
Setting Up the NanoMax StageFor this example, we will set up a NanoMax Stage with two V-groove fiber holders as shown in the drawing below. The mechanical components are listed in the table to the right. The components that need alignment have been left out of the setup, since these will be user dependent. Connect the NanoMax stage to the PC as detailed in the handbook for your device. Item #DescriptionQuantityorNanoMax-HS 3-Axis Stage2NanoStep Actuator6Fixed Platform1Waveguide with Vacuum Holddown a1Tapered V-Groove Fiber Holder a2Standard Fiber Chuck1APT NanoTrak ® Controller2APT Stepper Motor Controller2. may be chosen based on the components that you wish to align. The example given here is appropriate for aligning the tips of two jacketed fibers.6-Axis Optimization GUIThe 6-axis optimization VI GUI is shown to the right and a description of each field is provided in the table underneath.
Instructions for running the GUI are as follows. Accessing an ActiveX Control in MATLABThe APT System Software is implemented as a set of ActiveX controls that are added to the host PC control library when the APT Software is installed. These ActiveX controls typically have a user interface, which can be interacted with using one of several programming environments. The ability to use the controls within multiple programming environments is facilitated through the Microsoft ® Component Object Model (COM), which is a binary-interface standard for implementing objects that can be used in an environment different from the one in which they are created; i.e., it allows objects to be reused without knowledge of their internal implementation.
A Microsoft ActiveX control is a type of in-process COM server that requires a control container, which is an application capable of hosting ActiveX controls. Programming environments and languages such as MATLAB ®, Visual C, and C# can be used to create these control containers, thus allowing users to interact with the ActiveX controls for their own applications.MATLAB ®A MATLAB figure window or a Simulink ® model are types of control containers. In a typical scenario, MATLAB creates ActiveX controls in figure windows, which are manipulated by MATLAB through the controls’ properties, methods, and events.
Property Node Gui Labview Server
In this case, Thorlabs' APT ActiveX control is used as the server and MATLAB is used as the client. Graphical user interface (GUI) components are implemented as APT ActiveX controls.
By creating an ActiveX object, MATLAB can control the hardware using the APT GUI components. For more details on using MATLAB and ActiveX controls with Thorlabs' APT positioners, click.Visual CSimply create a new C project for your application, display the main application dialog box, and select the required APT ActiveX controls from the library displayed.
For more information, click for a video on how to get an APT ActiveX control running within Visual C and for a video on how to program a custom positioning sequence.C#Examples are available that contain sample programs to get started using the APT Server with C#. The use of each ActiveX control is demonstrated in an example project file, which can be opened in Visual Studio or another similar development package.
The examples are split into four sections dependent on the control with which they are associated: Motor, NanoTrack ®, Piezo, and Quad Detector. Examples can be downloaded. Response from Radu at Thorlabs: Thank you for raising this question Arne. It is possible to control Elliptec device from LabVIEW, but not through our APT or Kinesis software packages. You require the Elliptec software for this. Furthermore, because we have yet to release a 32-bit for 64-bit OS version of Elliptec, the bit-version of LabVIEW needs to match the bit-version of your OS.
At the moment we don't have any tutorials on the website for how to use the Elliptec.NET assembly. We are looking to add some in the near future. I will contact you directly in order to provide you with a suitable example VI. Response from Radu at Thorlabs: Unless you already configured LabVIEW to use the 4.0 version of the Common Language Runtime, this behaviour is to be expected. In order to fix this issue, I suggest you follow the steps listed here: adding that configuration file does not fix the problem, you might have compatibility issues because your operating system is too new. According to National Instruments, Windows Vista is the latest OS which is compatible with LabVIEW 8.5.
Response from Radu at Thorlabs: Dear Peggy, I am surprised to hear this given that the MoveAbsoluteRot and the SetAbsMovePos methods are meant to take real numbers as parameters specifying the position. The same applies to relative movements. Perhaps the numeric controls that you use to feed those parameters have integer representations. If that is the case, then right-clicking on them and selecting RepresentationsDouble Precision, should fix this issue. If that is not the case, please contact one of our technical support teams. Hi,I have a Thorlabs stepper motor and the BSC103 controller currently running on the 32bit APT-software.
I am using the sequencer and it works just fine. One question though:-Is there an easy way to import the stage-position from this software directly into LabView without making a VI for the stage (the stage movement history easily be logged in a.txt-file (updates continuously as new positions occur)?Best regards.Runar P. Dahl-HansenPhD CandidateDept. Of Electronics and Telecom.Norwegian University of Science and Technology (NTNU)Trondheim, NorwayMobile: +47 926 54821www.ntnu.no.
Labview Gui Tutorial
Response from Ben at Thorlabs: Thank you for your question here. An ActiveX object will need to be added into your VI in order to make use of the ActiveX methods which will control & enable you to access information from the stage. When you add in the ActiveX object, a GUI is built. It is possible to grey out & re-size this UI & title font within LabVIEW Front Panel however this unfortunately needs to exist. In terms of outputting positions to a text file, this can be done through use of the 'Write to Text File' function from the Programming 'File I/O' palette within the LabVIEW block diagram.
Through use of an iterative loop, you can open a text file, within each iteration write to text file, what is output from the GetPosition method. Some of the following may be of use to you.https://www.thorlabs.com/images/TabImages/GuideToLabVIEWandAPT.pdfhttps://zone.ni.com/reference/en-XX/help/371361H-01/glang/writecharacterstofile/https://forums.ni.com/t5/LabVIEW/how-continuously-write-data-to-a-txt-file/td-p/1846549.