GetRADGalaxySettings Method - neoVI API
int _stdcall icsneoGetRADGalaxySettings(void * hObject, SRADGalaxySettings *pSettings, int iNumBytes);Public Declare Function icsneoGetRADGalaxySettings Lib “icsneo40.dll” (ByVal hObject As IntPtr, ByRef pSettings As SRADGalaxySettings, ByVal iNumBytes As Int32) As Int32[DllImport(“icsneo40.dll”)] public static extern Int32 icsneoGetRADGalaxySettings(IntPtr hObject, ref SRADGalaxySettings pSettings, Int32 iNumBytes);Examples
SRADGalaxySettings RadGalaxyReadSettings;
int iNumberOfBytes;
int iResult;
//Get the settings
iNumberOfBytes=sizeof(RadGalaxyReadSettings );
iResult = icsneoGetRADGalaxySettings(m_hObject, &RadGalaxyReadSettings , iNumberOfBytes);
if(iResult == 0)
{
MessageBox::Show("Problem reading configuration");
return;
}//Declared at form level and previously open with a call to OpenNeoDevice
IntPtr m_hObject; //handle for device,
SRADGalaxySettings RadGalaxyReadSettings = new SRADGalaxySettings();
int iNumberOfBytes;
int iResult;
//Get the settings
iNumberOfBytes = System.Runtime.InteropServices.Marshal.SizeOf(RadGalaxyReadSettings);
iResult = icsNeoDll.icsneoGetRADGalaxySettings(m_hObject,ref RadGalaxyReadSettings , iNumberOfBytes);
if (iResult == 0)
{
MessageBox.Show("Problem reading configuration");
return;
}Last updated