Program motors individually AND as part of a group

I’m sorry if this has been asked before but I can’t find it. Wondering if motors can be programmed to operate individually or as part of a group using Vexcode?
To illustrate what I mean - take the IKE robot, one of the original designs supplied on the VEX site. It can bend at the waist and also open and close its arms - one motor for each of those functions. For the task we are doing it would be useful to be able to do those things separately at times and also together at times - and hopefully at different speeds. Can this be done? We are using VEXcode blocks.

A motor cannot be put into a Motor Group and run individually when using the devices tab. You can define two motors in the devices tab, and then create custom functions to have them run together.

Here are some examples. The custom functions are defined on the right and then called from the main ‘When Started’ event.

1 Like

Usually when you want 2 motors spinning together, you would use a motor group, but in this situation I would keep the motors separate, and control them like this:
Screenshot 2024-05-03 7.57.16 AM
Use the “and don’t wait” at the end to make 2 motors spin at the same time

1 Like

This is a fantastic answer, thank you. I didn’t know this was possible.

I never knew what the ‘and don’t wait’ block was for! This opens up a lot of possibilities. Thanks a lot.