LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging MathScript nodes

Hi,

 

I use MathScript probe to debug MS nodes. It's powerful tool, but inconvinient

for monitoring more than one variable. Currently the variables together with

their dimension are displayed in the upper part of the window. If you select

one variable it's contents is displayed in the lower part. It is impossible to

watch  the contents of more than one variable. To improve debugging I have

several suggestions:

 

1) In case of scalar variables display the value instead of the dimension in

    the upper part of the probe window. This way the values of more than

    one variable can be monitored. Actually, this is exactly the way how

    Matlab presents in variables in the Workspace window.Please note that

    variables of interest are often scalar (e.g. indices).

 

2) Allow to reorder the variables in the upper part of the probe window.

    This way you can lump all variables of interest together and avoid a lot

    of scrolling. If this is not possible provide an extray Watch window which

    can be populated with variables of your choice (like in LabWindows CVI).

 

3) If the user select one of the variables please automaticaly adjust the 

    data type in the combo box below the variable list. If you currently 

    select a string variable the data type is set to 'numerical' by the default.

    So each time you select a string you have to change the data type in order

    to read the string.

 

4) Another place to present the variable values could be the context help window.

    (like described in the MathScript Nuggest #2). If you hover over a variable

    display the value instead of the data type (or both) in the context help window

    (or alternativly in some tooltip). This is common practice in Mathlab, LabWindows CVI,

    Visual Studio, etc. For me the value is much more important than the data type.

    Particularly as variables can chage their type in MathScript easily.

 

Ulf Seidel

 

 

 

 

Message 1 of 4
(7,536 Views)

Hi Ulf,

 

Thank you for your awesome suggestions! I have filed CAR 194037 to remind us to address some or all of them in a future version of LabVIEW.

 

In the meantime, there is one existing feature of the probe that you may be interested in: the ability to undock variable views. If you right click on a display in the bottom half of the probe and select "Undock" then the display will pop out into a new window. The new window will continue to update as your variable values change. This is currently the best way to watch the values of multiple values at once.

 

Thanks again for the ideas. Keep them coming!

 

jattas

LabVIEW MathScript R&D

0 Kudos
Message 2 of 4
(7,528 Views)

Hi Jattas,

 

thanks for the tip. Undocking the variable view indeed allows

monitoring multiple variables. However, the undocked window

is huge... More than 3 variables are maximum if you still want

to see the frontpanel of your VI.

 

Ulf

0 Kudos
Message 3 of 4
(7,510 Views)

I'm pleased to report that several of these requests have been implemented in LabVIEW 2010. Check out this MathScript Nugget for more information.

 

Thanks again for the great suggestions!

 

jattas

LabVIEW MathScript R&D

0 Kudos
Message 4 of 4
(6,996 Views)