Any Ideas How I can Make this Formating Program Run Faster?

I'm using LabView 8.0.1 to extract columns and rows from MS Excel to format to a specific format which can be read into a software program we use in-house.
The software program requires a specific header which declares variables, etc and also fomats the extracted data in an arcane way.
Due to an error in the software program we use, the file format that has to be read in is not uniform and has the first line containing  two point sets (see attached file for an idea of what I am talking about). Any other format will not be read by the program.
This introduced some problems, and finally, I ended up with an highly inefficient program. It runs, but is relatively slow.
The programs, the input excel file and output file are given for example. 
A couple of notes on the files:
1) The file type used as input is just an excel file which has been saved in space-delimited format.
2)  To speed up the process,I  permitted the formating of only 2 variable types (x, y, z, variable 1, variable 2). I haven't gotten to adding more variables. Ideally, I would like to count the number of columns on the excel file, read the headers and then write the output file automatically with all the variable names.
3) I used sequenced loops in the vi, which is probably not the best way to do this. I am guessing that I can interweave all the numbers into one large array before writing --- but have no idea how I can accomplish that.
The output file extension is actually .fvp. I've renamed it in order to upload the file.
Any help/suggests would be greatly appreciated!!
~Janak
Files are attached.
Attachments:
ParticlePathExport-SlowVi.vi ‏65 KB
Input_File_Example.txt ‏1 KB
Output_File_Example.txt ‏1 KB

Use the Format Into String Function instead of the large concatenation.  Most of your inputs are constants, so they could be put into the Format string of that function.  It looks like you have only 2 truly variable string inputs, so they would show up as %s in the format string.
So your format string would be something like this (\codes turned on)  (VI is LV 8.5)
Message Edited by Ravens Fan on 09-28-2007 05:05 PM
Attachments:
Example_BD.png ‏20 KB
Untitled 2.vi ‏16 KB

Similar Messages

Maybe you are looking for

  • Regarding SAP Note 410799 - Enhancement of line item extraction FI-GL, FI-C

    Please read this note on this part: ....  Therefore you have to program a function module that reads the customer master in the R/3 system (table KANN1) and fills the ORT01 field of the customer enhancement. In the changing parameter C_STRUCTURE the

  • How to increase the performance in server 2008 R2 for RDP users

    Hi, My application take to much time to load. If anyone double click on mail client the exe file will appear in task manager but it will open after 5 mins. how to increase the performance. My sever configuration is as below, SC2600 Intel  motherboard

  • Can't load photos for developing

    Help appreciated. All my dng's (with development changes) are visible in the lightroom library but they will not load when I want to develop further.  This started after I tidied up my backup files.  Any suggestions? Thanks Adam

  • Bluetooth range suddenly drops 80% on PowerPC G4 laptop

    It's been flawless for 2+ years. Then yesterday, upon awakening from a 2-hour nap, the laptop's Bluetooth went bad. It will only see the (recommended) Kensington Si670m mouse when the mouse is physically located ON the laptop case. When mouse is in i

  • JPA OneToMany - ManyToOne Relation will not stored in DB

    Hi, I have the following problem: I have two tables: Logon -username -password -company_id Company -Name So Company has a OneToMany Relation to Logon and Logon a ManyToOne to company I have created the following Entity classes: class Logon{     @Many