Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to enter Enhanced Checksum Mode with VB6

I am using the NI USB-8476 LIN interface and I need to select the enhanced checksum mode of operation.  I am using Visual BASIC 6.0.  I tried entering the following lines of code:

 

TheChecksumType = 1
Status = ncSetAttribute(LINTxRx, NC_ATTR_LIN_CHECKSUM_TYPE, 4, TheChecksumType)
If (CheckStatus(Status, "ncSetAttribute" & Interface) = True) Then GoTo Error

 

I got the following error message:

NI-CAN:  (Hex 0xBFF62005) The value of one or more properties (attributes) is invalid. This error occurs for Set (one value bad) or Initialize/Config (one or more values bad).  Solution: Consult the Programmer Reference to verify the values of each property.

 

I've already downloaded and installed the NI-CAN 2.61 driver.  Any suggestions?

0 Kudos
Message 1 of 2
(6,527 Views)

Jim,

 

Just to close all loops, I believe that you have this working after changing the variable to a long integer.  Am I correct?  If not and I am confusing issues, please let me know and I'll see what I can do to help out.

 

Eric K

Applications Engineering

National Instruments

0 Kudos
Message 2 of 2
(6,509 Views)