SetVCANRFSettings Method - neoVI API
int _stdcall icsneoSetVCANRFSettings(void * hObject, SVCANRFSettings *pSettings, int iNumBytes, int bSaveToEEPROM);Public Declare Function icsneoSetVCANRFSettings Lib “icsneo40.dll” (ByVal hObject As IntPtr, ByRef pSettings As SVCANRFSettings, ByVal iNumBytes As Int32, ByVal bSaveToEEPROM As Int32) As Int32[DllImport(“icsneo40.dll”)] public static extern Int32 icsneoSetVCANRFSettings(IntPtr hObject, ref SVCANRFSettings pSettings, Int32 iNumBytes, Int32 bSaveToEEPROM);Examples
SVCANRFSettings VCANReadSettings;
int iNumberOfBytes;
int iResult;
//################################
//VCANReadSettings struct is read
//and changed as needed before
//Setting the new values
//################################
iNumberOfBytes=sizeof(VCANReadSettings );
iResult = icsneoSetVCANRFSettings(m_hObject, &VCANReadSettings , iNumberOfBytes, 1);
if(iResult == 0)
{
MessageBox::Show("Problem Sending VCAN configuration");
return;
}SVCANRFSettings VCANReadSettings = new VCANReadSettings();
int iNumberOfBytes;
int iResult;
//################################
//VCANReadSettings struct is read
//and changed as needed before
//Setting the new values
//################################
iNumberOfBytes = System.Runtime.InteropServices.Marshal.SizeOf(VCANReadSettings);
iResult = icsNeoDll.icsneoSetVCANRFSettings(m_hObject, ref VCANReadSettings , iNumberOfBytes, 1);
if(iResult == 0)
{
MessageBox.Show("Problem Sending VCAN configuration");
return;
}Last updated