CANPort.SetAutomaticFrameProcessing Method
- Aktualisiert2023-02-21
- 3 Minute(n) Lesezeit
Sets automatic frame processing on the CANPort. You must set automatic frame processing on the port if you want to configure CRCs and counters on outgoing frames under the port.
Namespace:
NationalInstruments.VeriStand.SystemDefinitionAPIAssembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Public Sub SetAutomaticFrameProcessing ( _ IniFileName As String, _ BinaryFilePath As String, _ GlobalData As UInteger() _ ) |
| C# |
|---|
public void SetAutomaticFrameProcessing( string IniFileName, string BinaryFilePath, uint[] GlobalData ) |
| Visual C++ |
|---|
public: void SetAutomaticFrameProcessing( String^ IniFileName, String^ BinaryFilePath, array<unsigned int>^ GlobalData ) |
Parameters
- IniFileName
- Type: System.String
The name of the binary file to use for automatic frame processing.
- BinaryFilePath
- Type: System.String
The path to the binary file to use for automatic frame processing. The CRC files installed with NI VeriStand are available in the<Application Data>\National Instruments\VeriStand\System Explorer\XNET\AFPdirectory.
- GlobalData
- Type:
System.UInt32
An array that contains the following data:- GlobalData[0] = Polynomial, or the generator polynomial for the CRC. This decimal value is converted to binary form to create the polynomial. For example, if you enter the decimal value 23, the value becomes 10111 in binary form, which translates to the following polynomial: 1x^4 + 0x^3 + 1x^2 + 1x + 1
- GlobalData[1] = Initial CRC, or the initial value to use for the CRC calculation. This decimal value is converted to binary form. The value can be up to 8 bits long for CRC-8 and up to 16 bits long for CRC-16.
- GlobalData[2] = Final XOR, or the value to XOR with the calculated CRC. This decimal value is converted to binary form. The value can be up to 8 bits long for CRC-8 and up to 16 bits long for CRC-16.
- GlobalData[3] = Reflected, if a non-zero number, specifies to reverse the order of the bits in the CRC before writing the data in to the data stream.
Remarks
NI VeriStand supports CRC-8 and CRC-16 length polynomials.