12-16-2008 06:02 AM
ALL,
I saw a kind of use to CAN init.vi where The mode = "output recent" and the sample rate = -1. I check the NI CAN help document, it seems that the sample rate must be large than 0 when the mode = output recent. So,here,why the sample rate can be -1? What does it mean?
Thanks!
Lai
12-16-2008 09:47 AM
-1 is not a valid value for the sample rate and doeesn't serve any purpose. It could be that it was possible in older driver versions to use the -1 to disable sampling. Now you can do that by entering the zero (0) for sample rate.
DirkW
12-18-2008 11:17 PM
12-19-2008 08:36 AM
If you use -1 for the sample rate, you should get an error indicating a wrong value for this parameter. There is no such feature to read the dbc file sample rate for your channel.
If you use a sample rate of zero it doesn't sample at all. Instead it reads and writes whenever the function becomes executed within your loop.
DirkW