def METHOD_NAME(self,u_s_cmd,u_g_cmd,numVSCMG):
    NewVSCMGCmdsVec = messaging.VSCMGCmdMsgPayloadVector(numVSCMG)
    cmds = messaging.VSCMGCmdMsgPayload()
    for i in range(0,numVSCMG):
        cmds.u_s_cmd = u_s_cmd[i]
        cmds.u_g_cmd = u_g_cmd[i]
        NewVSCMGCmdsVec[i] = cmds  # set the data
    self.newVSCMGCmds = NewVSCMGCmdsVec  # set in module