Program optimizing
I have learned to use Qcode and its great tool to make your program more simple.
However, I noticed that when you add many functions inside same channel (like MAC),
the Component Count value in Project statics increases a lot even it should be less than before? Example before I had 5 different MAC channel what I add in same MAC channel using Qcode, still Component Count value increased even it should be less than before?
When you want to optimize your program running power what method gives best result;
-Add many functions in same channel or keeps functions separate in own channels?
Merry Christmas to everyone! :)
Answer
The component count includes all kinds of components such as channels and objects in object lists. When using Qcode IQANdesign will create objects similar to those used by the object lists. In some cases the number of objects might even increase a bit depending on the expression. This is why you don't see a decrease in the component count.
The run-time performance is not only depending on the number of objects in an expression. For example when using conditional statements in Qcode (if/then/else) objects will be skipped which will save time. In expressions without conditional statements you will probably get slightly faster execution using object lists compared to Qcode. The main advantage with using Qcode is rather usability and clearer code compared to object list.
I don't think there is a significant difference between putting the functionality in a single channel versus splitting into several channels. The choice might rather be depending on readability of the application and whether a channel value is needed for use elsewhere.
Customer support service by UserEcho
The component count includes all kinds of components such as channels and objects in object lists. When using Qcode IQANdesign will create objects similar to those used by the object lists. In some cases the number of objects might even increase a bit depending on the expression. This is why you don't see a decrease in the component count.
The run-time performance is not only depending on the number of objects in an expression. For example when using conditional statements in Qcode (if/then/else) objects will be skipped which will save time. In expressions without conditional statements you will probably get slightly faster execution using object lists compared to Qcode. The main advantage with using Qcode is rather usability and clearer code compared to object list.
I don't think there is a significant difference between putting the functionality in a single channel versus splitting into several channels. The choice might rather be depending on readability of the application and whether a channel value is needed for use elsewhere.