LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data conversion

Hi all,

 

I want to convert a 2d array (100 X 2304000) of unsigned Byte [U8] to 2d array (100 X 2304000) of Double Precision [DBL].  The problem comes from dimension of the array.  Stacking 100 images will cause LabVIEW to stop because of large data manipulation.

I need to do this operation since I have to pass this 2D array into the MATLAB script and it does accept only 2-D array of real.

You'll find the example program attached to this post.

Thank you all for your help.DataManip.JPG

0 Kudos
Message 1 of 8
(3,665 Views)

Hi Santorro,

 

What does it mean for LabVIEW to "stop"? Are you sure it's not the Matlab script taking a while to run?

0 Kudos
Message 2 of 8
(3,625 Views)

I assume you're using the DVR because this is just a small part of the code and you actually pass it around, is that right? Otherwise, I don't see any advantage to using it the way it is shown in your screenshot.

0 Kudos
Message 3 of 8
(3,623 Views)

It stops and reports an error.  It doesn't come from the MATLAB script since I have the same error without the script node.

0 Kudos
Message 4 of 8
(3,595 Views)

Yes, it comes from a small part of my actual code.  Whatever the way I create the "stacked images", it causes the labview to stop...

0 Kudos
Message 5 of 8
(3,594 Views)

 Please explain what you mean by Stop.

 

Is there an error message?you suggest that their is...what is the message? Does LabVIEW quit?  does the OS just hang waiting for the app to become responsive again.

What do you see?

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(3,582 Views)

You will find 2 screen captures, one showing the error message and the second showing LabVIEW highlighting where it stops.

 

I updated the code.  Let's give a try guys and come back with your suggestions.

 

Thanks

Download All
0 Kudos
Message 7 of 8
(3,541 Views)

Any update in the code? 

0 Kudos
Message 8 of 8
(3,468 Views)