Uvm_config_db set from module, get from testcase?

In reply to cgales:

A typo on my part while transcribing late at night, sorry. In the get, the [name] is the same in both the module and the testcase.

I created another call to set and get using a completely different name, “_FRED”. Also, I found another function, exists(), and am using that to check as well. The call is

uvm_pkg::uvm_config_db#([my_type])::exists(this, “*”, “_FRED”, 1);

In the module I set _FRED and it shows up in visualizer (1 write, 0 reads):

The set is:
uvm_pkg::uvm_config_db#([my_type])::set(null, “uvm_test_top”, “_FRED”, [local_var]);

And the get is:

uvm_pkg::uvm_config_db#([[my_type])::get(this, “*”, “_FRED”, fred);

Exists() claims _FRED doesn’t exist.

The second argument to set is the instance name, is a hierarchical string, and is used to limit availability of the variable to certain instances. The first argument is the context and is prepended to the instance name string. Or at least that’s what I understand from various docs. So if the context is null, the 2nd argument has to start at the top. If the first arg is something like uvm_root::get(), the second arg can start there, or be “"? If I don’t care to limit availability, I should be able to use null as the first argument and "” as the instance?