-
Notifications
You must be signed in to change notification settings - Fork 51
NI XNET XNET Session Ethernet Properties
- Ethernet:Filtering:Frame Filter
- Ethernet:Number of Frames Received
- Ethernet:Source MAC Address Auto?
- Ethernet:Logging:Error?
- Ethernet:Logging:Filepath
- Ethernet:Logging:Mode
- Ethernet:Logging:Operation
- Ethernet:Logging:MultipleFiles:EnableMultipleFiles
- Ethernet:Logging:MultipleFiles:FileSizeThreshold
Data Type | Direction | Required? | Default |
---|---|---|---|
string | Read/Write | No | Empty String |
XNET Session
nxPropSession_EnetFrameFilter
Specifies an Ethernet frame filter, using Berkeley packet filtering (BPF) syntax. The standard BPF syntax is extended to support multiple independent filters in the string. Independent filters are separated by a comma.
When applied as a filter for incoming frames, only Ethernet frames that match the filter will be received from the network. This property can also be used with output streams in conjunction with the replay feature.
When used with replay, this property specifies the set of included or excluded frames for Ethernet. Because database frame objects do not exist for Ethernet, the Output Stream List property is not supported and this property is used instead.
This property affects the output stream according to the mode specified for Interface:Output Stream Timing property:
- Immediate: This property is ignored.
- Replay Exclusive: All frames that match this filter will be excluded from the replay. By default (an empty filter string), all frames are replayed.
- Replay Inclusive: Only frames that match this filter will be included in the replay. By default (an empty filter string), no frames are replayed; the user must specify a filter in order for frames to be replayed.
The following Frame Filter, when used with a Frame Input Stream session, will permit the session to receive Ethernet frames only from VLAN 2:
vlan 2
When used with a Frame Output Stream session in Replay Inclusive mode, the following Frame Filter will cause the session to replay Ethernet frames only from VLAN 2 or VLAN 3:
vlan 2,vlan 3
Data Type | Direction | Required? | Default |
---|---|---|---|
bool | Read | No | False |
XNET Session
nxPropSession_EnetLogError
Indicates whether an error has occurred in the logging thread.
To view the error information, use nxStop to stop the session; the error from the logging thread will be merged with the error of the nxStop function.
Data Type | Direction | Required? | Default |
---|---|---|---|
u32 | Read/Write | Yes | Off |
XNET Session
nxPropSession_EnetLogMode
This property enables or disables logging. The value is Off by default; to enable logging, you must write this property to the log. This property uses an enumerated list with the following values:
Enumeration | Value | Description |
---|---|---|
nxEnetLogMode_Off | 0 | Disable logging for the session. |
nxEnetLogMode_Log | 1 | Enable logging for the session. You cannot read data using nxRead when using this mode. If you require access to the data, read from the log file. |
When logging is enabled, you must use the Filepath property to specify a valid path for the log file. |
Data Type | Direction | Required? | Default |
---|---|---|---|
string | Read/Write | Yes | N/A |
XNET Session
nxPropSession_EnetLogFile
This property specifies the path to the file in which you want to log data. The file must use the .pcap extension.
No default file path is provided; you must write this property with a valid file path when you use the Mode property to enable logging. The operation used to create the file is determined by the Operation property.
Data Type | Direction | Required? | Default |
---|---|---|---|
u32 | Read/Write | No | Create or Replace |
XNET Session
nxPropSession_EnetLogOperation
This property specifies the operation used to create the log file. This property uses an enumerated list with the following values:
Enumeration | Value | Description |
---|---|---|
nxEnetLogOperation_CreateOrReplace | 0 | Create a new log file, or replace an existing log file. |
nxEnetLogOperation_Create | 1 | Create a new log file. If the file already exists, XNET returns an error. |
Data Type | Direction | Required? | Default |
---|---|---|---|
bool | Read/Write | No | False |
XNET Session
nxPropSession_EnetLogEnableMultipleFiles
Enables multiple log files to be created for a single session; use the FileSizeThreshold property to determine log file size. If this property value is True, the FileSizeThreshold must be greater than 0. Generated file names include an incrementing index and timestamp of the start of capture.
Data Type | Direction | Required? | Default |
---|---|---|---|
u64 | Read/Write | No | 0 |
XNET Session
nxPropSession_EnetLogFileSizeThreshold
Threshold, specified in bytes, above which a new log file will be created if the value of the EnableMultipleFiles property is True. FileSizeThreshold is ignored if the EnableMultipleFiles property is False.
Note If the value of EnableMultipleFiles is True, the FileSizeThreshold must be greater than 0.
Data Type | Direction | Required? | Default |
---|---|---|---|
u64 | Read Only | No | N/A |
XNET Session
nxPropSession_EnetNumFramesReceived
This is a cumulative count of frames received by the session while started. When logging is off, these frames can be obtained from nxRead. When logging is on, these frames are stored in the log file. When an input session is used for the Ethernet endpoint, the Interface:Ethernet:Endpoint:Receive Filter property determines which frames are received by the session.
This count resets to zero when the session starts. The count is unchanged when the session stops.
Data Type | Direction | Required? | Default |
---|---|---|---|
bool | Read/Write | No | True |
XNET Session
nxPropSession_EnetSourceMacAddressAuto
Configures whether the output session automatically uses the MAC Address property as the source MAC address in transmitted frames.
When this property is true (default), the endpoint ignores the source MAC address in frame data provided to nxWriteFrame. The endpoint automatically replaces the source MAC address in frame data with the MAC Address property for the endpoint, and uses that for the transmitted frame. This convenience allows you to leave the source MAC address uninitialized (e.g. all zero) in frame data.
When this property is false, the endpoint uses the source MAC address in frame data for each transmitted frame. You must provide a valid source MAC address in frame data provided to XNET Write. This can be useful if you are simulating a specific ECU in the network. Each output session retains a distinct value for this property. This property is ignored for input sessions.
Creating and Setting Up a gRPC Server
Session Utilities API Reference
gRPC API Differences From C API
Sharing Driver Sessions Between Clients
C API Docs
NI-DAQmx
- gRPC API Differences From C API
- Task Configuration And Control
- Channel Configuration And Creation
- Timing
- Triggering
- Read Functions
- Write Functions
- Export Hardware Signals
- Scale Configuration
- Internal Buffer Configuration
- Advanced Functions
- System Configuration
- Error Handling
- Buffer Attributes
- Calibration Info Attributes
- Channel Attributes
- Device Attributes
- Export Signal Attributes
- Persisted Channel Attributes
- Persisted Scale Attributes
- Persisted Task Attributes
- Physical Channel Attributes
- Read Attributes
- Scale Attributes
- System Attributes
- Task Attributes
- Timing Attributes
- Trigger Attributes
- Watchdog Attributes
- Write Attributes
NI-DCPOWER
- Setup Functions
- Configure Functions
- Measurement Functions
- Control Functions
- Trigger And Event
- Attribute Functions
- Query Functions
- Calibration Functions
- Utility Functions
- Supported Device
- Source Attributes
- Transient Attributes
- Voltage Attributes
- Current Attributes
- Pulse Voltage Attributes
- Pulse Current Attributes
- Cutoff Attributes
- Measurement Attributes
- Trigger Attributes Functions
- Event Attributes
- Advanced Attributes
- Inherent Ivi Attributes
- Supported Device Attributes
NI-DIGITAL PATTERN DRIVER
- Init And Close Functions
- Session Locking Functions
- Utility Functions
- Error Handling Functions
- Calibration Functions
- Attributes Functions
- Pin Map Functions
- Low Level Functions
- Low Level Action Functions
- Pin Control Functions
- Static IO Functions
- Clock Generator Functions
- Levels And Timing Functions
- TDR Functions
- PPMU Configuration Functions
- DC Voltage Functions
- DC Current Functions
- PPMU Action Functions
- Pattern Configuration Functions
- Pattern Action Functions
- History Ram Functions
- Source Memory Functions
- Capture Memory Functions
- Triggers And Events Functions
- Conditional Jump Trigger Functions
- Sequencer Flag Functions
- Sequencer Register Functions
- Match Fail Combination Functions
- Pattern Results Functions
- Sort Results Functions
- Frequency Measurement Functions
- IVI Inherent Attributes
- Specific Driver Information Attributes, Read Only
- Driver Setup Information Attributes
- Device Attributes
- Pin Control Attributes
- Level Configuration Attributes
- Trigger Configuration Attributes
- PPMU Attributes
- Patterns Attributes
- Pattern Opcode Event Attributes
- Timing Offset Attributes
- Keep Alive Attributes
- Frequency Measurement Attributes
- Clock Generator Attributes
- History RAM
- Synchronization Attributes
- TDR Endpoint Termination Attributes
NI-FGEN
- Setup Functions
- Configuration Functions
- Standard Output Functions
- Arbitrary Waveform Output Functions
- Arbitrary Sequence Output Functions
- Incremental Waveform Write Functions
- Configure Clock Functions
- Trigger And Syncronizations Functions
- 5404 Routing Functions
- Script Output Functions
- Configure Onboard Signal Processing Functions
- Configure Peer To Peer Functions
- Attribute Functions
- Waveform Control Functions
- Error Functions
- Output Attributes
- Arbitrary Waveform Attributes
- Data Transfer Attributes
- Onboard Signal Processing Attributes
- Peer To Peer Attributes
- Standard Function Attributes
- Clock Attributes
- Event Attributes
- Triggering Attributes
- Instrument Specific Attributes
- Inherent IVI Attributes
- 5401 5411 5431
NI-RFmx Bluetooth
- gRPC API Differences From C API
- General Functions
- Configuration Functions
- Set And Get Attribute Functions
- Fetch Results Functions
- Utility Functions
- Build String Functions
- Advanced Functions
- General Attributes
- Trigger Attributes
- Packet Attributes
- Auto Detect Signal Attributes
- Modacc Attributes
- ACP Attributes
- Twenty dB Attributes
- Frequency Range Attributes
- TXP Attributes
- Advanced Attributes
NI-RFmx NR
- gRPC API Differences From C API
- General Functions
- Configuration Functions
- Set And Get Attributes Functions
- Fetch Results Functions
- Utility Functions
- Build String Functions
- Advanced Functions
- General Attributes
- Trigger Attributes
- Signal Detection Attributes
- Component Carrier Attributes
- List Attributes
- Modacc Attributes
- ACP Attributes
- CHP Attributes
- OBW Attributes
- SEM Attributes
- TXP Attributes
- Pvt Attributes
- Advanced Attributes
NI-RFmx LTE
- gRPC API Differences From C API
- General Functions
- Configuration Functions
- Ch Configuration Functions
- NB IoT Configuration Functions
- ModAcc Configuration Functions
- ACP Configuration Functions
- CHP Configuration Functions
- OBW Configuration Functions
- SEM Configuration Functions
- PVT Configuration Functions
- SlotPhase Configuration Functions
- SlotPower Configuration Functions
- Set And Get Attribute Functions
- ModAcc Fetch Functions
- ACP Fetch Functions
- CHP Fetch Functions
- OBW Fetch Functions
- SEM Fetch Functions
- PVT Fetch Functions
- SlotPhase Fetch Functions
- SlotPower Fetch Functions
- Utility Functions
- Build String Functions
- Advanced Functions
- General Attributes
- Trigger Attributes
- Component Carrier Attributes
- ModAcc Attributes
- ACP Attributes
- CHP Attributes
- OBW Attributes
- SEM Attributes
- PVT Attributes
- SlotPhase Attributes
- SlotPower Attributes
- Advanced Attributes
NI-RFmx SpecAn
- gRPC API Differences From C API
- General Functions
- Configuration Functions
- Set And Get Attribute Functions
- Read Functions
- Fetch Functions
- Utility Functions
- Marker Functions
- Build String Functions
- Advanced Functions
- General Attributes
- Trigger Attributes
- ACP Attributes
- Cdf Attributes
- CHP Attributes
- Fcnt Attributes
- Harm Attributes
- OBW Attributes
- SEM Attributes
- Spectrum Attributes
- Spur Attributes
- TXP Attributes
- AMPM Attributes
- Dpd Attributes
- IQ Attributes
- IM Attributes
- NF Attributes
- Phasenoise Attributes
- PAVT Attributes
- Advanced Attributes
NI-RFmx WLAN
- gRPC API Differences From C API
- General Functions
- Configuration Functions
- Set And Get Attribute Functions
- Fetch DSSS ModAcc Functions
- Fetch OFDM ModAcc Functions
- Fetch SEM Functions
- Fetch TXP Functions
- Fetch PowerRamp Functions
- Utility Functions
- Build String Functions
- Advanced Functions
- General Attributes
- Trigger Attributes
- OFDM Attributes
- Auto Detect Signal Attributes
- DSSS ModAcc Attributes
- OFDM ModAcc Attributes
- SEM Attributes
- TXP Attributes
- PowerRamp Attributes
- Advanced Attributes
NI-RFSA
- General Functions
- Configuration Functions
- Acquisition Functions
- Utility Functions
- Calibration Functions
- General Attributes
- Vertical Attributes
- Signal Path Attributes
- Acquisition Attributes
- Acquisition Attributes
- Triggers Attributes
- Events Attributes
- Device Characteristics Attributes
- Peer To Peer Streaming Attributes
- Configuration List Attributes
- Inherent IVI Properties Attributes
- De-embedding Attributes
- Self Calibration Attributes
- Factory Calibration Attributes
- External Alignment Attributes
- Device Specific Attributes
NI-RFSG
- General Functions
- Generation Configuration
- Utility Functions
- Calibration Functions
- Arb Attributes
- Clock Attributes
- Configuration List Attributes
- De-embedding Attributes
- Device Characteristics Attributes
- Device Specific Attributes
- Events Attributes
- External Calibration Attributes
- Inherent IVI Attributes Attributes
- IQ Impairment Attributes
- Load Configurations Attributes
- Modulation Attributes
- Obsolete Attributes
- Peer To Peer Attributes
- RF Attributes
- Self Calibration Attributes
- Triggers Attributes
NI-SCOPE
- Setup Functions
- Configure Functions
- Attribute Functions
- Acquisition Functions
- Measurement Functions
- Calibrate Functions
- Utility Funcitons
- Error Handling Functions
- IVI Compliance Or Obsolete Functions
- Vertical Attributes
- Horizontal Attributes
- Trigger Attributes
- Clocking Attributes
- Synchronization Attributes
- Acquisition Attributes
- Waveform Measurements Attributes
- Onboard Signal Processing Attributes
- Peer To Peer Streaming Attributes
- Device Attributes
- IVI Or Obsolete Attributes
- Instrument Capabilities Attributes
- If Digitizer Attributes
NI-XNET
- gRPC API differences from C APIs
- General Functions
- Cluster Properties
- Database Properties
- Device Properties
- ECU Properties
- Frame Properties
- Interface Properties
- LIN Schedule Entry Properties
- LIN Schedule Properties
- PDU Properties
- Session Ethernet Properties
- Session Frame Properties
- Session Interface Properties
- Session Properties
- Session SAE J1939 Properties
- Signal Properties
- Subframe Properties
- System Properties
- IP-Stack Functions
- Socket Options
- Socket Functions