LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mathscript node scrolling under 8.6

I just dropped my first Mathscript node under 8.6, and I had a couple quick observations. I pasted in some code from Matlab and I like the line by line syntax error callouts (I don't think that was there previously). However, I immediately noticed that if the scrollbar is shown and used, the line numbers don't stay with the lines. This also occurs without the scrollbar when a selection is dragged to scroll the node. Unfortunately, the syntax error callouts stick with the line numbers, and not the lines, so this is pretty flakey. It seems to work correctly if an arrow key is used to scroll the node.

 

I suspect this is a real bug, but if noone else can replicate it, let me know.

 

Thanks,

Chris

0 Kudos
Message 1 of 4
(2,782 Views)

Hi Chris,

 

Thanks for your post and I hope your well.

 

There is currently a CAR: 51664 - If you scroll the text of a MathScript node using the scrollbar, the line numbers won't update until the node is redrawn.

 

It states " the numbers will refresh the next time you redraw the node (which will be as soon as you move your mouse away) "

 

Is this the case? 

Hope this helps, and thanks for your feedback! 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 4
(2,780 Views)

Thanks for the feedback. I've experimented with this a little. It may actually be important that I don't use automatic tool selection. If I scroll by dragging a selection, the line numberS redraw after I click off the mathscript node with the text tool, not when I move away. If I use the scroll bar, I have to click twice with the text tool to get the line numbers to redraw. If I change tools, the Mathscript node will not redraw when performing other tasks on the block diagram (dropping vi's or structures, moving things around, wiring things) until I change back to the text tool and click on the block diagram twice. Odd.

 

While I'm at it, I found another oddity. When a mathscript node is on the root level of the diagram with another vi, the tip strip labels for the vi terminals will not be visible. If the Mathscript node is in any kind of structure, the tip strips pop up as usual. In the images below, hovering over the Open/Create/Replace File function in the left image will not work correctly. The Tip strips may flash for a moment, but they are not present long enough to read. In the block diagram on the right, the tips strips work as expected. I was just playing around with adding an removing structures and vi's, and the problem went away momentarily, so YMMV on this one.

 

Chris

 

 

 

 

Message Edited by C. Minnella on 12-18-2008 10:48 AM
0 Kudos
Message 3 of 4
(2,768 Views)
Hello Chris,

As James noted, the line number scrolling problem is a known issue.  The text box in LabVIEW does not provide all the functionality we need to show line numbers well.  Rather than not have them at all, we did the best we could with the current limitations.  I have added your comments about the auto-select tool to the bug report as I don't believe that is an aspect we considered.

The issue with the tool tips is also a known issue.  It is documented in bug report 112525.  Thank you for taking the time to investigate!

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 4 of 4
(2,749 Views)