This method stops the execution of a script that is running on a neoVI device.
int _stdcall icsneoScriptStop(void * hObject);
Public Declare Function icsneoScriptStop Lib “icsneo40.dll” (ByVal hObject As IntPtr) As Int32
[DllImport(“icsneo40.dll”)] public static extern Int32 icsneoScriptStop(IntPtr hObject);
Parameters
hObject
[in] Specifies the driver object created by .
Return Values
1 if the function succeeded. 0 if it failed for any reason. must be called to obtain the specific error.
Remarks
If a script is executing on the neoVI calling this method will stop it. The script will still be present on the device and can be started again by The errors that can be generated by this function are:
NEOVI_ERROR_DLL_NEOVI_NO_RESPONSE = 75
NEOVI_ERROR_DLL_SCRIPT_NO_SCRIPT_RUNNING = 226
Examples
int iRetVal;
unsigned long lLastErrNum;
iRetVal = icsneoScriptStop(m_hObject);
if(iRetVal == 0)
{
printf("Failed to Stop the script API Error\n");
}
else
{
printf("Successfully stopped the script\n");
}
Dim iResult As Int32
'//Stop CoreMini
iResult = icsneoScriptStop(m_hObject)
If iResult = 0 Then
lblCMStatus.Text = "CoreMini Failed to Stop"
Else
lblCMStatus.Text = "CoreMini Stopped"
End If