LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clearing array not working

Fair point!

 

Column B contains numbers of product i want to search for. These are typed into the string input called insert no. I chose channel qty (4 channel for your expermiments will be good).

 

I then hit load data. It loads the data puts it in number order and removes blank lines. Once i'm happy with that i hit clear data so i can load up a different set of data.

 

Problem is when i do this i get data from row 2 of the database between each proper data line.

 

I don't want it to do this. I just want it to clear correctly and load a second set of data in.

0 Kudos
Message 11 of 14
(601 Views)

Maybe you want to initialize that inner shift register with an empty array?

 

Your code is overly complicated. For example:

  • In the subVI you do enourmous efforts to create subarrays, just ro reshape them immediately to an array containing only the first element of the subarray. Wouldn't it be easier just to index out the desired element?
  • Your sequence structure serves no purpose.
  • Place your array of filenames in a shift register, no need for all these hidden controls and local variables.
  • In the second frame, you get the same array slice from the same array four times in parallel. Once is enough! You can branch the wire later.
  • ... ... much more!

 

0 Kudos
Message 12 of 14
(596 Views)

Hi DelEngUK,

 

I was wondering how you got on with your application and initialising your array. Have you been able to do it or are you still experiencing problems?

 

I look forward to hearing from you.

 

Kind Regards,


Larry Colvin
Associate Principal Engineer
Dyson Technology Ltd.

0 Kudos
Message 13 of 14
(569 Views)

Hi

 

I appreciate all of the help i recieved. Yes i got it working literally the last minute on Friday before leaving for a weeks holiday. I quickly made an exe and put it onto the users machine.

 

I will no doubt have a meeting with regard to it today to see how things have progressed.

 

Thanks again.

0 Kudos
Message 14 of 14
(550 Views)