New RPN script function not working

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Post Reply
Message
Author
User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

New RPN script function not working

#1 Post by Sling »

As the title says. I tried some of my own code and the wiki example but all it ever returns is nil. I have the AM 4.2 beta 8 and 4.1 beta 5 plugin.

I assume its a bug but please let me know if anyone has it working.

ylevesque
Posts: 69
Joined: Wed Jan 09, 2019 6:49 pm

Re: New RPN script function not working

#2 Post by ylevesque »

Works fine for me with AM 4.2 beta 8 and 4.1 beta 5 plugin.

Yves

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: New RPN script function not working

#3 Post by Sling »

Hmm, Did you run the exact code given in the wiki example? I’ll check again.

ylevesque
Posts: 69
Joined: Wed Jan 09, 2019 6:49 pm

Re: New RPN script function not working

#4 Post by ylevesque »

Yes I tried first with the demo code.
I implemented rpn in many instruments mainly to replace fs2020_variable_write.
Be aware that reading a variable works only when the function is executed. The callback is not automatically executed when the variable change as it is the case with fs2020_variable_subscribe.
fs2020_rpn does not work with input events (B:) and component variables (O:)
Yves

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: New RPN script function not working

#5 Post by Sling »

Yes I tried first with the demo code.
Ok thanks I’ll try again.
I implemented rpn in many instruments mainly to replace fs2020_variable_write.
I don’t see the need to specifically do that across the board but more for specific ones that can’t be reliably read with the normal subscribe. It’s why I asked for this feature in the first place.
Be aware that reading a variable works only when the function is executed. The callback is not automatically executed when the variable change as it is the case with fs2020_variable_subscribe.
fs2020_rpn does not work with input events (B:) and component variables (O:)
Yep fully understand that. It’s not a subscribe. You have to request it whenever you want an update. I wasn’t expecting the B,I,O vars to work due to the long standing issue with access to them. They had better resolve that soon.

User avatar
Sling
Posts: 5237
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: New RPN script function not working

#6 Post by Sling »

I have it working now so thank you for confirming it was ok. Not entirely sure what caused it not to work before.

Post Reply