Discussion:
Disconnecting from RT target after sometimes downloading the NI-CAN program
(too old to reply)
bono02
2008-02-17 14:10:04 UTC
Permalink
Thanks pBerg for your reply, I have been wondering how to do:        "a) Configure the Net Interface Object mask and
comparators to filter out some frames, which will reduce the number of
messages entering the queue, and/or "Since I am using can open library, and I can not find vi for this.and for "(b) Reduce the overall traffic on the bus by sending less messages or decreasing the rate at which you send messages." I have already put every 5 ms delay to the while loop, but somehow the error is still happening if I run the program more than 5 minutes.Can you help me with this problem?
DirkW
2008-02-18 15:40:05 UTC
Permalink
Unfortunately (a) doesn't work since this filter setting only works for the NI-CAN driver directly. The CANopen library cannot set these filter attributes.  Thus only option (b) makes sense here. My guess is that the "stop remote node" command still comes to late, thus you are facing this overflow issue, as pBerg mentioned earlier.
Try to stop the remote node before you stop or close anything else.
You could use the NI-SPY, which comes with the NI-CAN driver to log your api calls, thus you can see when the error exactly happens.
DirkW

Loading...