LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there some way to print mathscript node with color coding as text?

Solved!
Go to solution

As the MathScript Nodes get longer, I need to be able to make temporary annotations on hard copy.  Currently the only way I can find to print the MathScript Node is by screen capture and printing as an image. 

 

While I can copy the text and drop it into a word processing program, I would lose all the useful color coding.

 

Is there some trick to copying as text and preserving color-coding?

0 Kudos
Message 1 of 6
(7,039 Views)

Does the color coding have to match LabVIEW exactly?

 

There are many text editors that do syntax higlighting for languages (including .m scripts). You could print the script from one of these for annotation.

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
0 Kudos
Message 2 of 6
(7,014 Views)

Thanks, but if it doesn't match it will be more confusing than helpful.

0 Kudos
Message 3 of 6
(7,012 Views)

After checking some more you can print from the MathScript window, but it doesn't include the highlighting.

 

Since there isn't a way to do this from within LabVIEW feel free to post this as a suggestion on the Idea Exchange: 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
Message 4 of 6
(6,994 Views)

Thanks.  Based on your suggestion, I have posted it to the Idea Exchange.

0 Kudos
Message 5 of 6
(6,990 Views)
Solution
Accepted by wildcatherder

Download and install Programmer's Notepad.

 

Copy all text from the Mathscript Node and paste into Programmer's Notepad.

 

On the menu bar - View - Check Syntax Highlighting

On the menu bar - View - Change Scheme - Select Matlab

On the menu bar - Tools - Options - Fonts and Colours - you can select a larger font size

(Although my vision is corrected to 20/10 and I have a lot of trouble reading the tiny font in the Mathscript Node on a high resolution monitor after a couple of hours.)

 

This software is free and has a full set of features for serious programmers.

 

0 Kudos
Message 6 of 6
(6,849 Views)