XNET Write (State LIN Diagnostic Schedule Change).vi
- Updated2023-11-11
- 4 minute(s) read
XNET Write (State LIN Diagnostic Schedule Change).vi
Purpose
Write a request for the LIN interface to change the diagnostic schedule. You can use this XNET Write VI with any input or output session for LIN.
Format
Inputs
![]() |
session in is the session to use for the diagnostic schedule change. This session is selected from the LabVIEW project or returned from the XNET Create Session VI. The session must use a LIN interface. | ||||||||
![]() | diagnostic schedule is a ring (enumerated list) with the following values:
This specifies which diagnostic schedule the master executes:
| ||||||||
![]() |
error in is the error cluster input (refer to Error Handling). |
Outputs
![]() |
session out is the same as session in, provided for use with subsequent VIs. |
![]() |
error out is the error cluster output (refer to Error Handling). |
Description
You can use the XNET Write (State LIN Diagnostic Schedule Change) VI with any XNET session mode, as long as the session interface is LIN. Because the schedule change applies to the LIN interface, it can apply to multiple sessions.
According to the LIN protocol, only the master executes schedules, not slaves. If the XNET Session Interface:LIN:Master? property is false (slave), this write function implicitly sets that property to true (master). If the interface currently is running as a slave, this write returns an error, because it cannot change to master while running.
Use the XNET Write (State LIN Diagnostic Schedule Change) VI to transmit master request messages and query for slave response messages after node configuration has been performed. Node configuration should be handled using the XNET Write (State LIN Schedule Change) VI. Wire the node configuration schedule defined for the LIN cluster into that VI so that it is the first schedule executed for the LIN. Refer to the description for the XNET Write (State LIN Schedule Change) VI for more information about using it to perform node configuration.