LabWindows/CVI Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Wolfgang

Smarter variable view (array elements)

Status: New

Hello,

 

Frequently I have the need to debug array elements, such as parameter [ 1 ].

 

Right now, the data tooltips only shows the address of this array, but not the individual value. For this I have to open the variable view and scroll to the element of interest. This is extra effort...

 

Hence I suggest to also show the value of the specific indexed element in the data tooltip, e.g. parameter = 0x00611990; parameter [ 1 ] = 2.0

 

Thanks Smiley Happy

 

 

2 Comments
LuisG
NI Employee (retired)

Hi Wolfgang,

 

When you highlight an expression such as parameter[1], the data tooltip does show you the value of element 1, right? So, in your case are you only highlighting parameter, and if so, is that because even though you want to see element 1, you don't happen to have "parameter[1]" already written in your source code?

 

Luis

Wolfgang
Trusted Enthusiast

Hi Luis,

 

Thanks for mentioning this feature, again I learnt something new Smiley Happy

 

Although admittedly your approach is simpler than using the variable view, a tooltip usually works without the need of highlighting, simply by moving the mouse over an expression.

 

For example, it does work like this for one-dimensional arrays: x_data [ index ] shows: address ( value )

 

Unfortunately, it does not work like this for two-dimensional arrays, i.e. filelist [ index ] will only show an address...