LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LIN master request - send the request, then monitor the bus continously

Dear All,

 

I'm not a LIN expert, however, read a lot about. Please help me to solve my problem. I have a device which can be triggered to calibrate. This can be done by a MasterRequest with the eight-byte-data shown in the attached front panel. If you see the block diagram, the yellow while loop runs twice (why just twice?), then the calibration starts perfectly. Immediatelly, the devices sends the acknowledge shown in the front panel (7F 01 F4 ...) So far, this is OK. But this acknowledge means only that it understands the signal, the calibration has been triggered succesfully.

 

The problem starts here: while the device is performing its job (it takes about a minute), how can I "ask" it for a status change? I assume, that it reports somehow to the LIN bus if the calibration ended - otherwise, how should I know it? If I close the session, before the calibration process ends, the device stops in between, no matter if finished or not, so this musn't be happen. So in theory, I guess I had to send in a loop a master request with the information: "dear slave, if you have any status change or anything to report, eg calibration is finished, please let me know"

 

If my assmuption that it reports if the calibration finished is not true (the device's doc doesn't tells about it any info), how can I close the session to start a new on on the same device (e.g. lin2) without killing the bus (as I have read, the close session implicitly stops the bus).

 

Until I don't have any information that the slave have finished the job, it means that I don't have any signal to stop the loops, and cannot perform the next action on the device.

 

I would be really thankful if you can push me on from this situation.

 

Thank you!

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