0
qcode MAC channel - MinOf multiple if else statements
How to run MinOf function within MAC channel using qcode if multiple if else statements are used?
Example:
[1] If ......... else .....
[2] If ......... else .....
[3] If ......... else .....
[4] If ......... else .....
[5] If ......... else .....
[6] If ......... else .....
MinOf ([1],[2],[3],[4],[5],[6])
Is this possible with qcode using just one MAC channel?
Thank you
Customer support service by UserEcho
Six math channels for the If-else statements, along with one math channel with Object list that take MinOfAbs might be a good solution here. If it is MinOfAbs and not MinOf you need.
To put it all in one Qcode channel, you would need to consider that the MinOf() function only takes two arguments, building it up with the pattern
MinOf(C, MinOf(A, B))
If your If-else statements are simple enough to be implemented as dual objects in Object list, and it is MinOfAbs() that you need, then that is probably the most efficient. Then you could do it in one math channel.
Thank you Gustav. Looks like I have been doing it the right way. I was not sure if there was a more "efficient" way.
Please say hi to your team from us.
Cheers,
Paul