Search found 2 matches

by jerome.jossent
08 Nov 2023, 17:05
Forum: Software
Topic: Encoder 64 bits value ?
Replies: 3
Views: 8864

Re: Encoder 64 bits value ?

I have tested this with node-red. Please, give me your feelings ?

in the Function "Counter64"

//ON START
global.set("counter", 0);
global.set("last_val", 0);

//ON MESSAGE
var val_str = msg.payload;
var val = parseInt(val_str);

var cnt = global.get("counter");
var val_last = global.get("last_val ...
by jerome.jossent
08 Nov 2023, 11:28
Forum: Software
Topic: Encoder 64 bits value ?
Replies: 3
Views: 8864

Encoder 64 bits value ?

Hi,
I'm completly new with revolution Pi.

Encoder produce a DINT value (32bits ?).
Is it an easy way to change it to 64 bits ?
If no, how should I do that (node-red, python) ?

Thank you very much