Scanlab RTC6 PCIe Board Installation And Operation Manual page 903

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

Advertisement

// Search for and initialize Ethernet boards
const auto ethSearchIP = eth_convert_string_to_ip(ETH_SEARCH_IP);
const auto ethSearchNetmask = eth_convert_string_to_ip(ETH_SEARCH_NETMASK);
const auto foundEthCards = eth_search_cards(ethSearchIP, ethSearchNetmask);
if (foundEthCards > 0)
{
for (auto searchCard = 1; searchCard <= foundEthCards; searchCard++)
{
array<UINT, 16> cardInfo;
eth_get_card_info_search(searchCard, (UINT)cardInfo.data());
const auto serialNumber = cardInfo[1];
// Param 0 automatically assigns the board to the next free index
const auto card = eth_assign_card(searchCard, 0);
if (card <= 0)
{
cout <<
"eth_assign_card
return false;
}
if (!LoadProgramAndCorrectionFile(card))
{
return false;
}
}
}
// At least one PCIe or Ethernet board available
return (foundCards > 0) || (foundEthCards > 0);
}
int main(int argc, char* argv[])
{
if (!InitializeRTC())
{
return 1;
}
// Use boards for marking etc...
_getch();
return 0;
}
RTC6 boards
Doc. Rev. 1.0.21 en-US
16 Appendix A: The RTC6 Ethernet Board
for SN " << serialNumber << " failed with error code: " << card;
903

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?

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