Manuals >User's Guide >Creating and Running Macros Print version of this Book (PDF file) |
![]() ![]() |
|
|
Computations with Data SetsLike Transforms using the Program function (Programs), Macros can apply a variety of operators and functions to data sets. However, it is more difficult for Macros to access the data sets. This is because Macros are further removed from the data sets, which exist inside Setups, alongside Programs. As is discussed in Using Data from Another Setup. Programs can readily access data sets in another Setup by preceding the data set's name with the name of its Setup, as in rgummel/vb. (This data set is an Input appearing in the bjt_npn.mdl model file.) Simpler still is the case where a Program accesses a data set in the same Setup. In this case it can access an Input named vb just by using its name. For example: Since Macros are not inside the Setups, they must fully specify the names of data sets that they use. A leading "/" character must be used. In a Macro, the previous PRINT statement needs to be written as follows: Within a currently executing Macro or Transform, the notation for relative path (../ and ../..) can be used when accessing a data set in another DUT or Setup.
|
|
|
|
![]() ![]() |