Scanlab RTC6 PCIe Board Installation And Operation Manual page 101

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

Advertisement

// Initializing the RTC6 PCIe Board:
// - Selecting the board number 1 as the active board in this user program.
// - If desired: Selecting the
//
(Default:
RTC6 Standard Mode
// - Optional: stopping any list running on RTC6 PCIe Board number 1 (if it has been used
//
previously by another user program, a list might still be running).
//
automatically itself. Otherwise,
//
load_program_file.
// - Calling
load_program_file
//
(here also a program code should be included to catch possible errors – for example, file or
//
system errors – during initialization, see
// - Clearing all previous error codes
// - (
stop_execution
might have created an
// - Configuring the
RTC6 List
(void) select_rtc( 1 );
set_rtc4_mode();
// Optional: stop_execution();
ErrorCode = load_program_file( 0 ); //
if ( ErrorCode )
{
printf( "Program file loading error: %d\n", ErrorCode );
free_rtc6_dll();
return;
}
reset_error( -1 );
config_list( 4000, 4000 );
// Following the above initialization code you can include the program code defining
// the laser scan process. An example code is in
// End of main program
terminateDLL();
return;
}
void terminateDLL()
{
printf( "- Press any key to shut down \n" );
while( !kbhit() );
(void) getch();
printf( "\n" );
// Close the
RTC6 DLL
free_rtc6_dll();
// only for explicitly linking:
// RTC6close();
}
RTC6 boards
Doc. Rev. 1.0.21 en-US
6 Developing RTC6-User Programs
RTC4 Compatibility Mode
)
load_correction_file
for initializing the board, loading the program file, etc.
Chapter 6.8.3 "Example Code (C)", page 133
RTC6_TIMEOUT
Memory. Default: 4,194,304 for list 1 and list 2 each).
Path
= 0: path of current working directory
Chapter 7.1.4 "Example Code (C)", page 142
as operation mode
load_program_file
cannot be executed before
or
RTC6_BUSY
error).
does this
).
.
101

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?

This manual is also suitable for:

Rtc6 ethernet board

Table of Contents

Save PDF