Skip to main content

matlab_groupbulkread

  • Description

    Base functions for simultaneous dynamixel control on reading to different length data on different control table address.

  • Members

    None

  • Methods

MethodsDescription
groupBulkReadInitializes members of packet data pointer struct
groupBulkReadAddParamAdds parameter storage for read
groupBulkReadRemoveParamRemoves parameter on the storage
groupBulkReadClearParamClears parameter storage
groupBulkReadTxPacketTransmits packet to the number of DYNAMIXEL's
groupBulkReadRxPacketreceives packet from the number of DYNAMIXEL's
groupBulkReadTxRxPacketTransmits and receives packet on the number of DYNAMIXEL's
groupBulkReadIsAvailableChecks whether there is available data in the data storage
groupBulkReadGetDataGets data from received packet
  • Enumerator

    None

Method References

groupBulkRead
  • Syntax
int groupBulkRead(int port_num, int protocol_version)
  • Parameters
ParametersDescription
port_numPort number
protocol_versionProtocol version
  • Detailed Description

    This function initializes the parameters for packet construction. The function resizes groupData struct and initialzes struct members.

groupBulkReadAddParam
  • Syntax
bool groupBulkReadAddParam(int group_num, int id, int start_address, int data_length)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
start_addressStart address
data_lengthData length
  • Detailed Description

    This function pushes id to the DYNAMIXEL ID list, and initializes the parameter storage by setting start_address and data_length.

groupBulkReadRemoveParam
  • Syntax
void groupBulkReadRemoveParam(int group_num, int id)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
  • Detailed Description

    This function removes target id in the #group_num DYNAMIXEL ID list. It returns false when the class uses Protocol 1.0 .

groupBulkReadClearParam
  • Syntax
void groupBulkReadClearParam(int group_num)
  • Parameters
ParametersDescription
group_numGroup number
  • Detailed Description

    This function clears the #group_num DYNAMIXEL ID list. It returns false when the class uses Protocol 1.0, or returns true.

groupBulkReadTxPacket
  • Syntax
void groupBulkReadTxPacket(int group_num)
  • Parameters
ParametersDescription
group_numGroup number
  • Detailed Description

    This function transmits the packet by using BulkReadTx The communication result and the hardware error are available when the function is terminated.

groupBulkReadRxPacket
  • Syntax
void groupBulkReadRxPacket(int group_num)
  • Parameters
ParametersDescription
group_numGroup number
  • Detailed Description

    This function receives the packet by using ReadRx function. The communication result and the hardware error are available when the function is terminated.

groupBulkReadTxRxPacket
  • Syntax
void groupBulkReadTxRxPacket(int group_num)
  • Parameters
ParametersDescription
group_numGroup number
  • Detailed Description

    This function transmits and receives the packet by using groupBulkReadTxPacket function and groupBulkReadRxPacket function. The communication result and the hardware error are available when the function is terminated.

groupBulkReadIsAvailable
  • Syntax
bool groupBulkReadIsAvailable(int group_num, int id, int address, int data_length)
  • Parameters
ParametersDescription
idDYNAMIXEL ID
addressAddress on the control table of DYNAMIXEL
dataPacket data
  • Detailed Description

    This function checks whether there is available data in the data storage. It returns false when there is no data from target address, or returns true.

groupBulkReadGetData
  • Syntax
int groupBulkReadGetData(int group_num, int id, int address, int data_length)
  • Parameters
ParametersDescription
group_numGroup number
idDYNAMIXEL ID
addressAddress on the control table of DYNAMIXEL
data_lengthData length
  • Detailed Description

    This function gets specific data from received packet. It returns false when there is no data from target address, or returns true.