ScriptReadISO15765 _2_TxMessage Method - intrepidcs API
C/C++ declare - VB declare - VB.NET declare - C# declare - Parameters - Return Values - Remarks - C/C++ example - VB example - VB.NET example - C# example

This method is used to read the parameters for an ISO15765-2 long transmit message defined within a script on a neoVI device.

C/C++ Declare

int _stdcall icsneoScriptReadISO15765_2_TxMessage(int hObject unsigned int iIndex,  stCM_ISO157652_TxMessage *pTxMessage);

Visual Basic Declare

Public Declare Function icsneoScriptReadISO15765_2_TxMessage Lib "icsneo40.dll" _
    (ByRef hObject As Long, ByVal iIndex As Long, ByRef pTxMessage As stCM_ISO157652_TxMessage) As Long


Visual Basic .NET Declare

Public Declare Function icsneoScriptReadISO15765_2_TxMessage Lib "icsneo40.dll" _
    (ByRef hObject As Integer, ByVal iIndex As Integer, ByRef pTxMessage As stCM_ISO157652_TxMessage) As Integer

C# Declare

[DllImport("icsneo40.dll")]
public static extern int icsneoScriptReadISO15765_2_TxMessage(int hObject unsigned int iIndex,  ref stCM_ISO157652_TxMessage *pTxMessage);

Parameters

hObject
   
[in] Specifies the driver object created by OpenNeoDevice.

iIndex
   
[in] The index value of the transmit message to read

 pTxMessage
   
[out] An instance of an allocated stCM_ISO157652_TxMessageStructure structure. The structure will be loaded with the requested transmit message.

Return Values

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_MSG_INDEX = 224

Remarks

The script containing the specified transmit message must have been successfully downloaded to the neoVI using LoadScript. The script must also have been started using ScriptStart. This function will fail if ScriptStop has been called. The valid index values for transmit messages within a script can be found in the cmvspy.vs3cmb.h file that is produced by Vehicle Spy. Please see Vehicle Spy documentation.


Examples

Visual Basic Example

 

C/C++ Example:



C# Example:


Visual Basic .NET Example:

 

intrepidcs API Documentation - (C) Copyright 2000-2012 Intrepid Control Systems, Inc.  (www.intrepidcs.com)

Last Updated : Monday, November 17, 2008