AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources User Guide
- June 9, 2024
- AeroDioDE
Table of Contents
Application Note for LabVIEW
Programming
Preface
This document will help you to start a project with LabVIEW in order to drive
our product like:
– CCS/std
– CCSI
– Central / Central I
– PDM HPP
– Tombak
Instructions
2.1. Preliminary verifications
Please verify the correct functioning of the product before to start a LabVIEW project.
2.2. Download VIs and unzip files
The first step is to unzip the files and place them in this specific folder: …\National Instruments\LabVIEW 2017\user.lib\PDM.
2.3. Create a LabVIEW project
-
Open LabVIEW and Select “create a project”
-
Select “Blank project”
-
Add our library
-
Save your project
-
Create a new VI
-
Save your VI and rename it
2.4. Create your first LabVIEW program
-
Open the new VI
-
Add the Open_Communication.vi and Open_Communication.vi, these are the first VIs to add in order to drive our product
Or you can directly add the VI to the project.
-
You can press CTRL-H to open a help window
Thanks to this window we can know the input ant output signals. In this Open_Communication.vi, there are 2 input signals (portName / input error) and 3 output signals (portPointer / function return / output signal). -
Add controls and indicators
-
Check the portName (USB serial Port) with the device manager.
In this case, the portName is COM41. So, we must write “COM41” in the input signal portName.
-
Run the VI with the
If there is no problem, the “function return” signal returns 0. The portPointer is generated by the Open_Communication.vi -
Add different VIs from our library to drive the product
This is an example of using our LabVIEW function, we just set and read the temperature. Don’t forget to use the Apply_Request.vi after Set_XXX.vi (for example: set_temperature.vi or set_pulse_width.vi) and the Close_Communication.vi at the end of your program !
Errors
RS232 error codes :
0 (SP_OK) : Operation completed successfully.
-1 (SP_ERR_ARG) : Invalid arguments were passed to the function.
-2 (SP_ERR_FAIL) : A system error occurred while executing the operation.
-3 (SP_ERR_MEM) : A memory allocation failed while executing the operation.
-4 (SP_ERR_SUPP) : The requested operation is not supported by this system or device.
Laser error codes :
0 : No error
-30001 : Timeout Error
-30002 : Unknown Command
-30004 : Request Error
-30008 : Length error
-30016 : Checksum Error
Communication issues
If communication problems appear check the following points :
-
With the device manager check that you enter the correct Com Port
-
Please check if the GUI is not connected to the product
-
Be sure to put the close_com_vi at the end of your program. Otherwise LabView will keep the Port COM open and the new process will not be able to connect to the same Port Com. In this case, disconnect and reconnect the USB/JACK cable. If the problem persists, remember to check that the drivers are up to date on the official FTDI website: https://ftdichip.com/drivers/vcp-drivers/
-
If the program crashes during the execution, the Port COM is still open. So disconnect and reconnect the USB/JACK cable
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>