Page 1 of 1

Variable >16bits

Posted: 22 Sep 2022, 21:47
by Nils
Hi,

How do I declare a variable that is larger than 16 bits?
If I attempt to read more than one register Pictory starts overwriting the following variables. Therefore, I need to create something like Variable_1, Variable_2 and read them out separately and merge them in my application to keep working with variable names. Otherwise I would first need to obtain the offset of the variable and read 32bits from there.

It would be easier if it would be allowed to declare how large a variable is supposed to be and the following Input_Words would automatically get grayed out for other use.

The piTest -v Variable_1 also says length: 16, therefore I should be able to change that value?
So, how do I define a variable longer than 16bits?

Cheers,
Nils

Re: Variable >16bits

Posted: 23 Sep 2022, 09:38
by dirk
Hey Nils Have a look at the following video tutorial which explains how to create your own rap file:
https://revolutionpi.com/tutorials/vide ... ials/#VT25

Re: Variable >16bits

Posted: 25 Sep 2022, 13:33
by Nils
Thanks Dirk, I´ll have a look!