LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execute without Shared Variable on developement system for testing

Solved!
Go to solution

Hello,

 

In our lab we have a "normal" teststand using a cRio (extended by an ethercat). Currently we are developing on our "production-system" (actually jus via the pc whichwcontrolls thetteststand), but we are going to stsrt long-time-tests in near future. Thus will be no longer possible to develop in this system.

 

Since we are using shared-variables to ascess the data of the teststand, we are having trouble developing on another pc because we are lacking the shared variables. Consequently the code won't execute and we are notnable tottest it which is obviously a big problem since the "waiting"-time of the teststand is limited, or in other words tests shall be  o already conxidered using git to settup two branches (one with and one without the shared variables) but it naturally involves a lot of jerry-picking and rebasing and the risk to overwrite the subVIs with the shared variables. In short, it is not a nice way -  sone might call call it the "nuclear option" ... 😉

 

So has anybody experienced similar problems and how did you overcome them?

 

Thanks in advance!

0 Kudos
Message 1 of 3
(2,708 Views)
Solution
Accepted by Nasdfg

If you use a Project you can go to the...

 

Project >>> Properties >>> Conditional Disable >>> Symbols

 

and create your own symbols and define their value.

 

If you add a symbol like "NoHardware" and set it to True, you can then use the conditional disable structure in your code to enable/disable the shard variables.

 

When switching from "test" to "production" you need only edit the symbol value and you are ready to roll.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(2,703 Views)

wonderfull, just wonderfull - works like a charm ....

 

Thanks a lot for ur fast and helpfull response!

0 Kudos
Message 3 of 3
(2,677 Views)