tommyl9
2008-02-21 13:40:07 UTC
Im trying to get a signal from a car CAN bus. The first few time I run my labview programme it works fine. However, after a while I get the above CAN read error and this description/solution:
"The data returned from this Read matches the data returned
from the previous call to Read. Solutions: If you merely want
the most recent data, ignore this warning; If you are using the
NI-CAN Frame API or NI-DNET, you can Wait for the Read
Avail state prior to calling Read."
The description makes sense as its likely the data returned from this read is equal to that returned from the last read. But I cant just ignore the warning as I'm now getting a readout of zero. I'm using the NI-CAN channel API so the Frame information doesnt help either. Is there any way I can progamme some sort of reset for every time I run? Or is there some other solution?
Many thanks, Tom.
"The data returned from this Read matches the data returned
from the previous call to Read. Solutions: If you merely want
the most recent data, ignore this warning; If you are using the
NI-CAN Frame API or NI-DNET, you can Wait for the Read
Avail state prior to calling Read."
The description makes sense as its likely the data returned from this read is equal to that returned from the last read. But I cant just ignore the warning as I'm now getting a readout of zero. I'm using the NI-CAN channel API so the Frame information doesnt help either. Is there any way I can progamme some sort of reset for every time I run? Or is there some other solution?
Many thanks, Tom.