Solution
To make sure that the frame is stopped, you can use XNET Read.vi and set the polymorphic selector to State > Session > Info and check that the "session info state" output is "stopped" when using LabVIEW.

In NI-XNET C API, you an use nxReadState and set StateID to nxState_SessionInfo to read out StateValue.
This can be used even if you opened multiple sessions on the same CAN port since this result can be returned by each session. If you like to confirm that all sessions on a CAN port is stopped, you can use XNET Read.vi and set the polymorpohic selector to State > CAN > Comm State. If "communication state" in the cluster output from CAN comm terminal is set to "Init" then all sessions using this CAN port is stopped.
