LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

assigning memory on windows os crashing labview app

Hi

I must be doing something really stupid and very easily crashing my pc by writing only few functions in labview!

I want to pre-allocate memory of 5GB at the start of application. So I used simple initialize function to create 2d array of NaN dB points as shown in the image.  I have 8GB of memory but the error popped up as shown in screen. And I only tried 1GB as shown in image. Could I not have this pre-allocation?

 

 

ATE and Labview Consultant
https://www.easybodge.com
0 Kudos
Message 1 of 5
(3,201 Views)

@k-waris wrote:

Hi

I must be doing something really stupid and very easily crashing my pc by writing only few functions in labview!

I want to pre-allocate memory of 5GB at the start of application. So I used simple initialize function to create 2d array of NaN dB points as shown in the image.  I have 8GB of memory but the error popped up as shown in screen. And I only tried 1GB as shown in image. Could I not have this pre-allocation?

 

 


Are you running LabVIEW 32-bit? You can't allocate that much memory with a 32-bit operating system or in LabVIEW 32-bit.
0 Kudos
Message 2 of 5
(3,187 Views)

Guaranted 64 bit os and Labview!

ATE and Labview Consultant
https://www.easybodge.com
0 Kudos
Message 3 of 5
(3,153 Views)

What happens if you wire the equivalent number directly instead of computing it?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 5
(3,055 Views)

Hi k-waris,

 

And I only tried 1GB as shown in image

Well, we cannot see which value you used for channel count.

 

But still then you want to create a 2D array of (atleast) 1G*1 of DBL, which needs 8GB of memory.

With any OS and other software running I guess it will be hard to have 8GB continuous RAM available!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(2,969 Views)