LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable not active

It seems not only I experienced this problem for several years. The problem to me is that I created explicit thread and assign values to global variables (structures) in other threads. It seems the function call can use or assign the variable, but it give me a message of not active. Just wonder if you have got a solution on this.
0 Kudos
Message 11 of 15
(1,385 Views)
Hi DMTS,

What version of CVI are you using?  I've tried reproducing the behavior you described but the only time I get the "Not Active" value is when my program is not running (which is to be expected). The global variable (struct) I created is updated from multiple threads and my watch expression is updated each time I reach a breakpoint.  Where are you placing your breakpoint? Is there some code you can post demonstrating the behavior?

Have a great day,

Ecleamus R.
Applications Engineer
National Instruments
0 Kudos
Message 12 of 15
(1,364 Views)
Hi Ecleamus,
 
I'm using Labwindows 8.0.1, and actually I have had this problem since CVI 6.0.0 when I started to use explicit multi-threading. I tried to change various settings/options and the problem is not repeatible, sometime I can view more variables and sometime less. My code is very long (~30k), and I tried to merge all code into one file but it doesn't help. Just wonder whether anything will affect the space available for view variables. Hope you can give me some hint. Please also suggest how you want me to trim down the code to communicate with you.
 
Thanks,
 
 
0 Kudos
Message 13 of 15
(1,353 Views)
Hi DMTS,

Without being able to reproduce the behavior on my end, it's difficult for me to attribute the behavior you are seeing to anything besides the information provided by Chris and Urs in the previous posts.  In terms of cutting down your code, you can start by posting a example of how you declare your global struct, create your threads, as well as the general structure of your code modules (i.e. # of global variables, what functions from what modules are accessing the global variables, type of files just .c and .h?).

Also, I'm not completely clear on what you meant by "sometime I can view more variables and sometime less"  Are you saying that at a given breakpoint, the Not Active variables are different each time you run the program? Or is it just in different code modules that variables you expect to be accessible are Not Active?

Have a great day,

Ecleamus R.
0 Kudos
Message 14 of 15
(1,337 Views)

Hi Ecleamus.

I found sometime I can view more variables and sometime less after I tried to change options (Environment or Debug options), but I wasn't be able to duplicate it.

I'll try to delete some code to see if I can trim down the code while I still can duplicate the problem.

Thanks,

0 Kudos
Message 15 of 15
(1,296 Views)