LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save state machine data after each iteration then write all data at once

Solved!
Go to solution
Solution
Accepted by topic author buickgn

Hi,

 

No Problem.  You can use the RefNum as I have put below.  I was thinking your code had a path reference, not a file refnum.  This snippet could be a SubVI in a case, just pass in the RefNum (and probably put in the error line too).

 

The example (from the link) opens and closes a file in order to get a file reference.  There are other ways to get a file reference, FWIW.

 

Refnum

 

 

Here is another example, sorry only an image 🙂    You'll notice the report reference passed to all the SubVI's.  May of the SubVI's are report VI's that were modified and saved as a different name.  I found that I needed different formatting, etc... so I wired my own SubVI's based on the standard ones.   Pay no attention to the erase error VI, LOL.

 

The start of the chain is a lot of parsing and using labels in excel to build headers.  The "add table" is buried in a SubVI.  I did the block diagram clean up.

 

Simple__Report__SubVId.png

-------
Mark Ramsdale
-------
Message 11 of 12
(548 Views)

Thank you so much Mark!

0 Kudos
Message 12 of 12
(543 Views)