11-07-2025 08:08 AM
Hello,
I’m currently working with NI-XNET (2024 Q3) LIN communication to exchange data with a product via NI USB-8506.
I developed a LabVIEW 2024 Q1 (32-bit) VI that performs the following steps:
Creates the LIN session once at startup
For each batch:
Starts the session
Sends/receives LIN frames
Stops the session once the batch is finished
After a few cycles (batches), I encounter the following error:
Error -1074384502 (0xBFF63012): The maximum number of frames has been exceeded.
If I modify the code to create a new session for each batch, I get a different error after several runs, and the only way to recover is to restart the computer.
I would appreciate your advice on the following points:
Should the LIN session be created and destroyed each time, or is it better to reuse the same session across batches?
How can I properly clear or flush the XNET buffer to avoid the “maximum number of frames” error?
Is there any recommended method to reset the LIN interface without restarting the PC?
Thank you in advance for your help and suggestions.
11-09-2025 08:57 AM
Could you show your code? Because in general, you are right, you usually open one or a few more sessions once, then do all the read/write, and close the sessions at the end of your program.
Having to restart the computer sounds strange. I think disconnecting the USB LIN interface, or just restaring labview should be sufficient as last resort.