AnsweredAssumed Answered

vrf Date: Wed, 6 Mar 2002 17:15:33 -0700

Question asked by VRFuser on Mar 7, 2002
Paul,

At the risk of adding unecessary complexity, I see a few more ways of
doing this.

1. Create a set of cover functions that specify which output is
returned.  For example, a user function ReadTemperature_On(address)
which calls ReadTemperature(address) and returns only the %On output.

2. Create a cover function that takes an extra parameter which
specifies which output is returned.  For example, a user function
ReadTemperature_Sel(address, Sel) which calls ReadTemperature(address)
and returns only the output picked Sel where you get to pick the
values for Sel which return which output.

3. Create a cover function or change your ReadTemperature function to
return an array of all the values.  The array will be the default
value returned if it is the first output.  You can then pick which
output is selected by picking off an element of the array.  This is
not much different than the record suggestion already suggested.  When
I tried this with VEE 3.2, it did NOT let me enter syntax like
"ReadTemperature(address)[0]", which might make this less useful.

lBill

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes