Routine with parameters

Hi everyone!

I’m making an application with C# using PC SDK to work with virtual controllers.

One of the implemented features allows to load a routine and execute it from the application.

However, I wonder if it would be possible to execute a routine which needs parameters.

Can anyone help me?

Thanks in advance!

We also need to know about this .. thanks in advance.

No one? :frowning:

Hi,

This is not possible, since what you are doing with the SDK (similar to the Flex Pendant), you are moving the Program Pointer to a routine. The runtime can’t figure it out the parameters at this point.

Have you though about work around?

  • If the name of the routine always the same?

  • What type of parameters is expecting?

Based on these two questions, you can have a routine without parameters that calls your target routine.

BE