EasyManua.ls Logo

Dalsa X64 Xcelera-CL PX4 - Page 116

Default Icon
127 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
114 Appendix: X-I/O Module Option X64 Xcelera-CL PX4 User's Manual
status = m_pGio[iDevice]->GetCapability(CORGIO_CAP_DIR_INPUT,&capInput);
[ . . . ]
// Constructor used for I/O Output module dialog.
if (capOutput)
{
m_pDlgOutput[iDevice] = new CGioOutputDlg(this, iDevice, m_pGio[iDevice]);
}
[ . . . ]
// Constructor used for I/O Input module dialog.
if (capInput)
{
m_pDlgInput[iDevice] = new CGioInputDlg(this, iDevice, m_pGio[iDevice]);
}
} //end for
} // end if
[ . . . ]
}
Function CreateObjects()
BOOL CreateObjects()
{
CWaitCursor wait;
// Loop for all I/O resources
for (UINT32 iDevice = 0; (iDevice < MAX_GIO_DEVICE) && (iDevice < m_gioCount);
iDevice++)
{
// The SapLocation object specifying the server where the I/O resource is located
SapLocation location(m_ServerIndex, iDevice);
// The SapGio constructor is called for each resource found.
m_pGio[iDevice] = new SapGio(location);
// Creates all the low-level Sapera resources needed by the I/O object
if (m_pGio[iDevice] && !*m_pGio[iDevice] && !m_pGio[iDevice]->Create())
{
DestroyObjects();
return FALSE;
}
}
return TRUE;
}

Table of Contents

Related product manuals