LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Facing a problem in writing textfile, badly need help.

I am already close to finishing this. Just that the problem i'm facing is that i can't seem to log the data into the textfile.

It says that the concatenate has an error or something. That's the problem because i can't seem to find it.

Do i have to use "Format string" to convert the numbers to string first? Because i've tried it before, it can't work too.

Please help. Thank you in advance.

0 Kudos
Message 1 of 14
(3,279 Views)

Where is the concatenate function you say is causing an error?

 

Yes, you need to convert the number to a string to be able to write to a text file.  (I don't understand the number to boolean, to 0:1 dance you are doing in there.  What was the point of that?)

 

If you have a problem with converting a number to a string like you said, then post a VI that show that attempt.

0 Kudos
Message 2 of 14
(3,276 Views)

why are you using 2 loops? you can write to file in the same loop....

0 Kudos
Message 3 of 14
(3,268 Views)

I want to write the datas into 2 separate files.

0 Kudos
Message 4 of 14
(3,253 Views)

@atiikah12 wrote:

I want to write the datas into 2 separate files.


that's fine, though you do not need 2 loops to do so....and it looks like you have data flow dependent loops

Spoiler
test1_BD.png
0 Kudos
Message 5 of 14
(3,248 Views)
@apok can i know what do u use fr the one beside "open/create/replace file?"
0 Kudos
Message 6 of 14
(3,224 Views)

You can use write to spreadsheet vi. It may be simpler. Just convert your output into 1D array.

0 Kudos
Message 7 of 14
(3,212 Views)
I actually want it to be a raw data. Thats y i need to put them in a textfile
0 Kudos
Message 8 of 14
(3,205 Views)

What do you mean by raw data.

0 Kudos
Message 9 of 14
(3,202 Views)

Can i know what function do u use for the HumidityTextfile.txt? and i want the data to be logged continuously.

I tried editing and it only log 1 data and that's it.

0 Kudos
Message 10 of 14
(3,176 Views)