12-03-2014 07:05 AM
Hello,
I start a UDS diagnostic session on LIN using XNET and the Automotive Diagnostic Command Set. Everything works fine, but parallel to this I want to trace and log the bus activities. If I start a Frame Input Stream session to trace the traffic BEFORE starting the diagnostics, I get the following error message:
"Error -1074384610 occurred at Open Diagnostic On LIN"
"You attempted to perform an action on a session or interface that is started, and the action that requires the session/interface to be stopped. Solution: Stop the object before performing this action."
But if I first start the diagnostics, and start the Frame Input Stream session afterwards, it is working without error. I don't understand, why is the interface "locked" in one way, and free for the other way???
Is there any possibility to keep run the trace VI continuously, and in between start- and stop diagnostics without error?
LV2014 & ADCS 14
Solved! Go to Solution.
02-05-2015 03:31 AM
Hello,
I saw that nothing happend here.
Is the issue solved in the meantime?
02-10-2015 03:50 AM
Hi,
actually the problem is not solved. I want to keep a kind of "LIN monitor" open, to see the traffinc on the LIN. Then I want to open diagnostics, perform some tests, then close diagnostics. The LIN monitor must keep running, even when I close and open a diagnostic session again.
At launching the LIN Monitor, I create a Frame In Stream session, and I continuously read data from the session.
1. Open Diag --> Launch LIN Monitor --> works
2. LIN Monitor is running --> Close Diag (works) --> Open Diag not working, I get the above mentioned error at opening diag.
Any idea or workaroud?
02-11-2015 10:12 AM
Hi,
have a look at these documents:
How Can I Passively Monitor a CAN Network Using NI-CAN Devices? - National Instruments
http://digital.ni.com/public.nsf/allkb/07EC80E3060B2CB586256DD0005ABA63?OpenDocument
How Can I Monitor the NI-CAN Bus? - National Instruments
http://digital.ni.com/public.nsf/websearch/567C4038A2CD279486256FCC00565D07?OpenDocument
Are these possibilities for you?
02-12-2015 01:07 AM
Hi Richard,
thank you for the links. Unfortunately I can't use them, because I am using NI-XNET.
I have tried the shipped XNET Bus Monitor from NI. If I start that, I can't open diagnostics. I suppose this bus monitor works on the same manner as mine.
Madottati
02-12-2015 04:39 AM
Hi,
please change the "Run Mode" of the BusMonitor to Subordinate and try it again.
The "Run Mode" setting is in the "Interface and Database Settings" dialog.
Hope this helps
02-12-2015 05:15 AM
Hey Gucky,
this is exactly what I need! Could you tell me how to set the Mode=Subordinate property, if I write my own LIN monitor? I can't figure it out.
Madottati
02-12-2015 05:47 AM
Hi Madottati,
you can create a XNET session using "XNET Create Session (Frame Input Session).vi with the cluster option :subordinate:
Find more information in the "XNET Hardware and Software Manual.pdf" on page 4-62.