LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array resets to NULL

Sorry to bother everyone with a trivial probelm, but I'm at a loss here. 

I initialize an array of u32 integers and then using shift register keep adding to it an array generated inside of a while loop.  I do that with the help of polymorthic ADD function.  Sounds simple enough.... Well at some point while inside of the loop the array resets to NULL (zero dimention) and abviously I cannot add to it anymore.  I checked that I never exist the loop.  The number of elements inside of both arrays is the same (512 elements).  I was wondering if anyone encountered similar problems.  I'm using LabView 2009 on XP.   

 

           Regards, Vitaliy  

0 Kudos
Message 1 of 5
(2,587 Views)
It is kind of hard to debug from a rough description.  If you post your VI, I'm sure we'll be able to see much more easily what might be wrong. Smiley Wink
0 Kudos
Message 2 of 5
(2,585 Views)
If you could minimize your code that still produces the error and post it on this forum I'd be more then happy to help you out.
Message Edited by Scott W on 02-12-2010 11:06 AM
National Instruments
Applications Engineer
0 Kudos
Message 3 of 5
(2,547 Views)

With the polymorphic ADD function if you add an empty array to a non-empty array you will get an empty array. There is a chance that's what's happening in your case. You should post your code for better help.

 

 

Ben

0 Kudos
Message 4 of 5
(2,532 Views)

Hi,

Although I'm not the originator of this thread I am also having trouble with an array resetting back to null (all zeroes) after its populated with the actual data.  I have attached my current VI.  When I select read data switch the data is properly updated on the XY graph and I see the data temporarily flash into the array cells and then all cells revert back to null (zeroes).  I'm completely new to LabVIEW and have spent many frustrating hours getting to the point of development that you see on the attached VI.

Any help or guidance would be greatly appreciated.

Regards,

0 Kudos
Message 5 of 5
(2,322 Views)