How to read strings from a file data?

Hello

I have a little. CSV files, which were inside the trees channels (load force, opening force, distance) captured from both engines.

I want to load multiple CSV files and analyze only two strings (opening force and distance of travel) and send them to a report (go the distance on the x-axis and opening force to the y-axis), but in this report as all channels of all CSV files I have loaded. (make a multiple load)

My question is how can I read csv files the channels I'm interested and then analyze?

I use this example to HELP to load the data:

Dim MyFileNames, iCount
Call FileNameGet ("ANY", "FileRead", "D:\BOF-MIU\BOF Dim", "data CSV (*.)") "CSV), *.csv", "All.lst", True, "data selection".
MyFileNames = Split (FileDlgFileName, "|")
ICount = 0 to Ubound (MyFileNames)
Call DataFileLoad (MyFileNames (iCount))
Next

"and then I try to analyze, but I don't know how to divide the csv file to get only the channels I want."

Call ChnSmooth ("filedlgfile &" [1] / axis 1: Position (uu) "," / smoothed ', 12, "maxNumber" "...) Y, E, SmoothWidth, SmoothType

Thank you for your time.

HI Maria,

Here is the approach to file dialog you asked--use it instead of the "FilePaths = GetNaviSelFiles()' in the command script I sent you:

DlgTitle = "insert a file dialog title here...". »

StartPath = ProgramDrv & "Libr\Dat\".

FileExts = ' *.» DAT; *. TDM.

Call FileNameGet ("All", "FileRead", StartPath, FileExts, "No", True, DlgTitle)

FilePaths = Split ("|" & FileDlgFileName, "|")

The trick in the TDR file I sent you was set up for mode "exanding" in the "Page layout settings" dialog box  It is an old display option that can cause problems if used in bad situations, but it seemed that it would make your life easier for this particular task.

Brad Turpin
Tiara Product Support Engineer

National Instruments

Tags: NI Software

Similar Questions

  • How to read DBX outlook express files?

    HOW TO READ OUTLOOK EXPRESS DBX FILES

    I just bought a new computer with Win7.  Now that the OE is gone (OMGosh!) How dbx files be read?  I have OE files and now find there is no apparent way to read.  I downloaded ParetoLogic but hesitate to run it.  The message says it will make changes to my computer.  What happens if the files are made completely unreadable!  I ran the scan function and several "pilots" were listed as obsolete.  Can it be good?  I just bought the latest and greatest computer!

    You need import dbx files into your e-mail without a name client. Win7 doesn't have a native email program of its own.

    You use Windows Live Mail by accident?

    Transfer of data from Outlook Express and Windows Live Mail:

    For messages:

    Copy the * ENTIRE * OE message store folder to a flash drive. (Folders.dbx must be included). Place it on the desktop or another location on the computer using WLMail. Open WLMail and: file | Import | Messages | Microsoft Outlook Express 6, and the point where it was saved.

    Location of OE message store:

    In OE: Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    For addresses:

    Open the address book in OE and file | Export | Address book (wab) and save it to the desktop. Copy it to a flash drive. Place it on the desktop or another location on the computer using WLMail.

    Open the Contacts list in WLMail, (go |) Contacts in the Menu bar) and the file | Import | Address book (wab) Windows and the point where you saved it.

    Note: If you use a CD or a DVD instead of a flash drive, after placing on the new machine you must remove the read-only attribute in the properties before you import.

    Bruce Hagen MS - MVP [Mail]

  • How to read continuously from the rs232?

    Hello

    I'm new to LabVIEW and my questions would be obvious for some for you. So please help if you know the solution.

    It's for my school project. For your information, we need to schedule a Committee of Altera DE2 to control traffic lights (something like that) and at the same time, the Commission shall forward the States of enlightenment to a computer with LabVIEW installed via an RS-232 cable.

    The rest of the project was fine except for the part of LabVIEW, because as I said earlier, I'm new to LabVIEW.

    We use the "basic series write and Read.vi" in the folder examples of NEITHER. The problem is that we do not know how to change the vi in order to receive the data that come the DE2 Board permanently. Each time, the vi stops reading after receiving 24 bytes of data.

    So, the first question is:
    1.) how to read continuously from the RS-232 port? (We tried to use while "loop" but without success, maybe we were doing it the wrong way.) If you know the solution, please enlighten us for us in a detailed manner.

    (2) Secondly, once we have received the 'chain', how can convert us to bits (0 and 1) so that we might be able to manipulate the bits, for example turn on the LEDs that correspond to the bits.

    Thank you.

    Instead of reading the bytes of the port so to read that many bytes (which may be zero), just do a VISA read for 1 byte.  He will wait for this next byte.

    To get an array of Boolean out of this byte, use this code.  He turns the characters into a byte array.  Takes the first and the only element of this array, and then converts this single U8 number into an array of bytes.

    Which country are you?  I've never seen or heard lights orange before.  Only the yellow lights.

  • How to read messages from a blocked number?

    How to read messages from a blocked number?

    You do not have.

    You need to unlock and then you can read the messages that comes after unlock it.

  • How to read wma Windows RT files?

    Original title: wma and windows rt

    How to read wma Windows RT files?

    Read WMA files all the time. However, they would not play on my home network (stored on a NAS). I had to copy the music files on the spot and they play perfectly on the RT.

    Mark
  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • How to read several bye a file of text one

    Hi all

    I need to select the files of text several times and read the files one by one

    some how I managed to select the file to a single text and analyze the data in the text file

    I need to do for mutiple files at the same time

    Please help me

    gowthamggk wrote:

    I have sucessfully read a text from the file through this VI

    but like like that... I need for multiple files

    Why do you not use loop For?

    gowthamggk wrote:

    also should read the text line by line

    You can right-click the function "read text file" and select "read lines." See the code snippet below.

  • How to read Windows 7 dump files?

    I am currently using Windows 7 Ultimate (x64bit), I bought and did a new install of a few months back and I think I had my first BlueScreen?

    That's happened
    I had just taken, House and I turned on my PC and connected, I diverted, not even spread out there for like a minute, when I turned my computer back was to the black screen where it asks if to start windows normally or in safe mode, etc. because it was not shut down cleanly. I was so cionfused I started thinking, ' didn't I shut my computer last night, and just had this back on? So I summed it up to maybe a power outage unnoticed fast and I reconnected in and went to the kitchen for water, when I came back that I saw a message box saying that my Windows has recovered from a mistake, so I clicked to see the 'other info' and he said 'blue screen '.

    I was so surprised, cause I'never never in all my 10 years using a PC, experienced the blue screen, even though I know what it looks like.

    I read alil and learned that in any %, I can find a dump file mini that will tell what caused the problem in my system options and recovery it says it is registered as a "dump of memory the kernel", but I can't seen to open it cause I have not the right software?

    I need to know if I should continue trying to figure why I had the blue screen and where I can find the software to open the DMP file.

    Or...

    Should I leave it be since the message says "recovered Windows of an error?

    Help me please...

    And I thank you.

    In addition, the following link has some info on playing the minidump files (WinDbg read kernel memory image files):

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-system/blue-screen-errors/e1c01b9c-89ac-4EEE-b60a-6a5e0eb4d641

    If you have received a single blue screen error may be an anomaly and not to be concerned.

    However if the blue screen errors continue then you could try to figure out what is the cause.

  • How to remove links from a file PDF * but * also leave no trace [blue underscore]

    Hi all

    I create a PDF file with Google Docs (via Save As PDF) but in post processing, I need to delete all the links incorporated into the most painless process possible (because there could be up to a 100 embedded links). I was disappointed to see that processing of the Document > remove all links leaves behind the blue underline. And I liked discouraged a few other people who have asked this same question, never received a response.

    Unfortunately, it won't be acceptable to go more far by selecting edition content > change the text & Images > Format ... then remove the underlines, and change the color to black.

    Otherwise, I even tried automating the deletion of links gDocs (before the publication in PDF format), but the gDocs fails on the script that I have experimented with.

    Any ideas on how to stop the technology miss me?

    Thank you

    Blue 'underline' comes from the file creation / authoring application. You need to rub there (or set up such that it is not taxed).

    The 'line' becomes a 'path' in PDF format, and you won't have any practical way to eliminate easily these.

    Be well...

  • How to read different packages localization files

    Hello

    I followed the tutorial below to locate a blackberry app.

    http://supportforums.BlackBerry.com/T5/Java-development/localizing/Ta-p/442783

    Do I always need to put my files .rcc and .rrh in the same place as my java class that will read them tor? Can I add my resource files to a more generic location for several classes of different packages can read the same resource file.

    Thank you

    I've got this working now. I just created a class to access the locale and the access to the parameters key regional that all go through this class.

  • How to read the two columns of data in a file of PDM.

    Hi all

    I am reading two data columns for the 2nd of a PDM file two sheets, as shown below.

    Two columns of data must then be shared so they can be displayed in a xy chart and also apply a linear adjustment VI. I implemented the graph xy and linear adjustment using a txt file (see below), therefore all the outputs work, however this application with a tdms file turns a little more tax.

    So, essentially, that I don't know how read the correct leaf and therefore the columns in the PDM file and then how to produce the graph xy and linear adjustment of the data types produce. Here's my current attempt, which produces several errors of the type of terminal, as well as not being able to select the exact data in the PDM.

    Any help/suggestions/example vi on this asap would be greatly appreciated.

    Thanks in advance,

    Pete

    Also the PDM file viewer. VI helps you easily understand the structure of data files.

  • How can read/write on a file and stored in the internal memory of the device, 10 BlackBerry?

    I want to store a string value of my request. After that, I remove my device app & reinstall my app. I want to get the previous value stored in recently installed application.

    I think that if I can write the value to a file that is located in the internal memory of the device. After that, I read the value of this file in any time. I am new to the cascade of Blackberry, so I don't know how to write / read a file.

    Please help me...

    Thanks in advance.

    Hi all

    I solved my problem. I'm using the code below:

    QString call: readFromFile()
    {
    QFile textfile("shared/documents/Test.txt");
    QString str ="";
    If (textfile.open(QIODevice::ReadOnly |) QIODevice::Text))
    {
    QTextStream in(&textfile);

    Str = in.readAll ();
    }
    else {}
    QTextStream out (stdout);
    off<>
    }

    TextFile.Close ();

    return str;
    }

    Thank you all for the valuable suggestion...

  • How to read values from property XMLfile into BPEL process local variable?

    I would use a file of properties with certain parameters, for example

    < myparm1 >
    12345
    < / myparm1 >

    How can I read from a BPEL process such a property XML text file and assign it in by example variable local 'intparm1 '?

    Where (what directory) should I put this XML file property it is always available for playback?

    Peter

    Hello

    You can also use

    ORA: readFile () function as follows:
    ORA: readFile(xml file location (ex. "file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xml"),xsd file location (ex.» fichier: / / / D:\\SOA\\FileAdapters\\readFile\\test\\test.xsd») "))

    inside the activity assign assign to the variable you want.

    concerning
    arababah

    Published by: arababah on August 10, 2009 12:55 AM

  • How to import contacts from a file on my desktop wab?

    My contacts came from a windows xp computer and have been exported to a wab file.
    How can I now import these out of my office?

    Looks like you will need to use a Microsoft program: http://fileinfo.com/extension/wab

    I hope whatever you find to open this file can export to a CSV or perhaps LDIF or VCF file, then import Thunderbird.

  • How to remove characters from a file name using applescript

    Hello

    I use an AppleScript to write files from an application.

    The files are written as JPEG and PDF files

    I want to omit parts of the name of the JPEG file

    Name of the file looks like this, 70618_MEN_327926_2200x3480_1.jpg

    I need to be renamed on output, 327926_1

    That is to say, delete all characters to the end of the second line of underscores, so all characters after the third underscore and leave all the characters after the fourth underscore character.

    Hello

    You can use a Manager, like this (Manager contains explanations):

    ------------------------

    tNom set to "70618_MEN_327926_2200x3480_1.jpg".

    Set newName to my getChars (tName)

    -the result is "327926_1.jpg".

    on getChars (t)

    value {oTid, point text delimiters} {text item delimiters, '_'}

    the entire at t text elements - divide the text using the line underscore as separator, the result is a list of items

    If (count l) > 4 then - at least 4 characters to underscores

    the charsAfter4_ value to (points 5 thru - 1 l) in the form of text - the text after the fourth underscore

    the value charsBetween2_3_ in section l 3 - the text between the second and the third underscores

    the value t charsBetween2_3_ & "_" & charsAfter4_ - concatenate two strings

    end if

    set the text of the delimiters to oTid - reset point of text delimiters

    return t

    getChars end

Maybe you are looking for

  • SHOULD SAVE you OR EXPORT PRECIOUS VIDEOS (not responding)! :(

    I just recently visited with my grandmother and recorded a very nice, long conversation between the two of us who she shared many stories. I want to pass on this experience to my children and, eventually, their children, but Quicktime is boring. -_-

  • Firefox has an option that will be trasalate CZ Web sites?

    I want to use a foreign Republic CZ to do genealogical research Web site. Will there be an option in the Firefox browser which will result in Czech in English? I would like the website to work in English.

  • Pavilion laptop TS 11: Wifi does not

    I got this noteboof from a friend and he had a partition called (D) RECOVERY of 22GB. I accidentally formatted and now my wifi does not work. I updated my drivers and tried many things but its still does not. What can I do?

  • Services Terminal Server Windows Server 2008 R2 improved Configuration Error IE

    We have a Windows Server 2008 R2 with enhanced IE configuration set to off for all users on the Server Terminal Server services only.  The sessions of the Terminal services Server running Windows XP.  Whenever an end user clicks on Microsoft Outlook

  • slow to load on a single album

    IM filing slowly until my clip + 8 GB I noticed an album special it slow to load. Frankly it crashes until it loads can not push, press on, even turned off. Well isn't it load the song, about a 30 seconds of silence.