Nils
Topic Author
Posts: 15
Joined: 01 Jan 2022, 21:09

Variable >16bits

22 Sep 2022, 21:47

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: 1688
Joined: 15 Dec 2016, 13:19
Answers: 1

Re: Variable >16bits

23 Sep 2022, 09:38

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

Re: Variable >16bits

25 Sep 2022, 13:33

Thanks Dirk, I´ll have a look!

Who is online

Users browsing this forum: No registered users and 0 guests