AnsweredAssumed Answered

vrf Arrays in records

Question asked by per.g.sorensen on Nov 22, 2007
Kathy

I think your example illustrates Jacobs question, and Reiners example illustrates my answer. Thank you all..

Per



>-----Original Message-----
>From: ext Schlieker, Reiner [mailto:reiner.schlieker@siemens.com]
>Sent: Thursday, November 22, 2007 22:01
>To: VRF
>Subject: RE: [vrf] Arrays in records
>
>Converting to a container does work...see attached
>
>Reiner
>
>-----Original Message-----
>From: Kathy Wright [mailto:kathy_wright_ca@yahoo.com]
>Sent: Thursday, November 22, 2007 11:48 AM
>To: VRF
>Subject: RE: [vrf] Arrays in records
>
>Ah, examples help.  Yours all work because the aray sizes are the same.
>I've attached an example of a situation where you might loop through a
>test but end up with arrays of different sizes ..
>this shows one way to deal with it.
>
>Good luck!
>
>Kathy Wright
>
>per.g.sorensen@nokia.com wrote:
>
>     I believe the container will have the information about the datatype
>in it. See attached example.
>     
>     The example shows that it is possible to create an array of records
>containing different datatypes and different sizes of those datatypes.
>     
>     Per G
>     
>     
>
>________________________________
>
>          From: ext Kathy Wright
>[mailto:kathy_wright_ca@yahoo.com]
>          Sent: Wednesday, November 21, 2007 17:57
>          To: VRF
>          Subject: RE: [vrf] Arrays in records
>          
>          
>          Technically, if you want an array of records, and one of the fields
>is an array of say, int32, then all of the elements of the record array
>must have that field and the fields must all be the same size.  One way
>I've gotten around it is to set the array size to be bigger than
>anything I anticipate seeing, then have another field in the record to
>tell me how elements are in that  particular array.
>          
>          Kathy Wright
>          Endwave
>          
>          per.g.sorensen@nokia.com wrote:
>
>               Jacob
>               
>               If you use the To String ( Write
>Container) and From String ( Read Container)
>               
>               This will give same size and shape of data in the array of records.
>               
>               See attached..
>               
>               Br Per
>               
>               
>
>
>________________________________
>
>                    From: ext Meachen, Jacob
>[mailto:Jacob.Meachen@adckrone.com]
>                    Sent: Wednesday, November 21, 2007 12:55
>                    To: VRF
>                    Subject: [vrf] Arrays in records
>                    
>                    
>                    Hi VRF
>                    Is it possible to an array of
>records in which one element of the record is an array. Now what I want
>to do is to have a variable size for the array inside the record. I.e.
>record 1 will have a element of type array which has a size of 5. and
>record 2 will need the sub array to have a size of 10. this can be done
>in language such as Visual Basic so can it be done in vee? And if so
>how?
>                    Thanks
>                    Jacob
>
>                    ---
>                    You are currently subscribed to vrf as:
>per.g.sorensen@nokia.com
>                    To subscribe please send an email to:
>"vrf-request@lists.it.agilent.com" with the word subscribe in the
>message body.
>                    To unsubscribe send a blank
>email to "leave-vrf@it.lists.it.agilent.com".
>                    To send messages to this
>mailing list, email "vrf@agilent.com".
>                    If you need help with the
>mailing list send a message to
>                    "owner-vrf@it.lists.it.agilent.com".
>                    Search the "unofficial vrf
>archive" at "http://www.vrfarchive.com/vrf_archive".
>                    Search the Agilent vrf archive at
>"http://vee.engineering.agilent.com".
>
>
>               ---
>               You are currently subscribed to vrf as:
>kathy_wright_ca@yahoo.com
>               To subscribe please send an email to:
>"vrf-request@lists.it.agilent.com" with the word subscribe in the
>message body.
>               To unsubscribe send a blank email to
>"leave-vrf@it.lists.it.agilent.com".
>               To send messages to this mailing list, email "vrf@agilent.com".
>               If you need help with the mailing list send a message to
>               "owner-vrf@it.lists.it.agilent.com".
>               Search the "unofficial vrf archive" at
>"http://www.vrfarchive.com/vrf_archive".
>               Search the Agilent vrf archive at
>"http://vee.engineering.agilent.com".
>
>
>          --- You are currently subscribed to vrf as:
>per.g.sorensen@nokia.com To subscribe please send an email to:
>"vrf-request@lists.it.agilent.com" with the word subscribe in the
>message body. To unsubscribe send a blank email to
>"leave-vrf@it.lists.it.agilent.com". To send messages to this mailing
>list, email "vrf@agilent.com". If you need help with the mailing list
>send a message to "owner-vrf@it.lists.it.agilent.com". Search the
>"unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
>Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
>
>
>     ---
>     You are currently subscribed to vrf as:
>kathy_wright_ca@yahoo.com
>     To subscribe please send an email to:
>"vrf-request@lists.it.agilent.com" with the word subscribe in the
>message body.
>     To unsubscribe send a blank email to
>"leave-vrf@it.lists.it.agilent.com".
>     To send messages to this mailing list, email "vrf@agilent.com".
>     If you need help with the mailing list send a message to
>     "owner-vrf@it.lists.it.agilent.com".
>     Search the "unofficial vrf archive" at
>"http://www.vrfarchive.com/vrf_archive".
>     Search the Agilent vrf archive at
>"http://vee.engineering.agilent.com".
>
>
>--- You are currently subscribed to vrf as:
>reiner.schlieker@siemens.com To subscribe please send an email
>to: "vrf-request@lists.it.agilent.com" with the word subscribe in the
>message body. To unsubscribe send a blank email to
>"leave-vrf@it.lists.it.agilent.com". To send messages to this mailing
>list, email "vrf@agilent.com". If you need help with the mailing list
>send a message to "owner-vrf@it.lists.it.agilent.com". Search the
>"unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
>Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
>
>
>---
>You are currently subscribed to vrf as:
>per.g.sorensen@nokia.com To subscribe please send an email to:
>"vrf-request@lists.it.agilent.com" with the word subscribe in the
>message body.
>To unsubscribe send a blank email to
>"leave-vrf@it.lists.it.agilent.com".
>To send messages to this mailing list,  email "vrf@agilent.com". 
>If you need help with the mailing list send a message to
>"owner-vrf@it.lists.it.agilent.com".
>Search the "unofficial vrf archive" at
>"http://www.vrfarchive.com/vrf_archive".
>Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
>

---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".

Outcomes