LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Keep Overwriting

I dont know why my data keep been overwrite.Anyone can help me see my program...anything wrong with it,,??
 
I want my display to show eample:A
                                                       B
and so on......
                                           
0 Kudos
Message 1 of 7
(3,107 Views)

quite simply, you have to 'set the write' position before 'write to text file'  🙂

BTW, why write to -1 position (just curious)?

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 7
(3,104 Views)
I try to put the set file positon infornt of the write to text...but result still the same..
 
abt the -1,i also not sure what to set..advise pls...thk
 
this is the new Vi that i change..putting the set file position infront...
0 Kudos
Message 3 of 7
(3,098 Views)
made small modifications. look at them, and use as you fit.
 
btw, if your purpose is just to write at end of file, there are some high level subvis in the file I/O pallette which might fit the needs better.
generally the purpose of setting the write position is to replace some strings or values in the file, without rewriting the whole file.
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 4 of 7
(3,093 Views)
btw the data shown appears next to the previous data directly. However, i want the data to appear on the next line instead.is it the problem of the set file position....the off set bytes i set wrongly??about some high level subvis in the file I/O pallette can name me some eaxple of it??Smiley Happy
0 Kudos
Message 5 of 7
(3,059 Views)
Hi gen23,

have you ever thought about adding a "line feed" or "carriage return" to your strings before writing to disc? No need to adjust offsets Smiley Very Happy
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,056 Views)
Thank man...it Work well...Smiley Very Happy
0 Kudos
Message 7 of 7
(3,046 Views)