Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Command.Initialize & CommandType.DirectReply #26

Open
njsokalski opened this issue Mar 16, 2017 · 0 comments
Open

Command.Initialize & CommandType.DirectReply #26

njsokalski opened this issue Mar 16, 2017 · 0 comments

Comments

@njsokalski
Copy link

I have been looking for a good way to determine when the last of my BatchCommand(s) have been executed (knowing when the motors have stopped). I thought about finding a way to append a command to the BatchCommand that sends some sort of indicator when it is reached. I looked at the BatchCommand methods, and some of them (such as GetDeviceName, GetFirmwareVersion, etc.) looked like they returned a value (even though they were a Sub or returned void, rather than being a Function or returning some kind of value). I figured if I added one of these to my BatchCommand I could wait for it to send/return the value, but I don't know how to do that. How do I get the value returned from these commands?
NOTE: The reason (in this specific case, all there may be other scenarios) I want to know when the BatchCommand(s) finish is because I want to send more commands than the Brick can remember (I could end up sending anything from 5 or 6 to 10,000 or so), so I need to send them only a few at a time (a few meaning whatever the max is).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant