hebi::GroupCommand::readGains

Questions about our C++ API
Post Reply
husch
Posts: 8
Joined: Fri Oct 30, 2020 6:18 am

hebi::GroupCommand::readGains

Post by husch » Tue Dec 15, 2020 5:45 am

The document says that if the file was successfully read, but the number of modules in the file is not equal to '1' or the size of the group, returns failure.

Why does the function return success when the number of modules in the file is equal to '1' even though there are several hardware modules in the group?
What is observed is that the correct gains are set for first hardware module, but gains read from uninitialised memory are used to set the rest of the hardware modules.
Is it a bug or intended behaviour?

Thank you very much.
User avatar
hardik_singh
HEBI Official
Posts: 13
Joined: Thu Jul 09, 2020 10:49 am

Re: hebi::GroupCommand::readGains

Post by hardik_singh » Fri Dec 18, 2020 10:24 am

Thanks for catching this! You are correct - this is not intended behavior. We're working to include a fix in an upcoming api release.
husch
Posts: 8
Joined: Fri Oct 30, 2020 6:18 am

Re: hebi::GroupCommand::readGains

Post by husch » Mon Dec 21, 2020 5:54 am

Great. Thank you very much.
Could you please share when the next api release will be?
User avatar
matt_tesch
HEBI Official
Posts: 11
Joined: Mon Mar 30, 2020 9:14 am
Location: Pittsburgh, USA

Re: hebi::GroupCommand::readGains

Post by matt_tesch » Fri Jan 08, 2021 9:50 am

Apologies for the delay over the holiday!

This was fixed in C API v2.1.0 before the new year; the C++ API update should be out today pending some final testing.

Best,
Matt
Post Reply