AnsweredAssumed Answered

Vrf - Save User Functions in VEE 4.0

Question asked by VRFuser on Apr 20, 1997
At 20:32 18/04/97 +0100, you wrote:
>to: Vrf
>date: Friday, 18 April 1997
>Hi everyone,
>I work with instrument test. To be able To test the instrument  
>automatically I've developed a VEE program. If you are going To write  
>test programs for many instruments it's an god idea To gather the program  
>code that are the same (operator interface, Save result, Print  
>result....) for all the test programs in one program and merge (run time)  
>the program code that differs between testing different instruments (the  
>different tests, Flatness, Dynamic Linearity ....). So when I develop a  
>new test I Open my test program, create a User Function, in the UF I  
>write the code To carry out the test and then I Save the UF. I there is a  
>bug in the UF I merge the UF into the test program edit and saves it  
>In VEE 3.21 and earlier versions of VEE you can Save an User Function in  
>a separate file. Select the menu in the User Function => Delete =>  
>Save,then delete.
>The only way To do the same thing in VEE 4.0 (that I found) is To start  
>two VEE and Open my test program in the first VEE, develop my UF and when  
>I want To Save only the UF I have To cut it out and paste it into the  
>second VEE and then Save the VEE program in the second VEE.
>Is there an other way To do this?
>Am I working which UF in VEE in a way you are not supposed To do?

If you have a stable common application which always the same objects and
the only you modify is a UF depending on the instrument, maybe you need to
include all your UF in a Library. Then the only you have to do in make a
"import Library" and develop in this library your instruments. You could
manage in a global variable the name of the function to be called. In this
way you get all in the same application without modification.
Other approach is to perform different libraries (one per instrument) with
function/s with the same name. Then importing one or other library you get
you want. Even, the name of the library to be imported could be inserted by
the operator.
That is, the library of functions is very useful to develop code of
different applications which provides different functionality, meanwhile the
mean application itself is common to all and never (or almost never) is

Juan Carlos Martin
E-mail     :
Phone      : 34-1-3963995
Fax     : 34-1-3963912
Earth Stations Department