AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources User Guide

June 9, 2024
AeroDioDE

AeroDioDE logo

Application Note for LabVIEW
Programming

AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser
Sources

AeroDioDE logo 2

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.

AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
1

2.3. Create a LabVIEW project

  1. Open LabVIEW and Select “create a project”
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
2

  2. Select “Blank project”
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
3

  3. Add our library
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
4AeroDioDE RS232 Pulsed Laser
Diode Drivers and Laser Sources - fig 5AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser
Sources - fig 6

  4. Save your project

  5. Create a new VI
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
7

  6. Save your VI and rename it

AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
8

2.4. Create your first LabVIEW program

  1. Open the new VI
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
9

  2. Add the Open_Communication.vi and Open_Communication.vi, these are the first VIs to add in order to drive our product
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
10Or you can directly add the VI to the project.
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
11

  3. You can press CTRL-H to open a help window
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
12Thanks 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).

  4.  Add controls and indicators
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
13 AeroDioDE RS232 Pulsed
Laser Diode Drivers and Laser Sources - fig 14

  5. Check the portName (USB serial Port) with the device manager.
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
15In this case, the portName is COM41. So, we must write “COM41” in the input signal portName.
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
16

  6. Run the VI with the
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
17If there is no problem, the “function return” signal returns 0. The portPointer is generated by the Open_Communication.vi

  7. 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 !

AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
18AeroDioDE RS232 Pulsed
Laser Diode Drivers and Laser Sources - fig 19

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 :

  1. With the device manager check that you enter the correct Com Port
    AeroDioDE RS232 Pulsed Laser Diode Drivers and Laser Sources - fig
20

  2. Please check if the GUI is not connected to the product

  3. 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/

  4. If the program crashes during the execution, the Port COM is still open. So disconnect and reconnect the USB/JACK cable

AeroDioDE logo

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals