ScriptWriteAppSignal Method - intrepidcs API
C/C++ declare -
VB.NET declare
- C# declare - Parameters - Return
Values - Remarks - C/C++ example
- VB.NET
example - C# example
This method is used to set the value of an application signal in a script running on a neoVI device.
C/C++ Declare
int
_stdcall
icsneoScriptWriteAppSignal(void * hObject,
unsigned int iIndex,
double dValue);
Visual Basic .NET Declare
Public
Declare
Function
icsneoScriptWriteAppSignal
Lib
"icsneo40.dll" (ByVal
hObject As IntPtr,
ByVal iIndex
As UInt32,
ByRef dValue
As
Double)
As
Int32
C# Declare
[DllImport("icsneo40.dll")]
public
static
extern Int32
icsneoScriptWriteAppSignal
(IntPtr hObject, UInt32 iIndex,
double
dValue);
hObject
[in] Specifies the driver object created by OpenNeoDevice.
iIndex
[in] The index value of the application
signal.
dValue
[in]
The new value of the application signal.
1 if the function succeeded. 0 if it failed for any reason. GetLastAPIError must be called to obtain the specific error. The errors that can be generated by this function are:
NEOVI_ERROR_DLL_NEOVI_NO_RESPONSE
= 75
NEOVI_ERROR_DLL_SCRIPT_INVALID_APPSIG_INDEX = 225
The script containing the specified application signal must have been successfully downloaded to the neoVI using ScriptLoad. The script must also have been started using ScriptStart. This function will fail if ScriptStop has been called. The valid index values for application signals within a script can be found in the cmvspy.vs3cmb.h file that is produced by Vehicle Spy. Please see Vehicle Spy documentation.
Examples
int iRetVal;IntrepidCS API Documentation - (C) Copyright 2000-2022 Intrepid Control Systems, Inc. (www.intrepidcs.com) |
Last Updated : Monday, April 27, 2020