LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Tag is moving when text with newline character is inserted

Solved!
Go to solution

According to the help tags are associated with a given line.

 

Now I see that tags move a line down if I insert some text which contains a newline...

Let me try to illustrate the observed behavior:

 

TAG   xxxxxxxxxx1

          xxxxxxxxxx2

becomes

          xxxxxxxxxx1yyyyy

TAG   yyxxxxxxxxxx2

 

Is this the intended behavior? Somehow I find it counter-intuitive, I would prefer tags being associated with the beginning of a line, not with its end.

 

This line year is ending, may the next bring us many reasons of being grateful.

0 Kudos
Message 1 of 10
(3,751 Views)

Hi Wolfgang,

 

one general question: Do you use CVI 2017 or an older version? If not which one?

 

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 2 of 10
(3,688 Views)

Hi Melanie,

you are right, this information is missing - I am using CVI 2017.

0 Kudos
Message 3 of 10
(3,685 Views)

Hi Wolfgang,

 

thank you for your reply.

 

I checked the behavior in my CVI 2017 installation and see the following:

TAG   functionname (parameters);

          nextcodeline

I started typing between the functionname and the brackets around the parameter and entered: "(some different parameters); \n [Enter] newfunctionname". What I got was:

TAG   functionname (some different parameters); 

          newfunctionname (parameters);nextcodeline

 

I think this is what you expect, and not what you see. Is that correct?

I expect the behavior I see, so the question is: What is going wrong on your machine.

 

Can you provide me the following information:

- The exact build number of CVI you use

- If the issue occurs with every project, maybe give an example a try.

- If not, can you provide the complete project?

 

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 4 of 10
(3,683 Views)

Hi Melanie,

 

yes, you are correct - I would expect the behavior you observe.

 

I did check my observation on two different computers (but both running Windows 7 64 bit, CVI 2017 17.0.0 build 295) with two different projects, with the same observation - by the way, I didn't know that different build numbers exist...

 

So let me describe what I do in some more detail:

 

1. I have the following:

TAG   functionname ( parameter1,

                                   parameter2,

                                   parameter3 );

          nextcodeline

2. Now I select the line from parameter1 until (but excluding) parameter2, as indicated by the underline:

TAG   functionname ( parameter1,

                                   parameter2,

                                   parameter3 );

          nextcodeline

That is, I select exactly one line, from line 6 column 31 to line 7 column 30

3. I copy it using Ctrl+C

4. I move the cursor to functionname and place it somewhere in the middle

5. I paste the line

6. The line is inserted as expected, but the TAG is moved

 

0 Kudos
Message 5 of 10
(3,681 Views)

Hi Wolfgang,

 

thank you for the explanation.

 

The good news: We run exactly the same system configuration and I see the behavior now, too.

 

The bad news: In my opinion this is not expected.

 

I will report the issue to R&D.

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
Message 6 of 10
(3,679 Views)

Thank you so much!

0 Kudos
Message 7 of 10
(3,676 Views)

Hi Melanie,

could you kindly post the CAR so that we can more easily see when the issue gets resolved?

Thanks!

0 Kudos
Message 8 of 10
(3,592 Views)
Solution
Accepted by topic author Wolfgang

Hi Wolfgang,

 

thank you for your message.

 

I forgot to post the tracking number. It is

 

Best,

Melanie

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 9 of 10
(3,585 Views)

Thanks!

0 Kudos
Message 10 of 10
(3,576 Views)