Discussion:
How to use NI CAN VIs to capture a finish of transmitting?
(too old to reply)
Shun
2008-05-12 16:10:08 UTC
Permalink
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!
MXI Master
2008-05-13 15:10:07 UTC
Permalink
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!
Loading...