LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LIN NI XNET session, send 2 frame IDs via one session

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!

 

0 Kudos
Message 1 of 2
(2,305 Views)

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.

0 Kudos
Message 2 of 2
(2,237 Views)