pegel2 wrote:
> I have a telemetry data sream in I16 format which is stored in an I16
> array.
> The data in the I16 array represent parameters of different test
> steps. The test steps will be handeled in different VI's. Each VI has
> to now where it could find its relevant data within the I16 array. So
> if a VI load its data it has to now the start ID within the array.
> My problem is, the TM Packet format changes (in my experience) during
> the project livetime serveral times, therefore the start ID's change.
> My idea was like in 'C' to define a global structure type common for
> all VI's and cast the I16 array to that structure type.
> I tried several experiments with I16 array to cluster casts but until
> now not successful.
> I hope i descibed my pr
oblem passably.
> I am thankful for any solution.
>
> Peter
You need hash table. The value and a key. Array index could be the key
to desired element (parameter). Did you tried incapsulate this into
vi-global (while loop with uninitialized shift registers for array
itself and array of indexes)? Goop scheme uses similar way of
manipulating complex data objects incapsulated inside repository vi.
This is described in "LabVIEW Power programming" book by Gary Johnson.
and in GOOP documents. The all available from www.ni.com, search for them.
Clusters seems not the thing to reach your goal.
This is just an idea if I'm not missing something.
Regards,
--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru