I have a repeated piece of code in a program but I am stuck with making it ‘generic’ because of different I/O it’s using. A simple version of this is below:
As you can see these routine are technically the same only dealing with different I/Os. Any chance to make it one routine and just keep calling it with different I/O as parameter or something?
I tried this and at first it gave me an error “signalgi not value type”. Did some reading and apparently since signalX is a semi-value type, the only way to use them as parameters are if you declare the parameters as VAR. It kinda makes sense really.