LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Entry missing in the table

Solved!
Go to solution

Hi all,

 

      I am simply entering values in the table every 100ms.

 

For first 10 mins the entries comes at constant speed i.e 10 values per sec. but after that the values starts decreasing,

though slowly.every 10 mins the no of samples goes down by one.

 

I have attached a vi, In it a table is given which is not connected to anything, In that i have generated the output.

 

I think the loop execution time in increasing , can u help me in that?

 

My only aim is that, to get reading in the table every 100ms exact.

 

Regards,

 

Shrek

0 Kudos
Message 1 of 7
(3,333 Views)

Hi shrek,

 

2 points:

1) at the moment you don't get values exactly every 100ms as the attachment shows (simply changed format for timestring)

2) to maintain exact timing you shouldn't build big arrays as you do with your table! The bigger the table the more LabView has to copy from one memory block the the next...

Message Edited by GerdW on 08-24-2009 03:27 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,323 Views)

Hi GerdW,

 

 Thanks for the reply,

 

So how do you thinks i can proceed?

 

 Can you suggest some solution, as i have to take reading continously for 1-2 Hrs and store it in TXT file.

 

Regards,

 

Shrek

0 Kudos
Message 3 of 7
(3,317 Views)

Hi shrek,

 

simply store it in (txt-)files without collecting in a big table...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,309 Views)

Hi,

 

negative result.

 

I did it as follows but the output was same. (entries missing).

 

Regards 

 

Shrek

Download All
0 Kudos
Message 5 of 7
(3,294 Views)
Solution
Accepted by topic author shrekt
What you are doing is just silly and I don't believe you have any 'missing' entries. Turn on context help and read how the Write to Spreadsheet File works. You are replacing the entire file with each iteration Do NOT use the build array and a shift register. DO wire a True to the append to file input. Do wire 1D array (NOT a 2D array) to the write function.
0 Kudos
Message 6 of 7
(3,292 Views)

Thanks Dennis,

 

It worked.

 

Regards....

0 Kudos
Message 7 of 7
(3,275 Views)