LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling file data

Solved!
Go to solution

Hello All,

I want to control the file data with the Boolean switch and its working but when i do the case false then also labview is writing a space. 

Can some body help how can i resolve this issue. I want nothing in the file when the case is false.

One more thing if i write some integer in the file then also it writes zero(0) in the file.

Please help me out.

Thanks

Siddharth

0 Kudos
Message 1 of 4
(2,671 Views)
Solution
Accepted by sidring

Hello sidring,

You can place Format Into File function inside Case structure to skip writting to file when Boolean Control is released

0 Kudos
Message 2 of 4
(2,658 Views)
Solution
Accepted by sidring

@M_Stas wrote:

Hello sidring,

You can place Format Into File function inside Case structure to skip writting to file when Boolean Control is released


Like so.

File_data_BD.png

 

Now let me explain what you had been doing   As you had it every time the loop iterated you wrote at least ",\n" to the file where you formatted two strings that either contained "time and date" or empty strings. Those look like space when you view the file in a spreadsheet.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(2,617 Views)

Thanku so much M_stas

0 Kudos
Message 4 of 4
(2,600 Views)