f



write into existing file with "write to text file"

Hi all, I have a text file that contains several lines of data (text). Now I would like to replace the first three lines with text coming from a string array.My approach is shown in WriteToFile.vi that is attached.When I am executing this vi (with an empty file), everything seems to be working fine in the first place.The file will contain the following text:oneoneonetwotwotwothreethreethreeNow, when the third element in the array is shortened (lets say to "threethr") before execution,  the file will contain  the following text:(the file was not emptied before execution)oneoneone
twotwotwo
threethrthreeHow can I avoid the last line being written? I have made many tests and I could not find a solution.One more example:Lets say we have an existing file, inside this file is:oneoneone
twotwotwo
three
fourfourfourNow I would like to overwrite line three with "threethreethree". Therefore I execute my vi as shown in the attachment.What I get as a result is:oneoneonetwotwotwothreethreethreeurSo, the text in line four, which should not be touched, is "ur" instead of "fourfourfour". Any idea to solve this problem?What I basically need is replacing a line of a text file in a conveinient way.Thanks,Holger----LV 8.5.1


WriteToFile1.jpg:
http://forums.ni.com/attachments/ni/170/327029/1/WriteToFile1.jpg


WriteToFile.vi:
http://forums.ni.com/attachments/ni/170/327029/2/WriteToFile.vi
0
x9561 (148440)
5/28/2008 3:40:07 PM
comp.lang.labview 35213 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

1 Replies
1663 Views

Similar Articles

[PageSpeed] 15

The remaining fourth line is there because the third line has a <nl> at the end. You have not emptied the file so the rest of the file will be kept. This is because your line is shorter.
 
In the scond example the third line is longer and it will overwrite the beginning of the fourth line.
 
Files aren't organized in lines they are oganized in bytes. And what you write are bytes to the file even with text files.
 
Replacing a single line in a file is done by reading the file line by line. All unchanged lines are written to a temporary file and the line with the new text will be written instead of the original line to the temporary file. When the writting is done rename the original file, then rename the new file into the original file and then delete the renamed original file.
 
 
0
x9561 (148440)
5/28/2008 3:40:09 PM
Reply:

Similar Artilces:

How can I connect "Get Date/Time String.vi" to "Write To Spreadsheet File.vi" ?
How can I connect "Get Date/Time String.vi" to "Write To Spreadsheet File.vi" ?&nbsp; I want to write 05/06/2008 to spreadsheet for example. I tried many conversions in vain. I am using LabVIEW 8.0 now. Trying to fit a square into a circle? That VI uses a 1D/2D array of numbers, so why are you trying to feed a date?I suppose you can do this:<img src="http://forums.ni.com/attachments/ni/170/321560/1/Example_VI_BD4.png"> If that actually means anything.Message Edited by smercurio_fc on 05-06-2008 05:15 PM Example_VI_BD4.png: http://forums.ni.com/attachments/ni/170/321560/1/Example_VI_BD4.png I want to store not only data of measurement system, but also date, time, commment, etc to one excel file. Thank you for your advice. I tried what you propose, but it did not work. I attached the image of the error message. Error Message.PNG: http://forums.ni.com/attachments/ni/170/321567/1/Error Message.PNG Hi Pikaichi, right click on the "Write To Spreadsheet File.vi" select, select type -&gt; "string" or "automatic". :smileyhappy: Mike Hi Mike Thank you for your advice but no function of selecting "string" or "automatic" on LabVIEW 8.0. I found that no problem connecting two vis on other PC installed LabVIEW 8.2. So I installed LabVIEW 8.2 on my PC, too, and now have no problem connecting these two vis. Thank you. &nbsp; The ability to adapt the Write to Spreadsheet File function...

&quot;re-entrant&quot; &quot;file I/O&quot; &quot;QSM_State Machines&quot;
&nbsp; &nbsp; I have trouble with writing (appending) to text file in a QSM that is in an "occurence mode" of operation whereby the queue waits for outside engueue to go ahead and do a task. The task is simply to write to a file a line of text. &nbsp; Outside producers give the queue its go ahead and data is sent along etc... &nbsp; WHat I am seeing in the logging functions are multiple errors (Error 1) Somehow Labview&nbsp;is not noticing that the reference is valid or it is invalidating the reference. &nbsp; Q is Should I just let the QSM loop to keep it alive and would that work? &nbsp; What is the rule concerning queue waiting for an event? Does the VI get flagged as idle and is that why the ref appears to be dropped?&nbsp; THere is no reason I can think of for the ref to be dropped. It is opened in the init frame then kept in a shift register. and available at each iteration in the QSM. &nbsp; The example works in a simple loop but not a loop that is waiting on an occurence.&nbsp; Why? &nbsp; The only work around I can manage is to use the path and open the reference when it is not valid which feels kind of&nbsp; silly if you get my drift &nbsp; Anyone seen this before? &nbsp; Thank You &nbsp; &nbsp; &nbsp; ...

write in 2 columns using a &quot;write to spreadsheet file&quot; if I have 2 strings which are in columns
I have tried, but I don't know how to do it Thanks Duplicate <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=249412&amp;jump=true" target="_blank">thread</a> Please stick to one thread ...

How can I give the new files from &quot;write bmp file&quot; automatically a series-filename?
Hello, I have this node - "wirte bmp file" in a loop, with each running of the loop creates this node a new bmp file and save it in a order.How can I give these new files automatically a series-filename? for example in the first run it creates automatically a file called "File0001.bmp"; in second time a file with the name "File0002.bmp"; third time "File0003.bmp", etc.Can you help me?&nbsp; Maybe with a example? Thanks a lot.Regarts,Johnny You've <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=321044#M321044" target="_blank">already asked</a> this question, and it has been answered! ...

&quot;Save measurement to file&quot;-VI doesn't obey the &quot;Use next avaible file name&quot; setting
I'm using this express VI to store data. In it's properties, there's the "If a file already exists: Use next avaible file name" radio box which does not work. Instead, it appends everything to the one file it created on the first run. My VI has a while-loop with an embedded flat sequence with the writing-VI being in the last frame of the flat sequence. LV 8.5, Linux Hi There. Could You make a screendump of Your VI? I tried using the Express VI on both LV7 Express (Base,Win), and LV8.5 (Base, Win) , and it works perfectly.... &nbsp; I've attached my VI. Currently, the save-VI gets it's file name from some other VIs, but I do that because it doesn't work otherwise. When I clear the "Filename"-input, it starts appending. Messapplikation ganz anders.vi: http://forums.ni.com/attachments/ni/170/313764/1/Messapplikation ganz anders.vi Hi ReBoot I think i've found the Source of Error......When You generate the filepath You use a Concatenate strings with a Constant stating "Files/file" the problem her is the "/". It might be that it should be a Backslash "\"...... Try it.... Best Regards BCL &nbsp; No no, everything's fine as it is. The problem starts when I remove the Filename-input from the Save-VI. Then the Save-VI refuses to take the next avaible file name. However, I'd like to be able to remove all this filename-code and let the Save-VI handle all the file naming. Hi ReBoot, how...

How to define &quot;byte stream type&quot; for &quot;open file&quot;?
Hello, I created some numbers (type "double") in Matlab and stored in a file. What value should I use to specify the "byte stream type" for "open file" in Labview? Should I put something like "DBL" or "I32". I don't know where to find the list of legal "types" in Labiew help. Thanks so much! Felicia Looks like 7.1:<img src="http://forums.ni.com/attachments/ni/170/347924/1/read%20file%207.png"> The Matlab "double" is 64 bits (8 bytes). It doesn't make much sense to use an integer datatype to read a floating point value, so you would use DBL in LabVIEW. The numeric data types table can be found <a href="http://zone.ni.com/reference/en-XX/help/lv/71/lvhelp/Numeric_Data_Types_Table/" target="_blank">here</a>. By the way, this assumes you saved the file as raw binary, as opposed to a .mat file, which is something different. Message Edited by smercurio_fc on 08-08-2008 11:21 AM read file 7.png: http://forums.ni.com/attachments/ni/170/347924/1/read file 7.png Thank both of you! I'm using Labview 6.1 base "Read File", just like the picture above. I've specified the byte stream type as DBL; however, the output is an array of string. What should I do with the string? I've tried to use "Decimal String To Number" but I got an output of "0". I've also tried the "Read From SGL File" in Labivew and ...

why my &quot;write to measurement file&quot; did not work in my program?
hi , &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pls kindly see the attached file that is my project. In my project, the "write to measurement file" didn't work that means didn't save in the .lvm file. :smileysad:Could you give some advices for it ? Thank you so much. I am looking forward your kindly reply. &nbsp; With Respect, Roxy NI 9233.zip: http://forums.ni.com/attachments/ni/170/346238/1/NI 9233.zip Hi Roxy, Are you trying to write to the CompactRIO locally? If so try writing to the C: drive instead of the D: drive, as that is the local storage for the cRIO. Regards Steve &nbsp; hi .. i have tried ur suggestion but it doesn't save the data yet . Do you have any other idea ? Thank you . roxy Hi Roxy, &nbsp; When you say that the file is not saving, where and how&nbsp;are you looking for the file that is being created? Are any error codes being generated when you are running the host vi (create an indicator from the "error out" ternimal of the "Write to Measurement File"vi)? Which cRIO controller are you using for your project? &nbsp; Just to clarify that this method of creating a file will save the file to the cRIO's flash memory and not your computers D: drive. &nbsp; I have attempted to replicate your issue using your original code and it worked successfully by creating a folder in the cRIO's memory called "d" and the text file was stored within this folder. &...

Is it right to use the &quot;sound file write simple.vi&quot;?
I had a problem to use the Sound File Write Simple.vi&nbsp; that is it can not save the data.The links are shown in the following picture.I wonder is it right for me to use that vi like that shown in the picture?And why I can not save file as *.wav while I can save it as a *.txt?Thank you!&nbsp; Image00003.jpg: http://forums.ni.com/ni/attachments/ni/170/349274/1/Image00003.jpg ...

How to add strings to the &quot;Write to measurement file Express Vi&quot;
Hello, Is it possible to add strings to the "Write to Measurement files Express VI"? Basically, I'm using the "DAQ Assistant" express VI and The "Write to Measurement files "Express V... Nonetheless I want to add some input strings (i.e&nbsp; The Operator's name, Oven ID, program file, etc)... is it possible to do it? I think it can be done I just don't know how. Please advice. Thanks ...

How do I disable the Dialog Box Pop Up when using the &quot;Open/Create/Replace File&quot; VI?
I would simply like to write data in real-time to a file without the operator being prompted by a Dialog Box. Please see attachment for the code I used. &nbsp; Thank you! LabVIEW_Write To File Code.doc: http://forums.ni.com/attachments/ni/170/243833/1/LabVIEW_Write To File Code.doc Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input. &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243916/1/Open_Create_Replace.PNG"> Message Edited by Dennis Knutson on 04-25-2007 01:37 PM Open_Create_Replace.PNG: http://forums.ni.com/attachments/ni/170/243916/1/Open_Create_Replace.PNG Dennis Knutson wrote: Try putting the entire path including the file name (and not just the folder) as a path constant (and not use the string to path function) to the file path input. Dennis, Good lesson for me ! :smileyhappy: I m also not familiar with this thing of putting the entire path of a file, even if I wire a False to the Advisory Dialog inout. I thought that it is the maximum feasibility in LV. You opened my eyes &amp; brain. :smileywink: ...

Installer &quot;Source file settings&quot;, &quot;VI Settings&quot; problem in 8.2
I have just upgraded from LabVIEW 8.0 to 8.2 and it seems the Installer "Source file settings", "VI Settings" check boxes no longer have any affect on the built application. &nbsp; For example, if I un-check the "Show Menu Bar" boxes for my Main.vi and build, when I run the built application the Main.vi Menu Bar is visible. &nbsp; It seemed to work as expected with 8.0 though. &nbsp; Any help and suggestions are much appreciated. &nbsp; Aaron Hi Seamus, Thanks for that and I look forward to hearing from you again Aaron ...

Files in &quot;file view&quot; but not in Explorer
Hello all, &nbsp; I reorganized my Project repository on my harddisc. I created subfolders and moved some of my files into them. I used "Move on disc..." option in files view in the project explorer. In windowws explorer all looks fine now. But in files view I have a total of 5 files and 1 directory which are now duplicate in the project but&nbsp;in diffrent folders. This leeds to confilcts in the project because LV doesn't know which file version to use, although there is only one version on harddisc. <img src="http://forums.ni.com/attachments/ni/170/342057/1/filesview-explorer.png"> I hope the picture brings some light in my issue. (BTW: I use LV 8.5.1 on WinXP SP2) Does anyone have an explanation? I will try to resolve the conflicts manually, I think this will work. But still this behavior is strange to me. &nbsp; Uli &nbsp; &nbsp;Message Edited by UliB on 07-18-2008 09:18 AM filesview-explorer.png: http://forums.ni.com/attachments/ni/170/342057/1/filesview-explorer.png Somewhere in the VI/controls that are located in the right spot, their is a reference to the old path location. You could locate these by selecting the missing file, switch to project view (ctrl-e) and find use right-click, find callers.Ton The location within your project explorer may not point to the same (relative) location on your PC's hard drive. &nbsp; R Hello Ton, hello JoeLabView, &nbsp; thank you for your answers. I resolved my ...

Re: I have to raed a &quot;text file&quot; with numbers that was seperates by commas &amp; linefeed, how can I split them into an 1D-array of float numbers
I have a similar situation. Instead of displaying all the data at once I want to step through the data and compare each number with another number. Here is an example of what i am talking about. Lets say my text file contains the following 12345 56789 98765 54321 I want to go through each of these line and compare each number to a number inputed by a user. How would I step through the array? Use a For Loop with auto indexing enabled. <img src="http://forums.ni.com/attachments/ni/170/233162/1/array.JPG"> Message Edited by AndrewAlford on 03-02-2007 12:13 PM array.JPG: http://forums.ni.com/attachments/ni/170/233162/1/array.JPG ...

Re: &quot;File not found&quot; when starting LabVIEW
hello, i would ask about why a ni zone example code problem. i try to run on LabVIEW and it says file not found...(as attached by picture) the link on the ni zone is: http://zone.ni.com/devzone/cda/tut/p/id/6037#softwarethanks.zull azymresearch assistantRF department,UTHM, malaysia file not found.JPG: http://forums.ni.com/attachments/ni/170/292574/1/file not found.JPG ...

Adding an &quot;IMAQ Image.ctl&quot; to the &quot;Display State.ctl&quot; of an XControl prevents LabVIEW from creating a probe of &quot;Display State.ctl&quot;
I am working on an extended IMAQ Display control using LabVIEWs XControl capabilities. &nbsp; I need a copy of the original image passed to add some overlays which must not affect the original image. To achieve this I am creating a backup image in the "Init.vi" and deleting it in the "Uninit.vi". I am storing the reference&nbsp;of this image&nbsp;in the "Display State.ctl" which is part of every XControl. &nbsp; As soon as I am adding an "IMAQ Image.ctl" to the Display State cluster, it is no longer possible to generate a probe of the Display State cluster for debugging purposses. I am always getting the message: "Failed to load or create probe." Deleting the "IMAQ Image.ctl" from the cluster makes the probe working again. &nbsp; Is it a bug or am I doing something wrong? &nbsp; I am working with LabVIEW 8.5 and Vision 8.5. &nbsp; Regards &nbsp; Ingo Bartsch Hello Mr. Bartsch, is it possible for you to post a small example to reproduce the behaviour? It would be helpful to get a description in which way you use the typedef files. I found a example/knowledge base where some informations were included to XControl and LV but not with Vision. <a href="http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument" target="_blank">http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument</a> Best wishes Ja...

Using &quot;file dialog&quot; box to select several files
Hi! I'm using the "file dialog" box to get the path of several files (set to not be limited to one file). If I select only one file, it works fine. If I select several, it says that it can't find the path of the first selected file (see pics).Anyone has a solution ? front_panel.jpg: http://forums.ni.com/attachments/ni/170/326262/1/front_panel.jpg diagram.jpg: http://forums.ni.com/attachments/ni/170/326262/2/diagram.jpg Hi zyl7, if i use it like you i get no error. See my attached example. MikeMessage Edited by MikeS81 on 05-26-2008 10:44 AM Unbenannt 2_LV80.vi: http://forums.ni.com/attachments/ni/170/326264/1/Unbenannt 2_LV80.vi Thanks for that fast answer. Observing your VI, I noticed that the only difference is that in your code you do not precise the "start path"... i removed it in my application, and it works... So it looks like the dialog box doesn't like when the files to select are not in the same folder described by "start path"... weird... Hi zyl7, i�m not sur about that. If i connect a start path and change the path where i select the files a get no error. Mike ...

Re: Help, rather stuck: Should it take 22 ms to (via Visa) write &quot;ISET 2&quot; then &quot;ISET 0&quot; to an instrument? (to a Kikusui electronic load if you're curious)
Dennis hi: I hope you are able to gime a hand with KIKUSUI PLZ-30F electronic load. 1. I'm talking to the instrument via GPIB and it communicates. 2. It doesn't respond on a settings commands - change from CC to CR mode, etc. 3. There are 3 modules in a frame - one master and two slaves. 4. I'm suspicious I'm missing something, and... this company does not have techsupport...??? 5. Their drivers have entirely different format from SCPI and I have no use to them. 6. There is an IVI driver - but I didn't try it yet. &nbsp; Best, Oleg Finodeyev ...

Re: &quot;File not found&quot; when starting LabVIEW #2
sorry, this the program that i take from this link, http://zone.ni.com/devzone/cda/epd/p/id/5146 am_modulation.vi: http://forums.ni.com/attachments/ni/170/292575/1/am_modulation.vi ...

plug-in &quot;not installed&quot; in my LabVIEW project's &quot;Build Specifications&quot;
I moved my LabVIEW project from one computer to another, now when I click on any item under the project's "Build Specifications", I get an error reading "The plug-in for the selected item is not installed on your system." Does anybody know how to fix this? I have no idea what this "plug-in" is.Attached is a screenshot. plug-in error.PNG: http://forums.ni.com/attachments/ni/170/222664/1/plug-in error.PNG ...

Remove &quot;zeros&quot; form a txt file created by Labview
Hi everyone, I got a problem with my txt data and I hope somebody will help here. &nbsp; I'm doing measuremnts and I'm saving the data in a txt.&nbsp; The saved data look like that:&nbsp; 0.000000 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.743435 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.899894 &nbsp; My question &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...

Converting &quot;big&quot; 1D array to 10 dimensional matrix&amp;save to file
Hello &nbsp; I have a ~6000 digit long 1D array that I must convert to 10 dimensional matrix and the save to file. So I have array of 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21....~6000 and I want &nbsp; 1,2,3,4,5,6,7,8,9,10 11,12,13,14,15,16,17,18,19,20 21,..... &nbsp; Reshape array-function could do the trick but it seems that I'd have to insert manually the dimension for every row? And I really don't want to do it 600 times. And array to matrix-function works only for 2D matrixes etc. &nbsp; So are there any functions/existing VI's&nbsp;that could do that conversion automatically? I know one unix-fortran-program that does that but running it in labview/windows is..well... &nbsp; Thanks in advance &nbsp; &nbsp; Thanks for the quick reply, but could you clarify the scetch a bit. And I must point out that the 6000 numbers in the array was an estimate, not really precise number. Though I might be able to trim the 1D-array to spesified lenght. And in this case the number 6000 refers to the input array? (because at least it didn't work with the actual array) &nbsp; The important part of the data is in the middle so it really doesn't matter whether the "un-even" numbers might be left out. Ok,now it works.&nbsp;I was little hasty (&amp;eager to start enjoying weekend)&nbsp;when trying to figure out the sketch. Thanks for the help. ...

&quot;Check if file or folder exists&quot; returns TRUE for invalid path
The 'Check if file or folder exists' VI returns a TRUE when the path is invalid.&nbsp; It seems like it should return FALSE.&nbsp; Here are some examples: Path&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; Result c:&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; TRUE (okay) e:&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; TRUE (this drive not present on my PC) \\SomeServer&nbsp;&nbsp; TRUE (non-existent server) //SomeServer&nbsp;&nbsp; FALSE (okay)Any suggestions?Thanks, Mark Can you show your code?&nbsp; Either attach an image or the actual code. Thanks, RayR Which version of LabVIEW are you using? It returns false for me on the current beta for paths of all the kinds you've shown. I thought you weren't allowed to talk about the beta in a public forum. :smileywink: Here is the file (LV 8.2) ExampleCheckPath1.vi: http://forums.ni.com/attachments/ni/170/324819/1/ExampleCheckPath1.vi It looks like a bug to me. If you just provide a drive letter (i.e. x:\), the File/Directory Info function returns an error which causes Get File Type to be called. This returns a value of 'Directory'. The test of file or folder exists is if Get File Type does ...

Is &quot;write to digital line.vi&quot; compatible in LabVIEW 7.0
I developed a LabVIEW program to change the logic state of a digital line using the "write to digital line.vi". This was first done in labVIEW 6.1. The version was later upgraded to LabVIEW 7.0 later and the VI doesn't seem to perform the function correctly, meaning when I tried to change the line state from "low" to "high", it doesn't seem to be doing anything. Is this because of compatibility issue of "write to digital line.vi" with LabVIEW 7.0? Thanks! There should be no problem using the traditional DAQ driver in 7.0. After installing 7.0, did you reinstall traditional DAQ? Does the traditional DAQ driver show up in MAX? Do you get any error when you run the VI? Yes, the traditonal NI-DAQ still shows up in MAX under software as well as the Devices and interfaces (because I have traditional NI-DAQ (legacy) devices). Can I have both the traditional NI-DAQ and the NI-DAQmx on my computer? When we first ran it, it did come up with a error message. But after we installed the legacy NI-DAQ (I guessed it is the traditional Ni-DAQ), the error goes away. Could you read anything from it? Thanks a lot! The two can coexist though it has been quite a while since I've had to do it. The thing to make sure is that if the card is supported by both drivers, that the driver you want to use is the active one. You can check and reset it in MAX. ...

Labview 8.20
Hi, &nbsp; I have multiple loops/parallel&nbsp;tasks&nbsp;with&nbsp;various communication buses in an RT system which need to write data to its own individual&nbsp;log file which is using an Binary format. What kind of benefits will I get in terms of performance by using the TDM Streaming?&nbsp; The only benefit I foresee is the consolidation of data into an XML type structure and store data into an universal file versus 4 individual ones.:smileysurprised: &nbsp; Are TDMS being handled differently in RT for disk IO&nbsp;management? because each write will take upto 8-9 ms.The goal is to reduce disk IO and improve performance.:smileyindifferent: &nbsp; Any advice? &nbsp; Ashm01Message Edited by ashm01 on 10-30-2006 11:46 PM Hey Bill, Is your application in RT? I would appreciate if you have some benchmarks on this. I am about to convert the binaries to TDMS and was wondering if anyone had any favorable performance gains. Thanks, Ashm01 Hi Ashm01, &nbsp; The TDMS API was developed to facilitate streaming data to disk at high rates, while maintaing the same descriptive information you would find in a TDM file. You might find the following information interesting from an article on Developer Zone (<a href="http://zone.ni.com/devzone/cda/tut/p/id/3539" target="_blank">Introduction to LabVIEW TDM Streaming VIs</a>): &nbsp; Unlike the TDM files, which have a strictly required XML-based header file, T...

Web resources about - write into existing file with &quot;write to text file&quot; - comp.lang.labview

Resources last updated: 3/19/2016 10:11:39 AM