Subroutines vs Modules

Interested in seeing if any of you have adopted modules over subroutines yet. Is there a use case for when you would prefer one over the other?

Cheers,

I talked to few Tecan development folks about this once. As of v3.0, the only difference was the global parameters. I think the intended future use was that modules would work more akin to Hamilton submethods whereas the subroutines are for calling scripts within another scripts.

You can use the “parameter” variable in any script so you can effectively convert subroutines into modules. Also modules I don’t believe can be run asynchronously so you end up with less functionality…

1 Like