File as a parameter in teststand

Hello,
how can I give an action (LabView adapter) a file as parameter.
I have a VI which needs a path (a text file to parse)
I can change this to string.
a) But how can I give TestStand this file as parameter and
b) when this is possible, is it also possible when the source is a networkshare?
thx

The basic way is to use a string in TestStand.
It doesn't matter if it is a network shared file.  As long as you can open the file, LabVIEW will be able to do the same.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Doubt in locating a file in context parameter

    I have got a file named mylibrary.txt in WEB-INF/data directory.
    I wish to map the file in context Parameter.
    While trying this,
    <context-param>
         <param-name>library-file</param-name>
         <param-value>/WEB-INF/data/my-library.txt</param-value>
    </context-param>     
    I got a null pointerException while reading the file in my servlet. I am using Eclipse.

    The code as follows
    public class ListLibraryServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public ListLibraryServlet() {
              super();
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              response.setContentType("text/html");
              PrintWriter out=response.getWriter();
              ServletContext context=getServletContext();
              List dvd=(List)context.getAttribute("dvdlist");
              out.println("<head><title>ListLibraryServlet</title></head>");
              out.println("<body bgcolor='D2B48C'>");
              out.println("You currently have <b>3</b> DVDs in your collection<br>");
              out.println("<table>");
              out.println("<tr>");
              out.println("<th>Title</th>");
              out.println("<th>Year</th>");
              out.println("<th>Genre</th>");
              out.println("</tr>");
            Iterator it=dvd.iterator();
            while(it.hasNext())
              DVDItem item=(DVDItem)it.next();
              out.println("<tr>");
              out.println("<td>");
            out.println(item.getTitle());
            out.println("</td>");
              out.println("<td>"+item.getYear()+"</td>");
              out.println("<td>"+item.getGenre()+"</td>");
              out.println("</tr>");
              out.println("<tr>");
            out.println("</table>");
            out.println("</body>");
            out.println("</html>");
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
         }                   I am retrieving the file as
    public class InitializeLibrary extends javax.servlet.http.HttpServlet implements javax.servlet.ServletContextListener {
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InitializeLibrary() {
              super();
         public void contextInitialized(ServletContextEvent event)
         {   InputStream is=null;
             BufferedReader reader=null;
              List dvdlist=new ArrayList();
              ServletContext context=event.getServletContext();
              String libraryfile=context.getInitParameter("library-file");
              try
              is=context.getResourceAsStream("libraryfile");
              reader=new BufferedReader(new InputStreamReader(is));
              String record;
              while((record=reader.readLine())!=null)
                 String[] fields=record.split("\\|");
                 String title=fields[0];
                 String year=fields[1];
                 String genre=fields[2];
                 DVDItem item=new DVDItem(title,year,genre);
                 dvdlist.add(item);
              context.setAttribute("dvdlist",dvdlist);
              catch(IOException e)
                   e.printStackTrace();
              catch(Exception e)
                   e.printStackTrace();
         public void contextDestroyed(ServletContextEvent event)
    }

  • How to escape newline character(nl) in file content conversion parameter?

    Hi Experts,
    How to escape newline character(nl) in file content conversion parameter?
    For example:
    field1field2field3
    field4field5field6
    Means Item is splitted in two lines.
    I want to SKIP new line character
    and to collect all SIX fields.
    What will be the file content conversion parameter?
    Thanks in Advance..........

    Hi,
    as far as i know there is nothing in the standard. But the question is why dont you combine at mapping the fields into only structure?
    Regards,
    Udo

  • How can i make calculation in two file using two parameter

    how can i make calculation in two file using two parameter
    Solved!
    Go to Solution.

    i am having two differnt file, both file having no and time , i want to make programme that when, number and tiome is same in both file give that index onle  in , i am going to attached the file
    Attachments:
    iisc11-jan2010extract.txt ‏1253 KB
    sp3.xlsx ‏12 KB

  • How to send file as a parameter to php script

    Hi,
    Can any body help me to send the file as a parameter to php script. I am using the HttpURLConnection method.
    Thank

    String msg= "name=" + strName + "&surname=" + strSurname;
                   byte[] msgAsBytes = msg.getBytes();
    I am able to pass the string to the php script as
    URLConnection con = url.openConnection();          
              ((HttpURLConnection) con).setRequestMethod("POST");
              con.setDoOutput(true);
              con.setDoInput(true);
              con.setUseCaches(false);     
    OutputStream oStream = con.getOutputStream();
                   oStream.write(msgAsBytes);
                   oStream.flush();and in php, i store into the global variable and it work fine
    if(isset($_POST['name' ]&&isset($_POST[' surname'])it works fine for me. But problem is with the file. How can I send the file to php. Please help me. Thanks

  • Reg..csv file as input parameter in sqlloader

    Hi,
    I have .ctl file. every time i received the file name in diff name.
    rather than hardcode file name i wants to take .csv file as input parameter plesase do help in this.
    here is the code..
    OPTIONS (SKIP = 1, BINDSIZE=100000)
    LOAD DATA
    CHARACTERSET WE8ISO8859P1
    INFILE '/WOAU1/bkp/pgp_masterkey.csv'
    BADFILE '/WOAU1/bkp/pgp_masterkey.bad'
    DISCARDFILE '/WOAU1/bkp/pgp_masterkey.dsc'
    Thanks
    Atul

    A better alternative would be to avoid using SQL*Loader and instead use External Tables for which you can use an ALTER TABLE statement to change the LOCATION of the table (which details the filename). (A valid reason for using EXECUTE IMMEDIATE in PL/SQL). That way you keep all your control inside the database and you're not messing about with o/s scripts to pass different parameters to an external program.

  • I am getting Cannot save file. Bad parameter.

    I am getting Cannot save file. Bad parameter After setting new security data & setting flag to requires full save.

    Below is my code:
    ASPathName asPathName;
                                  char *filePath = "D:\\dum1.pdf";
                                  asPathName = ASFileSysCreatePathFromDIPath(0, filePath, 0);
                                  PDDocSaveParamsRec pdDocSaveParams;
                                  memset(&pdDocSaveParams, 0, sizeof(PDDocSaveParamsRec));
                                  pdDocSaveParams.size = sizeof(PDDocSaveParamsRec);
                                  pdDocSaveParams.saveFlags = PDSaveFull | PDSaveCollectGarbage;
                                  pdDocSaveParams.newPath = asPathName;
                                  pdDocSaveParams.fileSys = NULL;
                                  pdDocSaveParams.mon = NULL;
                                  pdDocSaveParams.monClientData = NULL;
                                  pdDocSaveParams.cancelProc = NULL;
                                  pdDocSaveParams.cancelProcClientData = NULL;
                                  pdDocSaveParams.major = 1;
                                  pdDocSaveParams.minor = 4;
                                  pdDocSaveParams.saveFlags2 = PDSaveUncompressed;
                                  PDDocSaveWithParams(pdDoc, &pdDocSaveParams);

  • Getting an error message trying to open a file, "Missing required parameter 'from' for method "open'. What do I do?

    Getting an error message trying to open a file, "Missing required parameter 'from' for method "open'. I've tried opening in CC and CS5. What do I do? Can the file be salvaged?

    Try opening as a copy, and/or copying the file to a new location and try opening that.

  • Pass in file name as parameter

    Can canyone help me in how to pass the filename as parameter? I have a list of xml files so i hope to pass the files. Does anyone have a code sample of showing me how to do? Thanx

    i have a java program that is to print out the xml files such as Declaration.xml, Aviation.xml and Financial.xml so i hope to create a class that is to pass in these file names to this program.

  • How to pass file name as parameter into url: or fo:external-graphic src

    Hello gurus,
    In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
    Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
    But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
    could some one help me on this. I tried the following options
    <fo:external-graphic src="url($ln)" />
    url:{$ln} in web etc...
    here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
    later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
    thanks,
    Vijay

    Vijay
    What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
    Lets assume the token name is DLOGO you can reference that in your template.
    <?param:DLOGO?>
    this needs to be at the top of the template. Then where you need to embed the image just reference the value using
    $DLOGO
    You can embed this in the external graphic field
    As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
    Tim

  • Sender file adapter missingLastFields Parameter

    hi all,
    i have a wierd problem...
    i use a sender file adapter with content conversion to read the data of a file.
    all is fine until he get to a record when the last couple of fields are not in the file (and it's ok that they don't appear). i want the adapter to put no data in the last couple of fields but convert them to the XML tags.
    i am using the parameters: missingLastFields and keepIncompleteFields to keep the fields although they don't appear in the file.
    the parameters i am using are these:
    SA140.fieldNames:
    ActionCode,UpdateType,IDNumber,Filler1,RecordCode,Filler2,ExteriorColour1,Filler3,ExteriorColour2,Filler4,ExteriorColour3,Filler5,ExteriorColour4,Filler6,ExteriorColour5,Filler7,ColourArea1,Filler8,ColourArea2,Filler9,ColourArea3,Filler10,ColourArea4,Filler11,ColourArea5,Filler12,TireCode1,Filler13,TireCode2,Filler14,TireCode3,Filler15,TireCode4,Filler16,TireCode5
    SA140.fieldFixedLengths:
    2,2,10,4,3,41,5,1,5,1,5,1,5,1,5,1,2,1,2,1,2,1,2,1,2,1,6,10,6,10,6,10,6,10,6
    SA140.keyFieldValue:
    140
    SA140.missingLastFields:
    Ignore (i used the parameter "add" too and it still didn't work)
    SA140.keepIncompleteFieids
    true
    the row i am trying to read is:
    024018837002186 21140         1799    KW16    RW17    1010    9147                                         F18L19     7503 F18L19     7502 F18K27     7508
    as you see a couple of the last fields are showing in the text.
    could you please tell what am i doing wrong?
    maybe there is another parameter i missed?
    regards,
    roi grosfeld

    sorry but it still doesn't work...
    i am getting the same error:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 5 according to structure 'SA140':java.lang.Exception: Consistency error: last field in structure 'SA140.' is incomplete - specify 'keepIncompleteFields' parameter accordingly to allow this
    regards,
    roi grosfeld

  • File Adapter--Processing parameter configuration

    Hi Experts,
    I need to configured the sender and reciever FTP Adapter to Archive a 37 MB text file within a FTP server.
    It is taking 20 min to archive the file.
    does this requirement requires any change in Parameter configuration(like transfer mode, channel availabilty planning( i am using daily with duration 30 min) to make it fast.
    Thank you,
    MK

    Hi Experts,
    To archive huge files using FTP adapter, i looked at the Michal weblog to zip the file :
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    please explain how and where to write the below file
    @ECHO OFF
    7za.exe a -tzip D:\file_cat\%2.zip %1
    del %1
    and also explain
    Zipping a file can also be done with jar.
    For example,
    jar cvf m.zip m.txt
    will zip m.txt into m.zip
    No need for any other software as jar is highly likely to be on the XI/PI server...
    and how to implement it in the FTP  adapter configuration.
    Thanks in Advance.

  • Report file name as parameter

    There's probably a simple answer to this but I can't figure it out...
    I have made a jsp-page to view my report using CR4E's Create Viewer JSP wizard. Instead of hard-coded report file name, I'm taking the name from URL parameter like this
    myviewer.jsp?report=myreport.rpt
    The report shows fine until I click any of the controls (next page, print, export, etc.) in HTML-viewer. This seems to run some javascript code that calls the myviewer.jsp again, but loses all URL parameters! How can I preserve those parameters?

    Page navigation with the viewer works by post-back to the page where you've defined the viewer - the viewer interprets the postback GET parameters for the action required.
    This means that the ReportSource must be available for every postback - usually, it's stored in HTTP Session.
    Check out the following sample codes:
    http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_web_samples.zip.asp
    Sincerely,
    Ted Ueda

  • Passing a property file as a parameter to imqdbmgr

    I would like to add the tables to the database during boot of a server since I use an EC2 instance. In this scenario, I need to replace the OpenMQ configuration file (config.properties) used under the glassfish domain which is generated when the domain is generated.
    This configuration file would have been good to supply as an argument to the imqdbmgr create tbl command. According to the documentation this isn't possible, but I really consider that a necessity for such a command. I know that I can use -D options, but I would really like to add a property file instead of adding a lot of -D options.
    Any views or comments? Should this be added as a feature request or is this already supported?

    For your parameter, it would be something simple like
    i_xml  IN  CLOByou could also accept an XMLType.
    You can find some parsing examples against XMLType data in {thread:id=992813}. If you are putting the data into the DB, lean towards using the SQL with XMLTable. If you need it in PL/SQL code, lean towards the XMLType parsing.

  • File adapter  - fieldSeparator parameter

    Hello everyone!
    I've configured an FTP sender adapter that picks up CSV files. The fields in the file are separated by a spaces, eg. <b>DTL  1     14800575110370 12 0000003</b>
    What do I indicate in the "fieldSeparator" parameter of the Content Conversion to indicate that the fields are separated by a 'space'?
    Warm regards,
    Glenn

    Hi,
    The Hexadesimal notation for space is '0X20' and fro TAB separator is '0X09'.
    for more details check this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Phani
    Reward points if helpful

Maybe you are looking for

  • IOS 5 will refuse to install on my iPad 2

    I hope someone can help me. I am about to go insane. I have litereally spent almost 3 hours on this. I am trying to get my iPad 2 on iOS 5. My UDID is registered and everything is good on that end. When I try to restore, I am met with one of 2 messag

  • Additional "Pricing Types"? - I need 3 pricing tiers per product

    Is there a way to add additional pricing types for individual products?  For instance, my client needs 3 pricing types (2 secure). Right now there are pricing types for consumer and wholesaler. We need pricing types for consumer, dealer, and employee

  • Is there any support from labview for ADAM5000 modules

    Is there anyone using ADAM5000 modules.In my application I want to communicate with ADAM module through serial port.Any example codes available in LAbview

  • Hash Table copy to Text file : urgent

    HI I have a hash Table which cintaine id's and name pair Now i want to copy or dump this whole table into a Text file, But i do not know how to do this . This is very urgent for me. Please help me . Preeti

  • Slow motion/fast motion effect

    Hi guys I'm making my first music video for a song I made. It'll be my first time learning and using a video production software, and I'm not sure if iMovie will be able to handle these type of effects or if I should invest in Final Cut Pro X instead