Scanlab RTC6 PCIe Board Installation And Operation Manual page 134

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

Advertisement

else
{
printf( "Initializing the DLL: Error %d detected\n", ErrorCode );
free_rtc6_dll();
return;
}
}
else
{
// Reading the internal board number for the desired RTC6 board
const UINT SerialNumberOfDesiredBoard ( 12345 );
const UINT RTC6CountCards = rtc6_count_cards();
UINT InternalNumberOfDesiredBoard ( 0 );
for ( UINT i = 1; i <= RTC6CountCards; i++ )
{
if ( n_get_serial_number( i ) == SerialNumberOfDesiredBoard )
{
InternalNumberOfDesiredBoard = i;
}
}
if ( InternalNumberOfDesiredBoard == 0 )
{
printf( "RTC6 board with serial number %d not detected.\n", SerialNumberOfDesiredBoard);
free_rtc6_dll();
return;
}
// Selecting the desired RTC6 board as the active RTC6 board for this user program
if ( InternalNumberOfDesiredBoard != select_rtc( InternalNumberOfDesiredBoard ) )
{
// Errors which occurred during execution of
ErrorCode = n_get_last_error( InternalNumberOfDesiredBoard );
if ( ErrorCode & 256 ) //
{
if ( ErrorCode = n_ load_program_file( InternalNumberOfDesiredBoard, 0 ) )
{
printf(
"n_load_program_file
}
}
else
{
printf( "No access to RTC6 board with serial number %d\n", SerialNumberOfDesiredBoard );
free_rtc6_dll();
return;
}
if ( ErrorCode )
{
printf( "No access to RTC6 board with serial number %d\n", SerialNumberOfDesiredBoard );
free_rtc6_dll();
return;
}
else
{
// if
n_load_program_file
(void) select_rtc( InternalNumberOfDesiredBoard );
}
}
}
RTC6 boards
Doc. Rev. 1.0.21 en-US
6 Developing RTC6-User Programs
select_rtc
RTC6_VERSION_MISMATCH
returned error code %d\n", ErrorCode );
has been successful, select the desired board
134

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