A user function does not output a constant stream of data from its output pin. Only the last value to hit the output pin from inside the function will be propagated externally after the user function executes. In your case this is the last line of text. I would recommend using a collector (Data-->Collector) inside the user function to collect the lines into a text array. Then the entire text will be output.
Regards, Bill Ossmann -- bill_ossmann@hsgmed.com Philips Ultrasound
>-----Original Message----- >From: HIOKI,ANDRA (A-SanJose,ex1) [mailto:andra_hioki@Agilent.com] >Sent: Monday, November 05, 2001 11:36 PM >To: 'vrf@lvld.agilent.com' >Subject: vrf: logging alphanumeric display > > >Hi, > >I have a logging alphanumeric display in a user function that >displays a >text file (that was written in a C++ program). (I actually >have VEE first >call a dll file, which generates this text file I'm >displaying.) I then call >this user function in main 5 times. I copied this logging alphanumeric >display in main and used a junction to see the same display, >depending on >whether I'm on the first, second, etc. call of this function. I've also >added this display in main's panel. > >After the first user function call, VEE no longer displays all >of the lines. >It displays only the last line. Does anybody know how I can >still get the >logging alphanumeric display to continue displaying all lines after the >first user function call? When this function was not in a user >function, >i.e. when all of it was in main, the logging alphanumeric >display worked all >the time. > >I've also tried setting the user function's properties so that >it displays >its panel during the execute mode. The same thing happens. It displays >everything the first time through, but displays only the last >line after the >first call. Thanks in advance. > >Regards, >Andie Hioki >--------------------------------------------------------------------- >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". >--------------------------------------------------------------------- > --------------------------------------------------------------------- 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". ---------------------------------------------------------------------
a.kieser@francotyp.com wrote: > Hi, > how do I get the coordinates of a big array that are e.g. exactly 1 and > sample them in a collector? I don't want to use a 'for count' because it > wastes too much time. > Any good Ideas?
if you mean "how do I get a collection of the indices of all elements of my array that equal 1"?
then the answer is easy.
Just run the array through a COMPARATOR with the Ref input set to "1" and the comparision being "!=".
The list of indices will come popping out the "failures" pin.
If multiple dimensions you'll need a little math on the output since the array gets smashed down to a vector, but that's very simple.
No loops so should be fast.
Stan
-------------------------------------------------------------------------- Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com -------------------------------------------------------------------------- --------------------------------------------------------------------- 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". ---------------------------------------------------------------------
A user function does not output a constant stream of data from its output
pin. Only the last value to hit the output pin from inside the function will
be propagated externally after the user function executes. In your case this
is the last line of text. I would recommend using a collector
(Data-->Collector) inside the user function to collect the lines into a text
array. Then the entire text will be output.
Regards,
Bill Ossmann
--
bill_ossmann@hsgmed.com
Philips Ultrasound
>-----Original Message-----
>From: HIOKI,ANDRA (A-SanJose,ex1) [mailto:andra_hioki@Agilent.com]
>Sent: Monday, November 05, 2001 11:36 PM
>To: 'vrf@lvld.agilent.com'
>Subject: vrf: logging alphanumeric display
>
>
>Hi,
>
>I have a logging alphanumeric display in a user function that
>displays a
>text file (that was written in a C++ program). (I actually
>have VEE first
>call a dll file, which generates this text file I'm
>displaying.) I then call
>this user function in main 5 times. I copied this logging alphanumeric
>display in main and used a junction to see the same display,
>depending on
>whether I'm on the first, second, etc. call of this function. I've also
>added this display in main's panel.
>
>After the first user function call, VEE no longer displays all
>of the lines.
>It displays only the last line. Does anybody know how I can
>still get the
>logging alphanumeric display to continue displaying all lines after the
>first user function call? When this function was not in a user
>function,
>i.e. when all of it was in main, the logging alphanumeric
>display worked all
>the time.
>
>I've also tried setting the user function's properties so that
>it displays
>its panel during the execute mode. The same thing happens. It displays
>everything the first time through, but displays only the last
>line after the
>first call. Thanks in advance.
>
>Regards,
>Andie Hioki
>---------------------------------------------------------------------
>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".
>---------------------------------------------------------------------
>
---------------------------------------------------------------------
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".
---------------------------------------------------------------------
> Hi,
> how do I get the coordinates of a big array that are e.g. exactly 1 and
> sample them in a collector? I don't want to use a 'for count' because it
> wastes too much time.
> Any good Ideas?
if you mean "how do I get a collection of the indices of all elements
of my array that equal 1"?
then the answer is easy.
Just run the array through a COMPARATOR with the Ref input
set to "1" and the comparision being "!=".
The list of indices will come popping out the "failures" pin.
If multiple dimensions you'll need a little math on the output
since the array gets smashed down to a vector, but that's
very simple.
No loops so should be fast.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---------------------------------------------------------------------
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".
---------------------------------------------------------------------