If you want to reference subroutines or functions in other
.bas files, there are several options. This can be a good way to track common groups of code you want to reuse and easily update.
Use the following in your script:
'#Uses "global.bas" Sub main End Sub
The path to the file can be an absolute path or a path relative to the NI AWR Project file in which you are working. The disadvantage to this approach is that you cannot debug into any referenced functions.
using the following in your script:
'#Uses "*global" Sub main End Sub
Notice a few differences. There is no path to the file. You use a "*" before the name. You do not use the
.bas extension for the file.
NOTE: You cannot reference items in a Project level script in Global scripts, nor items in a Global level script in Project scripts.