09-16-2020 03:18 PM - edited 09-16-2020 03:23 PM
Hi All,
What are the difference between Current Value Table vs Global Variable Performance while values are written in 1 location and read at multiple location.
Thanks
09-16-2020 03:40 PM
I don't have specific benchmarks but if you were going to benchmark the CVT library (assuming you're using the default read and write polymorphic VIs) you're going to have to take into account how often you expect the tag name string input will change. If the string name is the same as the previous iteration the read/write functions will essentially just be a string compare and then an FGV access with either an index array or replace array subset operation.
If the tag name input changes you will add a couple of comparisons and variant lookup in order to get the tag's index which will be slower (by how much I don't know).
09-16-2020 03:55 PM - edited 09-16-2020 03:56 PM
Thanks,
What if we have multiple tags maybe around 100 numbers or more?
Is the global variable always update all the values on the front panel even only 1 of the values has been updated/Changed.
09-17-2020 12:27 AM
Cool I never heard of CVT. Pretty sure I ride goldberged this one lol. I guess I'll learn more about it, sounds like it's valuable for abstraction. Kudos for the new word