Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use NI CAN VIs to capture a finish of transmitting?

I have problem figuring out a way to detect "when" the provided VI (ncWriteNet) has finished the transmitting. I have tried modifying the existing examples (such as LIN Master Send Header Frame and Receive.vi and LIN Master Send Full Frame and Receive.vi) to send different responses. Without being able to detect whether the previous message frame has been sent out successfully, I can't update my to-send buffer(like increment the index on array) for the next response to be sent.

Well, I will be appreciated if someone can help me out. I am using NI USB-8476 and -8476S LIN Modules.
Thanks!
0 Kudos
Message 1 of 2
(6,176 Views)
Shun,

I would recommend looking at "ncWaitForState.vi" on the CAN section of the function palette under FrameAPI»Advanced.  You can wait for a state such as "Write Success", this and some other states you can wait for are outlined in the detailed help for this function. Good luck!
-Marshall R
0 Kudos
Message 2 of 2
(6,164 Views)