How to read a file .xls to a situation identical to the sequence of the file without specifying the path?

Hello

I am trying to open a file .xls existing from the same location as the test sequence file. Can you TestStand search in the location of the sequence input file test file and then select the if present? Also, can we store the output file in the same place without specifying the path to the code?

Example:

Input.xls-> input file to the test sequence that must be read.

Output.xls-> output file created by the test sequence.

Test.SEQ-> the test sequence that reads Input.xls and creates Output.xls.

If Test.seq and Input.xls are present instead of D:\Test\, the Test.seq code can be modified to pick up the Input.xls automatically without specifying the path? In addition, can Output.xls be created to D:\Test\ without specifying the path?

Thank you

Corinne

Hi Isabelle,.

Yes, this can be done. You can get the path to the current sequence file using RunState.SequenceFile.Path. Then find and remove the last '-' using the string functions to get just the path. You can then use this path to manage your files Input.xls and Output.xls.

-Jack

Tags: NI Software

Similar Questions

  • Someone please tell me how open/read a file on my Mac OS Pro Tour/Yosemite .asf. Please help, frustrated!

    Someone please tell me how open/read a file on my Mac OS Pro Tour/Yosemite .asf. Please help, frustrated!

    of course, it's another format darn owner, so you will need a copy of Windows media player for mac.  (or VLC) there is a way to convert, however, but I suspect it will not free

    Good luck

    John B

  • How to read minidump files?

    My question is small, but has a large influence on the detection of the windows error.

    I have a question, how to read minidump files?

    This is the default location is "C:\WINDOWS\Minidump.

    Specifically, I have no problem in real-time, but I want to know about it.

    I have also noticed that some MVP suggest that you download the minidump & they inspect it. But how do?

    Do not hesitate to make the technical content, I will try to understand that also.

    I have no OS dependencies so here you can chat on any OS (XP, Vista, win 7).

    It would be good if you give me an example. As an example you can quote all the minidump pre inspected which is uploaded to skydrive files.

    S.Chatterjee

    http://support.Microsoft.com/kb/315263 MS - MVP - Elephant Boy computers - don't panic!

  • How To Read RTF file in JAVA?  Using iText?

    How To Read RTF file in JAVA?  Using iText?...

    import java. IO;

    com.lowagie.text import. *;
    com.lowagie.text.rtf import. *;

    public class RTF3 {}
    Public Shared Sub main (String [] args) {}

    System.out.println ("this example produces a RTF Sample.rtf file name");

    Create the Document object
    The myDoc document = new Document();

    try {}

    Create writer to listen to a document object
    and directs the RTF stream to the Sample.rtf file
    RtfWriter2.getInstance (myDoc, new FileOutputStream ("Sample.rtf"));

    Open the document object
    myDoc.open ();

    Create a paragraph
    Point p = new Paragraph();
    p.Add ("Helloworld in Rtf file... amazing isn't");

    Add a paragraph to the document object
    myDoc.add (p);

    }
    catch (Exception e) {}
    System.out.println (e);
    }
    close the document
    myDoc.close ();
    }
    }
    Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width (F)
    at com.lowagie.text.rtf.document.RtfPageSetting.rectEquals(RtfPageSetting.java:433)
    at com.lowagie.text.rtf.document.RtfPageSetting.guessFormat(RtfPageSetting.java:362)
    at com.lowagie.text.rtf.document.RtfPageSetting.setPageSize(RtfPageSetting.java:341)
    at com.lowagie.text.rtf.RtfWriter2.setPageSize(RtfWriter2.java:248)
    at com.lowagie.text.Document.open (unknown Source)
    to the view. RTF3.main (RTF3. Java:23)

    Can you help me?

    import com.lowagie.text.Document;
    import com.lowagie.text.rtf.parser.RtfParser;
    import java.io.FileInputStream;

    String Fichierentree = "sample.rtf."
    Document document = new Document();
    document. Open();
    RtfParser parser = new RtfParser (null);
    parser.convertRtfDocument (new FileInputStream (inputFile), document);

  • How to read a file of all the text in a pl/sql variable?

    Hi, I need to read an entire text file - which actually contains an e-mail message from a system of content management - in a variable in a pl/sql package, in order to insert the database information and then send the email. I want to read the whole of a sudden text file, no not one line at a time. Shoud I use Utl_File.Get_Raw or is there a more appropriate to do this?

    How to read a file of all the text in a pl/sql variable?

     ...
    your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
    ....
    
  • When I try to open a compressed folder, I get an error message. How to open this file without error message?

    When I try to open a compressed folder, I get an error message saying: "Windows cannot open the folder. _ Compressed (zipped) folder is invalid. How to open this file without error message?

    Click on this link: http://www.vistax64.com/tutorials/65254-zip-file-support-restore.html or

    http://www.7-zip.org/download.html

    Make sure that you choose the correct version of bit. (32-bit or 64 - bit).

    Helped?

  • How to read a file that contains a matrix!

    Hi all

    I have a file that I saved from matlab using this command: SAVE filename X - ascii-double - legs.

    but I don't know how to read and extract its data to draw the graph of the intensity.

    Any help please.

    Best regards

    Nams


  • How to read two files (one updates every second, the other is constant) simoltaneously

    Dear all,

    I'd appreciate if someone help me.

    I want to read two files, one is the temperature that updates every second, and the other is energy hysteresis that has specific lines and is constant.

    I had a program in the discussion forum to read a file as it is updated. I checked this program in my case and it works.

    Then I added playback file hysteresis energy to the existing file. But while I run the program, the energy hysteresis file is read with all the lines.

    But the goal is that every time the updates of the temperature, I need to read a line of the file hysteresis energy.

    in this way every second, so, I have a new temperature data and a row of the other file.

    I tried to use 'for loop' inside the program, but it did not work, because the temperature reading will stop until that end of the loop.

    I joined the program.

    Could someone help me how read only a row of hysteresis energy file every time that the temperature updated?

    IS that what you wanted to achieve?

  • How to read a file FBW

    I had to reformat my hard drive and did a windows vista backup of my files.  After the format I have a backup file I can't open.  How can I open the backup file?  The files have an extension of file FBW.  Thank you.

    Hello

    see this link:

    http://www.techsupportforum.com/forums/F217/how-to-read-HP-FBW-back-up-files-from-Vista-190926.html

    http://www.techsupportforum.com/forums/F217/how-to-read-HP-FBW-back-up-files-from-Vista-190926-3.html

    Let us know the results.

  • How to read/write files in Photoshop CC?

    Hi all
    I have plugin for Photoshop CC2014 and above using node.js to reading/writing files, download remote files and restful calls. It does not in Photoshop CC because CC uses 4 CSXS and node.js is not available here. So is it possible in javascript to perform these operations (reading/writing/download) in CSXS4? I think I can use XMLHttpRequest to download files, but how to read and write? Thank you!

    CEP has an API to access Local file.

    GitHub - Adobe-CEP/CEP-resources: Getting Started with Adobe CC 2014 Extension SDK

  • How to read a file of track of PeopleSoft

    Hello

    Would be kind to explain to me how to play this trace file:

    PSAPPSRV.355081-1160 13.04.050.000 Cur #3.MYDOMAIN RC = 0, hard = 0.000 type Bind-5 = 18 length = value 2 = 76
    PSAPPSRV.355081-1161 13.04.050.000 Cur #1.MYDOMAIN RC = 0, hard = 0.000 COM Stmt = SELECT / * + FIRST_ROWS * / A.SETID, A.ORIGIN, D.DESCR FROM PS_ORIGIN_PO A, PS_ORIGIN_PO_V1_LN, D WHERE D.SETID =: 1 AND D.SETID = A.SETID AND D.ORIGIN = A.ORIGIN, D.LANGUAGE_CD = 'FRA' UNION SELECT / * + FIRST_ROWS * / SETID, ORIGIN, PS_ORIGIN_PO WHERE SETID = DESCR : 2 AND NOT EXISTS (SELECT 'X' FROM PS_ORIGIN_PO_V1_LN D WHERE D.SETID = A. SETID AND D.ORIGIN = A.ORIGIN AND D.LANGUAGE_CD = 'FRA') ORDER BY 1, 2
    PSAPPSRV.355081-1162 13.04.050.000 Cur #1.MYDOMAIN RC = 0, hard = 0.000 type Bind-1 = 2 length = value 5 = SHARE
    PSAPPSRV.355081-1163 13.04.050.000 Cur #1.MYDOMAIN RC = 0, hard = 0.000 type Bind-2 = 2 length = value 5 = SHARE

    What is the total os SELECT statement?

    And why is there a time for each line of Bind-n?

    Thank you.

    Thank you.

    I have a few question about Trace majic. If you can answer me.

    For statistical graphics, that shows the circle? They are based on the number of instructions: SELECT, DELETE,... PeopleCode?

    the validation time and time to search? Fit into the total time for a SQL statement?

    Suppose we have:

    Total time Number of calls No traces Number of extractions Time of the exe Extraction time SQL

    0,046000 44 36 0.000000 0.000000 0,046000 SELECT OPRDEFNDESC FROM PSOPRDEFN WHERE OPRID =: 1

    We must multiply 0.046 (time Total) by 44 (number of calls) to get the elapsed time for this select statement?

    How to read the chart on the first tab (summary; statistics)?

    Vertical axis is in seconds. It shows?

    Horizontal is in what unit? It shows?

    Thank you and best regards.

  • How to read a file only?

    Hello world... I am a new Fuze 2 GB owner and I have a problem that I couldn't solve by reading the user manual or searching for this forum.  I use the "rocket" (mainly) to listen to stories and readings in MP3 format.  I placed about a dozen files on my rocket through Windows Explorer drag / move directly into the 'Audiobooks' folder of the rocket.

    My problem: when a story ends, the following starts immediately.  I don't want the next file to play; I want quiet (given that I listen to it while asleep).

    Is it possible to force the "rocket" to play a file only and then be silent while it drift off in his own 'Sleep' mode (that took me 30 minutes)?

    Furthermore, I have disabled "Ch. Mode".  (I've even left "Shuffle" and "Repeat" in 'Music' just in case it might have something to do with it.)

    Thank you very much!

    Because no one taken here have to answer with another "sorry, don't know," I kept trying to figure this out myself.  I discovered a workaround solution and write here for the benefit of any third party who may want to read a file only.  That's what I did:

    I transferred my files (stories and readings in MP3 format, which I originally put in the audiobooks folder) in music-> songs.  Note that this DIY does not work via the audio books folder!

    Then, I selected a file to be read.  When he started, I activated the button "Push and Hold".

    This operation has copied the individual file to Playlist-> list go.

    When I wanted to play this file (and this single file) all in falling asleep, I sailed to music-songs-> list-> Playlist > go.  I chose this file and it played.  At the end of the file, there was blessed silence.

    Don't forget to put your energy saving or sleep to shut down the "rocket" after x number of minutes.

  • How to read a file .mkv on 32EX550 led tv

    I want to read a file .mkv on my new TV LED (32EX550), can someone help me

    You can run a server on your pc like TVERSITY. For my part I use an external media player. Just so you know not to play all the files on all devices. TVersity a bridge well enough however.

  • How to print a file without having to install any printer

    Hello!

    As I know, there was a possibility of printing to a file without having to install a printer and get a picture of your page to print somewhere as a service bureau or print Center. Please help how to get out if there is this possibility.

    Thanx

    There is a nice free program called PDFCreator which will allow you to do:
    http://www.pdfforge.org/PDFCreator>

    I used it since Windows 95 without any problem. It is very simple to install and use.

    SC Tom

  • How to merge PDF files without creating a pdf portfolio?

    I use Acrobat Pro DC and when I go to merge two PDF files, I do tools > combine files > select my PDF files that I want to merge and sort it then creates a PDF portfolio, I don't want to. I think it has changed with the last update, but how do I merge my files without creating a portfolio? I'm not selecting 'Create a Briefcase' anywhere, and I used to be able to do it before the update. Any ideas?

    Click on the Options button in the combine files dialog box and you will be able to change it there.

Maybe you are looking for