Is the value returned from MotionController::SampleCounterGet()really a signed integer?

Here’s the method signature

virtual int32 SampleCounterGet() = 0;

Suppose RMP ran until the sample counter was 0x7FFFFFFF. After the next time slice, would the function return 0x8000000 (a negative number with a large magnitude) or would it return 0 (since a negative sample count is kind of nonsense)?

(I thought asking the question would be quicker than waiting 24.85 days to see what would happen.)

Yep. It is a signed 32 bit integer. The only operation done on the number is a simple ++ every sample. You can always interpret the value however you like.

Yes. That is what we would expect. If you’d like to experiment, use RapidSetup->Tools->Vm3. Hit F4. Sample Counter is the 11th item in the list. Type 8000000 and hit enter.