12-22-2022 08:01 PM
Hello All,
attached please find the vi. I tried to add annotation for the 2 cursors. but the annotation"123456" only appear when I selected the first Xscale
Don't know why when I selected the second or other XScales, the annotation disappear.
Solved! Go to Solution.
12-23-2022 01:13 AM
It seems I have found out the issue.
I have to add xscale when building the annotation.
12-23-2022 10:29 AM
Since you did not attach your caller or a more global view of your project, we cannot really test anything. Still, here's a literal translation of your code that combines most of your many (many!) property nodes into a few. I am sure many more things could be simplified.
You might want to add some error handling. Also note that it is a good habit to place references in shift registers to protect from the possibility of zero iteration FOR loops (not here, but in general) to keep the reference valid. Typically, you only need to write properties that can change. Hard to tell what they are without seeing the global picture.
12-25-2022 06:37 PM
Hi altenbach,
Thank you very much for the advice. the cursor name have relationship with the positions. I just simplified the names. I will review the code according to your code.
"Also note that it is a good habit to place references in shift registers to protect from the possibility of zero iteration FOR loops"
it is really an important suggestion for me.