LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure inside while loop preventing the loop from running

Ok, so the space bar is strictly for stopping everything and then you want to save all the accumulated data to Excel?

 

Does is have to be a xlsx file?  I would recommend a csv file.  A CSV is a text file that uses commas as a delimeter.  And Excel will automatically open them too.  The reason I am saying to go this route is because text files are very easy to append to.  So you create/replace/open the file before your loop, format your data, and write to the file.  When the program is done, you just close the file.  I'll try to get an example coded up soon.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 11 of 17
(1,111 Views)

Ok, here's my quick example.  I am only showing part of the consumer loop.  I just wanted to emphasize the file write for the example.  Let me know if something doesn't make sense.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 17
(1,107 Views)

You may have forgotten to attach it...

0 Kudos
Message 13 of 17
(1,102 Views)

Smiley EmbarassedThat's what happens when I'm distracted...



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 17
(1,096 Views)

Hey crossrulz, do you mind attaching that code? I don't recognize all the VIs and having context help might be a bit faster.

 

Thanks,

xander

0 Kudos
Message 15 of 17
(1,062 Views)

What I posted is called a snippet.  If you download it, you can copy the file into a VI and the code automagically appears.  But here's an actual VI (saved in 2011).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 16 of 17
(1,057 Views)

That is some black magic voodoo **bleep**.

 

Thanks.

0 Kudos
Message 17 of 17
(1,053 Views)