06-22-2021 03:21 AM
Hello,
I am working on creating a LIN communication interface via LabVIEW to send position commands to the motor
.
I wanted to send a command frame and diagnostic frame using one NI-XNET session ( Frame Out Queued). However, i cannot change the frame IDs of the Master without closing the previous session. I tried using Frame Out Stream, but it doesn't work.
Are there any solutions to send 2 different frames using one session ?
The goal is to send a command position to the motor and in this position to make the diagnostic test by sending a Diagnostic frame, so the motor has to stay in this position (the command frame has to be active as well as the diagnostic frame). I also changed a Schedule Table in the LDF in order to send a diagnostic frame after a command frame with some delays.
You can find here attached my LabVIEW vi.
Thank you in advance for any help!
06-22-2021 09:43 AM
There are a couple of options depending on the rest of your system. You can create multiple sessions, one for each ID. But another solution might be to use the Stream session type not queued.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord