MVP 2022 Joe Tauser Posted May 3, 2012 MVP 2022 Report Share Posted May 3, 2012 This came up AGAIN with a customer using the Struct block to build a data block for use with a UniCAN Send block. Here's what he wanted to send: MI 550 for length 3 MI 500 for length 3 MB 500 for length 8 Struct Block reports Total bytes: 13 So what length goes in the block size in the UniCAN send block? Of course I know the answer is 7. But he doesn't have the background to know that there a are two bytes in a word and that you have to round up. Since the Struct block is designed to work with CANbus, here is my humble request to the Creators: Add a field to the Struct Block dialog: UniCAN Send/Receive Block Size: 7 MI's. And while you're at it, force the Description of the Block Length field of the UniCAN send block to say "Block Length". It currently gets replaced with the value of the block length, so it's not obvious what it is. Joe T. Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted May 6, 2012 Report Share Posted May 6, 2012 Joe, I saw this, and am taking it up with the appropriate people--thanks. Happy Sunday Quote Link to comment Share on other sites More sharing options...
Emil Posted May 6, 2012 Report Share Posted May 6, 2012 I want to point, that UniCan sends bytes. The buffer is 32 bytes. What will be sent will be in bytes and it will be 13 bytes really. Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted May 6, 2012 Report Share Posted May 6, 2012 Hey Joe: > -Add a field to the Struct Block dialog: UniCAN Send/Receive Block Size< Done >force the Description of the Block Length field of the UniCAN send block to say "Block Length". < Can't do it when the user selects Const, only when Direct is used...sorry... Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted May 8, 2012 Author MVP 2022 Report Share Posted May 8, 2012 A picture is worth a thousand words.... Joe T. Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted May 8, 2012 Report Share Posted May 8, 2012 Joe--verbose descriptions? Technical writers eschew verbosity! We champion brevity! Seriously-- the description, when Direct is chosen, will point out that it is Integers...but regarding your second request, truly, we can't do it. Has to do with the way the dialog is constructed...sorry! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.