ksanger
16-02-2016, 11:55
Hi;
My question is that in 2016 do we still need to wait between sequential CAN Bus Commands? In the past if we wrote to a CANJaguar we needed to wait before issuing another command too fast. I've read that the devices are being queried and updated every 20 msec. But I have not found any information regarding a need to wait between CAN commands for the last command to finish. For instance if we read currents from the Power Distribution Panel do we need to wait between reading the first and the second channels? Would we have issues reading four channels in a row? Or do the new libraries take care of that for us?
Should we assume that a CAN command that returns a value will not continue until the value is read? And that a command that sets a value without returning a variable may take a while to actually execute? Therefor we do not need to wait after asking for a reading, but may need to wait after sending a command? Or do the libraries buffer all CAN commands?
We are programming in Java.
Thanks
My question is that in 2016 do we still need to wait between sequential CAN Bus Commands? In the past if we wrote to a CANJaguar we needed to wait before issuing another command too fast. I've read that the devices are being queried and updated every 20 msec. But I have not found any information regarding a need to wait between CAN commands for the last command to finish. For instance if we read currents from the Power Distribution Panel do we need to wait between reading the first and the second channels? Would we have issues reading four channels in a row? Or do the new libraries take care of that for us?
Should we assume that a CAN command that returns a value will not continue until the value is read? And that a command that sets a value without returning a variable may take a while to actually execute? Therefor we do not need to wait after asking for a reading, but may need to wait after sending a command? Or do the libraries buffer all CAN commands?
We are programming in Java.
Thanks