Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean elements sized as bytes and bits #27

Open
becega opened this issue May 11, 2018 · 0 comments
Open

Boolean elements sized as bytes and bits #27

becega opened this issue May 11, 2018 · 0 comments
Labels

Comments

@becega
Copy link
Contributor

becega commented May 11, 2018

Example: In "initialize assembly lists.vi" there are two subVIs that seem to conflict.

  1. element to byte index.vi - Contains a case structure selected by "data type" that makes the exception for Boolean so that you have a byte index and then a subindex (bit).

  2. check data size.vi - Contains a case structure also selected by "data type", but here we declare Boolean to be 1 byte in size (rather than 1 bit or 0.125 bytes).

As a result, we have a situation where we have defined up to 96 bits in a robot controller interface, but the E/IP assembly gets sized to 96 bytes. On the robot side of things, we end up with 96 * 8 = 768 bits.

@becega becega added the bug label May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant