Scanlab RTC6 PCIe Board Installation And Operation Manual page 270

Real time control of scan systems and lasers rtc6 software package v1.16.0
Table of Contents

Advertisement

Example Code
The example code must be included in a
user program.
//
UINT = uint32_t
//
LONG =
int32_t
// laser parameters
UINT LaserMode = 0;
UINT LaserControl = 0x0;
LONG LaserOnDelay
= (LONG)round(100.0*64.0);
UINT LaserOffDelay = (UINT)round(100.0*64.0);
UINT HalfPeriod
= (UINT)round(5.0 * 32.0);
UINT PulseLength = (UINT)round(0.5 * 64.0);
//
Pixel Output Mode
variables
enum E_PixelModes
{
STANDARD
= 0,
ENHANCED
= 16,
FAST
= 32,
ULTRAFAST
= 64,
STANDARD_MOVE = 256
} Mode;
enum E_PixelPorts
{
NO_OUT_PORT
= 0,
ANALOG_OUT1
= 1,
ANALOG_OUT2
= 2,
DIGITAL_8Bit
= 3,
DIGITAL_16Bit = 4,
PULSE_LENGTH
= 5
} Port;
Port = DIGITAL_8Bit;
Mode = STANDARD;
UINT Channel = Port + Mode;
UINT Number = 1;
UINT PixelArray[17] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
UINT PortOutValue1 = PixelArray[0];
UINT PortOutValue2 = PixelArray[0];
LONG dx = (LONG)round(0.01 * CalibrationFactorXY);
LONG dy = (LONG)round(0.0
LONG PixelLineStartPosX = (LONG)round(0.0 * CalibrationFactorXY);
LONG PixelLineStartPosY = (LONG)round(0.0 * CalibrationFactorXY);
// basic configuration
set_laser_mode(LaserMode);
set_laser_control(LaserControl);
// RTC-List
set_start_list_pos(1, 0);
set_laser_delays(LaserOnDelay, LaserOffDelay);
set_default_pixel_list(0);
UINT PortDefault = Port - 1;
set_port_default_list(PortDefault, PixelArray[0]); // sets default value for specified port
RTC6 boards
Doc. Rev. 1.0.21 en-US
8 Advanced Functions for Scan Head Control and Laser Control
// LaserOnDelay = 100 µs
// LaserOffDelay = 100 µs
// Period = 5 µs, PixelFrequency = 200 kHz
// PulseLength = 0.5 µs
// like RTC5-Mode; up to 400 kHz; 1 pixel per
// up to 800 kHz; 2 pixel per
// up to 1.6 MHz; 4 pixel per
// up to 3.2 MHz; 8 pixel per
// like STANDARD, but with continuous galvanometer scanner movement
//
LASER Connector ANALOG OUT1
//
LASER Connector ANALOG OUT2
// EXTENSION 2 socket connector (8 -bit)
// EXTENSION 1 socket connector (16 -bit)
// not allowed for mode = 0 or mode = 256
// pixel output port number
//
Pixel Output Mode
// pixel channel
//
set_pixel
repetition number
* CalibrationFactorXY);
// sets pixel default PulseLength
// CAUTION: port numbers differ between
//
set_pixel
set_pixel
command; 1 value of 32 bit per pixel
set_pixel
command; 1 value of 16 bit per pixel
set_pixel
command; 1 value of 8 bit per pixel
// 10 um spot distance in x direction
//
0 um spot distance in y direction
set_port_default/set_port_default_list
set_pixel_line
command; 2 values of 32 bit per pixel
// port output values
and
270

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RTC6 PCIe Board and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Scanlab RTC6 PCIe Board

This manual is also suitable for:

Rtc6 ethernet board

Table of Contents

Save PDF