![]() |
Using Global Variables Instead of Get Refnum
Is it possible to use a global variable to store the registry refnum for the motors/sensors etc. instead of the refnum get vi?
It can make things a bit easier and prevent stupid name typo mistakes. |
Re: Using Global Variables Instead of Get Refnum
It's certainly possible to use global variables to store RefNum values. The first year of the NI control system, it was normal to do it that way.
Two years ago we discovered a big drawback to not using the RefNum Registry, though. That's the mechanism that lets Test mode work to give you manual access to all the robot inputs and outputs that you use. So we use sort of a hybrid scheme, where we do a RefNum Set in Begin.vi, and also keep the RefNum in another place for easier and less typo-prone access. |
Re: Using Global Variables Instead of Get Refnum
Quote:
|
Re: Using Global Variables Instead of Get Refnum
Quote:
|
| All times are GMT -5. The time now is 23:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi