RobotStudio event

How to send multiple variable via pcsdk

Hi,
i am able to send one parameter from my pc to irc5 controller using the pcsdk messaging domain example. But i want to send a variable of type bool and also a num variable to my rapid task from my computer.
data = new UTF8Encoding().GetBytes("bool;TRUE");
angolo_byte = new UTF8Encoding().GetBytes("num;" + angolo);
sendMessage.SetData(data);
sendMessage.SetData(angolo_byte);
this is the code that i use in my c# program.
"angolo" is a variable of type double.
How can i get angolo_byte in my rapid task?
i am able to get "data" in my rapid task, but when i try to send both my rapid task is not working.
Thanks

Tagged:

Answers

  • In your rapid task, do you use interrupt or synchronous modus? Can you show your Rapid code?