Using MAX API to generate report

I am trying to automate a software installation procedure through the use of the NIMAX_GenerateReport() function. We have a software installation that requires a manual edit operation after the installation.  After installing the software the user examines the memory range of a 6602 counter/timer card in NI-MAX and then edits the value into an INI file that the software reads at run time.
I am exploring the possibility of automating this step by having the installer call the NIMAX_GenerateReport() function to generate an XML report and then read the memory range from the XML report file and finally edit the INI file with the memory range value read from the report. To test this out I wrote a small command line LabWindows program that called the generate report function. It worked fine on my build machine but when I tried to run it on the target machine I get the following error return from the generate report function call: "An unknown error occurred".  The version of NI-MAX on the target PC is 3.1 and the version on the build PC is 4.6.2. I was wondering if the version of NI-MAX on the target PC is too old to support the NI-MAX API. My questions are:
1. Is this a valid way to programmatically obtain the memory range information from the 6602 card or is there a better way?
2. How can I upgrade the version of NI-MAX on the target PC. I'm not sure what installs it.
Thanks,
Jim

Hello Jim,
The way you are going about your coding sounds correct.  Per your second question, MAX installs when you update the computer drivers.  To do this go to ni.com/drivers, search for DAQmx, and then download the most current version of DAQmx that is compatible with your computers.  By installing a newer version of DAQmx MAX will automatically be updated.  
Regards,  
Marcus
Marcus M.
PXI Product Support Engineer
National Instruments

Similar Messages

  • Process with RenderPDFForm using Java API not generating output file

    I have a short-lived process that renders a PDF/HTML form based on input parameters. It also takes a .xdp file as input. This works just fine from with
    in Workbench (9.0). I have created a Java client to invoke this process. When I invoke the process from the Java Client,
    it is not creating the output file. When I look at the invocation response, I see the output parameter (output file) name, but it is null.
    Here is my code.
    Properties connectionProps =
    new Properties(); 
    connectionProps.setProperty(
    "DSC_DEFAULT_SOAP_ENDPOINT", "http://hostname:8080");connectionProps.setProperty(
    "DSC_TRANSPORT_PROTOCOL","SOAP"); 
    connectionProps.setProperty(
    "DSC_SERVER_TYPE", "JBoss"); 
    connectionProps.setProperty(
    "DSC_CREDENTIAL_USERNAME", "username"); 
    connectionProps.setProperty(
    "DSC_CREDENTIAL_PASSWORD", "password"); 
    //Create a ServiceClientFactory object
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    //Create a ServiceClient object
    ServiceClient myServiceClient = myFactory.getServiceClient();
    //Create a Map object to store the parameter value
    Map params =
    new HashMap();
    File file =new File("C:/test1/test.xdp");File ofile =
    new File("C:/TestProcess.pdf"); 
    //String formName = "RD410-4.xdp";
    InputStream inFile =new FileInputStream(file);OutputStream oFileStream =
    new FileOutputStream(ofile); 
    byte[] cData = "".getBytes(); 
    Document inputData =
    new Document(inFile); 
    // Document outputData = new Document(oFileStream);
    inputData.passivate();
    params.put("Form", inputData);params.put(
    "FormId", "12");params.put(
    "RevId", "12");params.put(
    "OutputType", "PDF");params.put(
    "targetSubmission", "http://localhost:8090/LCWebProject/HandleData");params.put(
    "param1",1);
    InvocationRequest invokeRequest = myFactory.createInvocationRequest(
    "MyApplication10/Processes/RenderForm", //Specify the short-lived process name
    "invoke", //Specify the operation name
    params,
    //Specify input values
    true); //Create a synchronous request
    InvocationResponse invokeresponse = myServiceClient.invoke(invokeRequest);
    Document encryptDoc = (Document) invokeresponse.getOutputParameter("outputFile"); 
    //Save the encrypted PDF document returned by the process
     //Save the password-encrypted PDF document
    File outFile =new File("C:\\test1.pdf");encryptDoc.copyToFile (outFile);
    I see the output parameter "outputFile" in the invokeresponse object. But it is null.
    Can anyone guide me in the right direction ?
    Thanks,
    Jyothi

    I am not giving the solution, providing you a hint..
    This is the query you need to satisfy,
    SELECT NVL(R.DESCRIPTION ,CP.USER_CONCURRENT_PROGRAM_NAME)
    FROM FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROGRAMS_VL CP,XDO_DS_DEFINITIONS_B XDS
    WHERE ( ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'U'
    AND R.REQUESTED_BY = :$PROFILES$.USER_ID ) or
    ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'R'
    AND R.RESPONSIBILITY_ID = :$PROFILES$.RESP_ID ) )
    AND R.PROGRAM_APPLICATION_ID = CP.APPLICATION_ID
    AND R.CONCURRENT_PROGRAM_ID = CP.CONCURRENT_PROGRAM_ID
    AND XDS.APPLICATION_SHORT_NAME=
    ( SELECT APPLICATION_SHORT_NAME
    FROM FND_APPLICATION
    WHERE APPLICATION_ID=CP.APPLICATION_ID)
    AND XDS.DATA_SOURCE_CODE = CP.CONCURRENT_PROGRAM_NAME
    AND R.OUTPUT_FILE_TYPE='XML'
    AND R.STATUS_CODE not in ('E', 'D', 'T', 'X')
    ORDER BY R.REQUEST_ID DESC
    Go to system profiles and query for 'Concurrent:Report Access Level', responsibility you need and modify the profile name accordingly....

  • Error using JXL api in a KM Report

    Hi Expert,
    My report have to use JXL api. I have already a DC containing libraries, including JXL 2.6.2.
    I declare my DC in Used DC of my report, but each time I launch it it throws me this error :
    "error executing: /reporting/reports/Content Management/Tools/rise_metrics/1237311667619.xml(com.sapportals.wcm.service.reporting.ReportInput@356422d2) - java.lang.NoClassDefFoundError: jxl/format/CellFormat at com.ctsao.project.rise.metrics.RISEMetrics.execute(RISEMetrics.java:460) at com.sapportals.wcm.repository.manager.reporting.monitor.ReportComponent$ReportWrapper.execute(ReportComponent.java:160) at com.sapportals.wcm.service.reporting.scheduler.ReportScheduler$Runner.run(ReportScheduler.java:220)"
    Is it possible to use this API in a report or there is some restriction ?
    Thanks in advance for your help,
    Jean-Edouard Nicolet.

    Hi,
    Try to include the jxl.jar file inside your private/lib folder of project and run as a workaround.
    Regards
    Baby

  • Using SRW api : strange error message

    Hi all,
    i am using the srw api to generate reports out of the database. here is the procedure i have written:
    CREATE OR REPLACE PROCEDURE Create_Reports
    AS
    v_paralist PORTAL.SRW_PARAMLIST;
    v_ident     PORTAL.SRW.JOB_IDENT;
    BEGIN
    v_paralist := PORTAL.SRW_PARAMLIST(PORTAL.SRW_PARAMETER('',''));
    PORTAL.srw.add_parameter(v_paralist, 'GATEWAY', 'http://my.ias_machine.com/reports/rwservlet');
    PORTAL.srw.add_parameter(v_paralist, 'SERVER', 'repserver);
    PORTAL.srw.add_parameter(v_paralist, 'DESFORMAT', 'PDF');
    PORTAL.srw.add_parameter(v_paralist, 'DESTYPE', 'FILE');
    PORTAL.srw.add_parameter(v_paralist, 'DESNAME', 'w:\transfer\pdfs\eventdriven_test.pdf');
    PORTAL.srw.add_parameter(v_paralist, 'REPORT', 'testreport.rdf');
    PORTAL.srw.add_parameter(v_paralist, 'USERID', 'username/password@exampledb');
    v_ident := portal.srw.run_report(v_paralist);
    END;
    The following error has occurred during execution:
    ORA-01849: hour must be between 1 and 12
    ORA-06512: at "PORTAL.SRW", line 290
    ORA-06512: at "PORTAL.SRW", line 774
    ORA-06512: at "PRAMA.CREATE_REPORTS", line 16
    ORA-06512: at line 2
    Neither in the report nor in another table which i use for this , i have a column with date or time datatype, so why does this error message occur?
    Do you have any ideas?
    Katharina

    If I run this report locally in reports builder it works without problems. Is it possible that the setting system time of the computer has something to do with this error message? After testing and troubleshooting the last days I found out that the report runs without problems only in the morning until 12.00 AM (?). In the afternoon and evenings I get this error message...
    Has anybody similar experiences?
    thank you!!

  • Generate report with data from database package

    Hi
    Is it possible to generate a report where the values come from an oracle database package instead of from an sql query declared in the report itself?
    If yes, how is it done?
    Appreciate any help. Thx.

    Hi,
    You can use REF CURSORs to generate reports from a database package.
    For information about REF CURSORs, please see Chapter 40 'Building a Paper Report with REF CURSORs' of the Oracle Reports Building Reports manual.
    This chapter is at:
    http://download-uk.oracle.com/docs/html/B13895_01/orbr_refcur.htm#i1011693
    Hope this helps.
    Regards,
    Panna

  • Make a Reference Quicktime Movie using QuickTime API for windows?

    Hi all,
    Does anyone know how to generate or modify a QuickTime Reference file?
    I try to generate a QuickTime reference file (.mov) that will point to external video clip Avid OpAtom such as
    \Avid MediaFIles\MXF\V1.mxf,
    \Avid MediaFIles\MXF\A1.mxf,
    \Avid MediaFIles\MXF\A2.mxf.
    I can use Avid News Cutter (NLE) to export a Quicktime reference mov file that point to external OpAtom mxf files.
    My questions are:
    1. How can I use QuickTime API to generate the same QT reference?
    2. Can we use QuickTime API to parse or modify the Avid Generated QT reference file?
    If I want to change the referenced external video source location info can we use QT API to do that?
    3. I have tried John Cromie's "QuickTime for .Net and Com Developers" using AxQTControl1.URL to parse a QT reference file, however, I can't find out where the external source clip location info in this object!!
    4. I have tried Legacywindowsqttools Dunpster but still can't parse the location info.
    Does anyone know where the external source clip location info hide in QT API object?
    Alex

    Insert a Shape and re-size & position it to cover the movie. In the Inspector > Graphic tab, set the Opacity of the Shape to 0%. Then hyperlink that transparent Shape.

  • Soap API error for reports 5 pages or more

    Hi,
    I am using soap api to get reports from BI Publisher, I am able to print reports 5 pages, when i try to get reports with pages more than 5 pages getting this error.
    [Error] Execution (1: 1):
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "APEX_040100.WWV_FLOW_WEBSERVICES_API",line 129
    I am using the  following code snippet, Make request is throwing an error
    l_xml := APEX_WEB_SERVICE.make_request(
        p_url      =>v_rpt_wsdl,
        p_action   => v_rpt_action,
        p_envelope => l_envelope
    l_xml is an xmlType
    My Apex schema is : APEX_040100
    Oracle : 10g
    Apex version: Application Express 4.1.1.00.23
    Please help me folks
    Thanks
    Kris

    Bummer! Thought that was the golden ticket!
    Can you run that function successfully through Toad or SQL Developer for those reports? Does it return a value? It looks like it is telling you that APEX_WEB_SERVICE.MAKE_REQUEST call didn't return anything. You are just requesting xml at that point so there shouldn't (theoretically) be size issues unless maybe you are requesting the whole phone book.
    Jen

  • Generate XML report using MAX Generate report.vi

    Hi All,
    Caught in simple and wierd problem. I'm using a simle VI called MAX Generate Reoprt.vi to generate an XML report but getting error
    Error code -2147220553
     Error description :Incorrect report file extension provided.
    The image of the block diagram is attached. I'm able to generate HTML reoport from MAX(absolutely no probs).
    Thanks in advance
    Regards
    VDC
    Attachments:
    Error_in_MAX.JPG ‏7 KB

    You must have the correct file extention. Here's what is wirtten in the detailed help of the function:
    output filename specifies the filename of the generated report.
    You must have the correct extension for the type of report to generate (.xml, .htm, .html, or .zip).
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Using Word Easy Table Under Report Generation takes long time to add data points to table and generate report

    Hi All,
    We used report generation tool kit to generate the report on word and with other API 's under it,we get good reports .
    But when the data points are more (> 100 on all channels) it take a long time  to write all data and create a table in the word and generate report.
    Any sugegstions how to  make this happen in some seconds .
    Please assist.

    Well, I just tried my suggestion.  I simulated a 24-channel data producer (I actually generated 25 numbers -- the first number was the row number, followed by 24 random numbers) and generated 100 of these for a total of 2500 double-precision values.  I then saved this table to Excel and closed the file.  I then opened Word (all using RGT), wrote a single text line "Text with Excel", inserted the previously-created "Excel Object", and saved and closed Word.
    First, it worked (sort of).  The Table in Word started on a new page, and was in a very tiny font (possibly trying to fit 25 columns on a page?  I didn't inspect it very carefully).  This is probably "too much data" to really try to write the whole table, unless you format it for, say, 3 significant figures.
    Now, timing.  I ran this four times, two duplicate sets, one with Excel and Word in "normal" mode, one in "minimized".  To my surprise, this didn't make a lot of difference (minimized was less than 10% faster).  Here are the approximate times:
         Generate the data -- about 1 millisecond.
         Write the Excel Report -- about 1.5 seconds
         Write the Word Report -- about 10.5 seconds
    Seems to me this is way faster than trying to do this directly in Word.
    Bob Schor

  • How to create cross tab reports using RAS SDK api with Crystal Reports XI

    Hi Everybody,
    Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
    Thanks in advance.

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • Generating reports in .doc format (Word Document) using Java POI - HWPF

    Hi
    Can anybody help me how to generate the report in .doc format using POI API?
    Please share the sample code, if you have.
    Thanks in Advance
    Dhilip

    Hi,
    I dont think that your requirement has to do with ADF capabilities.
    You want to edit a word document with JAVA. For that reason, you will need an API, as the suggestions above.
    You can do it without ADF and by using standard JAVA and the API of your choice. a static void main will do for that matter.
    ADF comes into the game when you want to handle the document with your ADF application.
    This means that you either want to get your new data to be placed on your doc from BC or any other DataControl or you want to do something else with ADF..
    My guess is that you want to get data from ADF into your Doc.
    You could create an API on handling your Doc and then use it into your ADF application.
    Regards,
    Dimitris.

  • How to test a generated report in my application by using web test written with Visual Studio 2012 Ultimate

    Hello,
    My application generates report in different formats, such as: Adobe, Excel, XML, CSV and HTML
    I have a webtest that makes all preparations, then generates a report. 
    In my application I have an option either to save the new generated report or open it.
    When I try to open the new report, the web test doesn't see it and therefore not allows me to test it.
    Please refer me to knowledge base or let me know how to resolve this type of issues.
    Thanks.
    qatm

    Hi qatm,
    Thank you for posting in MSDN forum.
    Since this web performance test is used to verify the Http request/respond work correctly in VS, and the browser session is then displayed as a list of URLs in the Web Performance Test Editor.
    However, as you said that you want to test a generated report in my application by using web performance test in VS2012 Ultimate. If the report is not as the Http format, so I think that it is not possible to test a generated report by using web performance
    test.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Generate report using Word Report Generation VIs error

    When I Generate report using Word Report Generation VIs  ,the error is generated.
    This is  my Vi
    can somebody  tell the error reason?
    The attaché is Vi (one is 2011,other is 8.6)
    Attachments:
    report-8.6.vi ‏16 KB
    report2.vi ‏33 KB
    template.doc ‏40 KB

    Hi Ben64
                 Thank you! The problem is solved.
       BUT when I use the Word Easy Graph vi  ,the result is
    I want the Graph (curve),like as:
    How Can I do get the picture.
    I have other problem. I want to get default name for the new word file.
    liang

  • Issue while generating report using web.show_document with https

    Hi All,
    I am facing some issue while seeing the report using web.show_document as shown below:
    https://ucrmskr.apac.nsroot.net:10301/forms/html/001725032_gca.rtf_
    In this case the report opens directly without asking for me to save or open or cancel option
    whereas if I hit
    http://scrmskr.apac.nsroot.net:7801/forms/html/001725032_gca.rtf_
    it asks for save or open or cancel option
    so that I can save the report to my machine and open in wordpad format
    The report generated in the first case is not coming in proper format
    Below are my forms.conf mappings:
    # Name
    # forms.conf - Forms component Apache directives configuration file.
    # Purpose
    # It should include the weblogic managed server (routing) directives for
    # the servers where Forms applications are deployed and other miscellaneous
    # Forms component OHS directives.
    # Remarks
    # This file is included with the OHS configuration under
    # $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
    # virtual mapping for the /forms/html mapping.
    RewriteEngine on
    RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
    AliasMatch ^/workaroundhtml/(..*) "/ucrmap1/weblogic/bea/ucrms/config/FormsComponent/forms/html/$1"
    RewriteRule ^/ucrms/icons/(..*) "/workaroundicons/$1" [PT]
    AliasMatch ^/workaroundicons/(..*) "/ucrmap1/weblogic/bea/ORA_PFRD/forms/java/$1"
    RewriteRule ^/forms/help/(..*) "/workaroundhelp/$1" [PT]
    AliasMatch ^/workaroundhelp/(..*) "/ucrmap1/ucrrgbg2/help/$1"
    <Location /forms>
    SetHandler weblogic-handler
    WebLogicCluster kauh0079:9001
    DynamicServerList OFF
    </Location>
    Please let me know what needs to be done additionally if we are trying to hit https because in the second case we were hitting http with similar mapping in diff environment and it was generating report successfully.
    Regards,
    Harish

    Thanks for answering,
    I changed the URL from
    http://nbotlaguduru.dms.local/export/FMSLaborChargesalcs20060829132645.pdf
    to
    http://nbotlaguduru.dms.local:8889/export/FMSLaborChargesalcs20060829132645.pdf
    and the same problem occured
    the file is located on my local C drive in:
    C:\lcs\export
    seems as though I am missing something else as well
    any ideas?

  • Custom report  using KM API Error

    Hi All,
    I have to create a report using KM API. i got the custom report using KM API from sdn and I imported into my NWDS. While i compile it, it is giving me this error.
    "The project cannot be build because the classpath for com.sap.netweaver.bc.rf.common.exception.ResourceException is not found."
    I have imported all the required jar files.
    How can i rectify this error?  Could anyone help me out in this issue?
    Regards,
    Divya

    Hi Divya,
    > I have imported all the required jar files
    First, I don't know what you mean with "imported" - in any case, you should <i>not</i> put the JARs into your project but just reference these.
    Also, obviously you have <i>not</i> referenced <i>all the required jar files</i>; ResourceException is part of bc.rf.common_api.jar, which is part of portal application com.sap.netweaver.bc.rf, at least for NW2004s.
    Please use the ClassLocator tool (search the WebLogs for this term to get some initial instruction) to avoid such questions in the future. It will make your life much easier.
    Hope it helps
    Detlev

Maybe you are looking for

  • ORACLE Password Change using APEX FORM

    Greetings! I would like to find out, if there is a utility or a sample page that permits the Database password changes for the DB users within the Database. My goal is for users to maintain password using the Browser, instead of using SQL*Plus or sim

  • The enter key to login pages no longer works in Firefox 5

    After upgrading to Firefox 5 hitting the enter key after entering my password on login page does nothing. Before it would submit the page. This was a problem with the beta, too, and I had to downgrade to 4 to fix it. That works fine in 4.

  • My installation of Adobe Reader XI keep crashing on my MacBook Pro

    Hello, I have a MacBook Pro running Lion 10.7.5 & Adobe Reader XI 95% of the time when I run Adobe reader it crashes.  Every now and again i works fine. I've tried this with all external devices disconnected.  I've also re-fitted the origina 4GB that

  • How to Use 0TCT_C01 Infocube in BW System?

    Hi BW Experts, I want to Install 0TCT_C01, 0TCT_VC01 and 0TCT_MC01 to get the OLAP Statistics Information. Please can anyone help me. What are the Data Sources we need to Use for these Infoproviders?? And what are the settings we need to do?? I read

  • Airport Card : Not seeing Airport intermittently

    Using 10.4.11, my Powermac G4 sometimes does not recognize Airport-on status bar- usually after a restart . It has to be enabled by clicking Netgear. Works impeccable then. Anything to do, with login items like Mail ? Or Temperature Monitor ? Or the