LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Annotation with xscales issues

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(948 Views)

It seems I have found out the issue.

I have to add xscale when building the annotation.

Screenshot 2022-12-23 151148.png

0 Kudos
Message 2 of 4
(919 Views)
Solution
Accepted by topic author yeah

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.

 

 

altenbach_0-1671812695815.png

 

0 Kudos
Message 3 of 4
(900 Views)

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. 

0 Kudos
Message 4 of 4
(866 Views)