10-22-2004 10:07 AM
10-25-2004
08:03 AM
- last edited on
11-25-2025
12:34 PM
by
Content Cleaner
Your problem is that LabVIEW is strictly typed. You need a way to pass data around that is not strictly typed. A custom functional global is probably your best bet. See the tutorial Managing Large Data Sets in LabVIEW. Select or scroll down to the topic Shift Register Databases for Large Data Storage. Download the code and look at it, then create a custom one with "data" of each type you need. You can also include all your header info in it, so you essentially get a singleton data object of your image in memory. Just zero out the arrays you are not currently using. When you access it, you will need to access the currently valid data, so you may w
ant to write a couple of wrapper functions to make your job easier. Good luck. Let me know if you are still having trouble.
10-26-2004
07:38 AM
- last edited on
11-25-2025
12:35 PM
by
Content Cleaner
DFGray wrote in message news:<506500000005000000DBD90100-1079395200000@exchange.ni.com>...
> Your problem is that LabVIEW is strictly typed. You need a way to
> pass data around that is not strictly typed. A custom functional
> global is probably your best bet. See the tutorial href=https://forums.ni.com/t5/Example-Code/Managing-Large-Data-Sets-in-LabVIEW/ta-p/4100668?opendocument>Managing
> Large Data Sets in LabVIEW. Select or scroll down to the topic
> Shift Register Databases for Large Data Storage. Download the
> code and look at it, then create a custom one with "data" of each type
> you need. You can also include all your header info in it, so you
> essentially get a singleton data object of your image in memory. J
ust
> zero out the arrays you are not currently using. When you access it,
> you will need to access the currently valid data, so you may want to
> write a couple of wrapper functions to make your job easier. Good
> luck. Let me know if you are still having trouble.
Thanks for the reply. I'll look into this. In the meantime, I'll just
limit my function to handle only up to unsigned shorts. I'll revisit
this when I need to start reading/writing floating point image data.
10-27-2004
10:36 AM
- last edited on
11-25-2025
12:36 PM
by
Content Cleaner
DFGray wrote in message news:<506500000005000000DBD90100-1079395200000@exchange.ni.com>...
> Your problem is that LabVIEW is strictly typed. You need a way to
> pass data around that is not strictly typed. A custom functional
> global is probably your best bet. See the tutorial https://forums.ni.com/t5/Example-Code/Managing-Large-Data-Sets-in-LabVIEW/ta-p/4100668>Managing
> Large Data Sets in LabVIEW. Select or scroll down to the topic
> Shift Register Databases for Large Data Storage. Download the
> code and look at it, then create a custom one with "data" of each type
> you need. You can also include all your header info in it, so you
> essentially get a singleton data object of your image in memory.
Just
> zero out the arrays you are not currently using. When you access it,
> you will need to access the currently valid data, so you may want to
> write a couple of wrapper functions to make your job easier. Good
> luck. Let me know if you are still having trouble.
Let me say first that I'm a newbie at this.
I tried running the code, but I have LabView v6.1, so I got errors
during loading.
I changed my Case structure to flatten the data after I read it, then
pass out of the structure the type string and data string output from
the Flatten To String function. The problem I get is that the datatype
of the wire output from Flatten is a 1-D array of type Word. That
seems to make sense, since the type descriptor is supposedly a list of
words (Application Note 154), but why can't I use this to do an
Unflatten From String using the wire output from Flatten to the input
to Unflatten? Is the problem that the wire coming *out* from Unflatten
is strictly typed, so I just can't do this? I
f this is so, then how
do the routines that take 'any' type work?
10-28-2004 09:51 AM