Variable >16bits

Für Themen rund um die Konfigurationsoftware des Revolution Pi
Post Reply
Nils
Posts: 15
Joined: 01 Jan 2022, 21:09

Variable >16bits

Post 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
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: Variable >16bits

Post 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
Nils
Posts: 15
Joined: 01 Jan 2022, 21:09

Re: Variable >16bits

Post by Nils »

Thanks Dirk, I´ll have a look!
Post Reply