04-27-2009 12:36 PM
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?
04-28-2009 05:28 PM
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