LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does big array has continously memory location

Solved!
Go to solution

For data transfer of 100M/s, I tried to create an array of 100M and will pass the pointer of the array to a C program. The C program will get the array from the pointer and write into it.

 

Just wonder whether big array has continously memory location. If OS or labview doesnot assign continous memory to this big array. There will be error when C program try to write into the array.

 

Any suggestion, thanks.

 

 

0 Kudos
Message 1 of 3
(2,985 Views)
Solution
Accepted by topic author alex.

Arrays always have to be in contiguous memory. This is a fact for every programming language i know, so it is true for C as well as for LabVIEW.

There are ways to "emulate" contiguous memory in order to nihilate certain system contraints, but those are most often IDE-specific and therefore cannot be shared between different programming languages (or most often with immens overhead). One example for such an approach can be found here (hope the link works for everyone!).

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 3
(2,980 Views)

Norbert,

 

Fragmented array library link works fine..:smileywink:

0 Kudos
Message 3 of 3
(2,977 Views)