Run VI Asynchronously

There is a great procedure for creating steps to Run VI Asynchronously.
https://decibel.ni.com/content/docs/DOC-21743
I tried calling this VI Asynchronously again later in my Sequence and it doesn't seem to be running.
What I do is call this vi that starts a sinewave @ x hertz, y volts.  Do some testings on other outputs in Teststand 4.1.  STOP the vi by passing a parameter into the vi that is running asynchronously ( as in the above example).  Now I want to chg the freq to z hertz and w volts.  I tried calling the vi asynchronously again w the new values but there isn't anything on my output.  What am I doing wrong??
Should I pass the values in as parameters like the STOP??  that would mean creating a dozen values...amp, freq,etc.  Why can't I call the same vi again using the Run VI Asynchronously?
Thanks
Solved!
Go to Solution.

Hello,
I have recreated this example originally posted on 8-6-2012; which is also found at https://decibel.ni.com/content/docs/DOC-21743.  
I am having difficulty "stopping" the VI that is running asyncrhonously in another Thread.  It often times will execute the VI in the background, and other times it will give me an error: 
"Unknown variable or property name 'Stop'. in Filename.vi-> Filename.vi.Proxy Caller"
Error Code: -17036; Unknown Variable or Property name.  
If it doesn't give me any error, and executes properly, it won't stop  with the f(x) statement of "Parameters.Stop = True"
 Labview 2014, TestStand 2014

Similar Messages

  • Teststand 4.1.1 Crashes when using two or more "run VI Asynchronously" at a time

    I am running a terminal window reading constantly from a serial port running in a different thread using "Run VI Asynchronously". 
    Towards the end of the test I open a separate VI in another thread also using "Run VI Asynchronously".  This VI constantly reads packets from the Ethernet.
    I am running the Sequence in the C++ User interface and for some reason every once in a while TestStand Crashes and in the dialog it it says
    "MFC Operator interface Example has encountered a problem and needs to close.  We are sorry for the inconvenience."
    Error signature:
    AppName: testexec.exe    AppVer: 4.1.1.55   ModName: msvcr80.dll
    Do any of you have any idea as to why this would do this?  Also what is the best way to open and close these threads?
    Any help would be greatly appreciated.
    Test Engineer
    L-3 Communications
    Solved!
    Go to Solution.

    In case 1 below you should definitely be using the sequence context of the new thread rather than the original thread. Using a subsequence (in a new thread) directly is a good idea for that use case.
    In case 2 are you dynamically/programmatically creating local variables in any of the threads or are you just setting/getting values? Setting and getting values is protected by the TestStand engine, but dynamically creating properties underneath Locals or other containers requires you to do your own thread synchronization (i.e. using locks) around such modifications and access.
    Also, in case 2 you are using locals from the original thread that creates the new thread right? Is that what you want? It would be safer to pass the actual local variables that you need in this case as parameters rather than passing the sequence context that belongs to a different thread. Also do you start and stop the asynchronous vi in the same subsequence in the same thread? Do you wait for the asynchronous VI to finish before exiting the subsequence?
    All that run VI Asynchronously does is create a temporary sequence and use the sequence call step to call it in a new thread, so doing that explicitly instead will give you more control over how the parameters are passed so it's probably worth making that change anyway. You might however need to be doing more than that to ensure thread safety depending on what parameters you are passing in and what the VIs and other code in the original thread is doing with them.
    Hope this helps,
    -Doug

  • Running an asynchronous LabView vi with Teststand makes the message pop-ups close automatically

    I am calling a LabView vi asynchronously very early on in my test. Throughout the test I use "set" and "get" type vi's to retrieve and feed information to this vi but when I try to perform error checking and call a message pop-up, the pop-up closes right away as if the the first button is automatically being pushed. This behaviour exists only while the Asynch vi is up and running, the pop-ups operate correctly when the vi is not present. By correctly I mean they wait for user input...anyone have a clue why this is happening?

    Hi,
    What labview and teststand versions are you using, and is it possible to post and example.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Run tasks asynchronously at boot

    [robin@pingwing ~]$ systemd-analyze blame | head -n 5
    3.595s updatedb.service
    1.403s man-db.service
    196ms [email protected]
    185ms systemd-logind.service
    166ms alsa-restore.service
    updatedb and man-db are run every time the system boots (or only the first boot of the day, not sure) to update their databases, which is fine. I like it that way.
    As you can clearly see they're not holding up the boot process for too long, although still 90% of the boot time is spent on those 2 services
    I was wondering whether there's a way to have them run asyncronously? So they'd still be run every time, but the boot process would continue rather than waiting for those 2 processes to exit.
    Thank you.

    phw wrote:
    Why run those tasks on system startup at all? On my system the man-db service is inactive, but is set to run daily via systemd timers (https://wiki.archlinux.org/index.php/Sy … ctionality)
    I would check your output of
    systemctl list-timers
    Probably those two services are already there.
    [robin@pingwing ~]$ systemctl list-timers
    NEXT LEFT LAST PASSED UNIT ACTIVATES
    Tue 2014-07-22 00:00:00 CEST 12h left Mon 2014-07-21 11:05:04 CEST 46min ago logrotate.timer logrotate.service
    Tue 2014-07-22 00:00:00 CEST 12h left Mon 2014-07-21 11:05:04 CEST 46min ago man-db.timer man-db.service
    Tue 2014-07-22 00:00:00 CEST 12h left Mon 2014-07-21 11:05:04 CEST 46min ago shadow.timer shadow.service
    Tue 2014-07-22 00:00:00 CEST 12h left Mon 2014-07-21 11:05:04 CEST 46min ago updatedb.timer updatedb.service
    Tue 2014-07-22 11:20:08 CEST 23h left Mon 2014-07-21 11:20:08 CEST 31min ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
    So what do I do with this?
    Either way, I have no problem with it running at boot. I was just wondering whether I could do it asynchronously.

  • [SOLVED] Run cronjob asynchronous, but preferably at a given time?

    Hello!
    How can I add a cronjob, which should run preferably at a specified time (like every day 5 o clock in the morning), but if the computer is off at that time, it will run some other time?
    To make it run every day at 5 o clock, I can use "00 05 * * * /home/tom/_scripts/bkp.sh". But if the computer is off at that time, it wont run that day.
    So to make it run asynchronous, I should use @daily.
    How can I combine those two options?
    Last edited by cyberius (2011-05-14 18:18:56)

    As I understand it, FREQ=1d has the same effect as @daily. I'm not sure with either one you can actually set a 'preferred' time, unless it's a time range. For example, if you have @daily set and your backup runs at 0500 on Sunday, then Monday you don't turn on the computer until 1600 (4pm) so the backup runs at 4pm, then Tuesday it wouldn't run again until sometime after 4pm, because it hasn't been a full day yet. I don't believe (anyone feel free to correct me if I'm wrong here!!) that you could do a normal (d)cron job that would would run on Monday at 4 (because the machine's not on) and then again Tuesday morning at 5am when you'd really prefer it to run. The time range (07-15 from my example above) does give some more flexibility, but I don't think exactly what you're looking for.
    Scott

  • Message interface in synchronous mode but run in asynchronous

    I try to use SAP-XI in synchronous mode with JDBC to JDBC connection.
    A 'Outbound' message Interface under synchronous mode is defined for
    sender while an 'Inbound' message interface under synchronous mode is for
    receiver.
    In the sender communication channel, a "select" SQL statement is
    placed for getting data via JDBC.
    For inbound interface, a stored procedure is triggered and it will
    return 2 paramaters.
    From transaction SXMB_MONI, I found that the message was in 'asynchronous'
    mode and I don't know how to collect the 2 output paramters.

    Dear all,
    Upon all your suggestions, my testing have a big jump with below results but still have some problem
    In the sender communication channel, a "select" SQL statement is  placed for getting data via JDBC. It works.
    For inbound interface (receiver), below stored procedure was actually triggered and it DOES return 2 paramaters.
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:MT_t1 xmlns:ns0="http://xxx.xxx.hk/zxxxx/jdbc">
    <update>
    <storedProcedurename action="EXECUTE">
      <table>LIBRARY.PANSYTEST</table>
      <TRNX_TYPE IsInput="TRUE" TYPE="CHAR">001</TRNX_TYPE>
      <TRNX_NO IsInput="TRUE" TYPE="CHAR">101048</TRNX_NO>
      <OUT_TRNX_TYPE IsOutput="TRUE" TYPE="CHAR">001</OUT_TRNX_TYPE>
      <OUT_TRNX_NO IsOutput="TRUE" TYPE="CHAR">101048</OUT_TRNX_NO>
      </storedProcedurename>
      </update>
      </ns0:MT_t1>
      Then I got the response message from the inbound interface 
      <?xml version="1.0" encoding="utf-8" ?>
      <ns0:MT_t1_response xmlns:ns0="http://xxx.xxx.hk/zxxxx/jdbc">
      <update_response>
      <response_1>
        <update_count>0</update_count>
        </response_1>
        <OUT_TRNX_TYPE>001</OUT_TRNX_TYPE>
        <OUT_TRNX_NO>101048</OUT_TRNX_NO>
        </update_response>
      </ns0:MT_t1_response>
      This response message was mapped to below message type. I suppose this will be passed
      to outbound system (sender) and run a SQL "Update ps_cu_pg1iawd set cu_retrieved_by = "ZCU_CUSIS"
      cu_action_cd = 'P' where cu_trx_type = 001 and cu_trx_num = 101048"
      BUT the table ps_cu_pg1iawd is NOT updated and NO error was found in SXMB_MONI.
        <?xml version="1.0" encoding="UTF-8" ?>
      <ns0:MT_Response xmlns:ns0="http://xxx.xxx.hk/zxxxxx/jdbc">
      <statement>
      <PS_CU_PG1IAWD action="UPDATE">
        <table>ps_cu_pg1iawd</table>
      <access>
        <cu_retrieved_by>ZCU_CUSIS</cu_retrieved_by>
        <cu_action_cd>P</cu_action_cd>
        </access>
      <key_1>
        <cu_trx_type>001</cu_trx_type>
        </key_1>
      <key_2>
        <cu_trx_num>101048</cu_trx_num>
        </key_2>
        </PS_CU_PG1IAWD>
        </statement>
      </ns0:MT_Response>

  • Running commands asynchronously

    Is it possible to run an OracleCommand asynchronously in odp.net? I know that this is not possible at this time in ado.net (like it is in ado) and that you have to get around it by making asynchronous method calls; any help would be appreciated.

    ODP.NET does not support async operations in this release.

  • How to run reports asynchronously with rwservlet?

    Hi,
    Is there any examples how to use rwservlet to call some PDF reports asynchronously?
    My application (deployed on the serverA https://www.myDomain.com/) constructs the redirection URL to display the desired report (and the reports servlet is installed on the server B):
    https:// www.myDomain.com:5553/reports/rwservlet?report=myReport.rdf&myReportParam=someValue
    Because my report execution time can be longer that 5 min, sometimes I have “Page not found” in my web browser, and for that reason I decided that I must execute the reports asynchronously.
    I know that I can have all the information (jobId and server) in an XML format by adding &statusformat=xml&BACKGROUND=YES to my URL. My problem is that I can’t handle this XML response on the client side, in the browser with JavaScript - XMLHttpRequest (problems with SSO authorisation).
    Do I need another application (with a JSP page for example) to be deployed to the same server with the rwservlet to make the asynchronously call?
    Thanks for any suggestion,
    Ivat

    Look at "Using Event-Driven Publishing":
    http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_evnt.htm#sthref1870

  • Running jobs asynchronously

    Suppose I want to run 3 procedures
    If I call them in a function like this
    proc1()
    proc2()
    proc3()
    Then proc2 won't start until proc1 finished and so on.
    How can I start them simultaneously without proc2 caring for whether proc1 finished or not?
    Basically I'm looking something like using "&" in Unix to run jobs in background.
    My environment is Oracle 10g in Windows 2003.

    Hi,
    You can use [DBMS_SCHEDULER|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sched.htm#CIHHBGGI] to run the procedure and continue with other procedures, for examples you can see [DBMS_SCHEDULER|http://psoug.org/reference/dbms_scheduler.html].
    More examples in [Scheduler in Oracle Database 10g|http://www.oracle-base.com/articles/10g/Scheduler10g.php]
    Regards,
    Edited by: Walter Fernández on Jun 29, 2009 10:18 AM - Adding other url...

  • Can't run report in ASYNCHRONOUS mode

    Hi All,
    I'm trying to make a report run in ASYNCHRONOUS mode. I want to press a button on a form, submit the report to the reports server and be able to navigate within the form while the report is being executed on the reports server.
    My problem is, no matter what mode I choose (ASYNCHRONOUS or SYNCHRONOUS), the mode ALWAYS ends up being SYNCHRONOUS. After I press the button (code below), I get the hourglass and I can't navigate within the form until the report is finished. Then I can view it.
    The reports server I'm using is installed locally on the same PC I'm testing the form.
    Can someone help me please? I'm using using Forms Builder 9.0.2.9.0.
    Thank you,
    Artur
    declare
         v_repid REPORT_OBJECT;
    v_rep in varchar2(100);
    begin
    v_repid := find_report_object('TEST');
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, 'CACHE');
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'PDF'); -- OR HTMLCSS
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_SERVER, :TI_REPORTS_SERVER); -- local pc reports server
    v_rep := RUN_REPORT_OBJECT(v_repid, v_param_list);
    end;

    Arthur,
    Communication mode is soemthing forms handles when calling the run report object. Your code looks fine. You might get a quikc answer if you can post this in Forms mailing list
    Thanks
    The Oracle Reports Team

  • How can I run a custom program ASYNCHRONOUSLY when booting WinPE?

    I have a custom application that I want to have running during WinPE for my Litetouch deployments. I had this working in SCCM and now I want to get it working in MDT.
    I have the Netcheck.exe application in my Extras folder, it ends up on the root of my X: drive.
    Here is my unattend.xml file.
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
    <RunAsynchronous>
    <RunAsynchronousCommand>
    <Order>1</Order>
    <Path>X:\NetCheck.exe</Path>
    <Description>Run the NetCheck app</Description>
    </RunAsynchronousCommand>
    <RunAsynchronousCommand>
    <Order>2</Order>
    <Path>wscript.exe X:\Deploy\Scripts\LiteTouch.wsf</Path>
    <Description>Lite Touch PE</Description>
    </RunAsynchronousCommand>
    </RunAsynchronous>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    By default, the Litetouch.wsf file is launched synchronously, and so my Netcheck app won't run until the Litetouch wizard closes (this won't work for my needs). Also, synchronous commands are run before Asynchronous commands.  Therefore, I need to run
    both my custom Netcheck app and the Litetouch wizard Asynchronously.
    However, every time I use the unattend file that I pasted above, WinPE boots and then immediately reboots. If I am quick and hit F8 I get a command prompt, and then my Netcheck app and the Litetouch wizard both run (sweet!), but then when I close that cmd
    prompt, WinPE shuts down (lame).
    The wpeinit.log is shown below. Everything seems to look good, so what is wrong? How can I accomplish this?
    2014-09-09 14:23:02.588, Info      WPEINIT is processing the unattend file [X:\unattend.xml]
    2014-09-09 14:23:02.588, Info      Spent 141ms initializing removable media before unattend search
    2014-09-09 14:23:02.604, Info      ==== Initializing Display Settings ====
    2014-09-09 14:23:02.620, Info      Setting display resolution 1024x768x32@60: 0x00000000
    2014-09-09 14:23:02.620, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:02.620, Info      ==== Initializing Computer Name ====
    2014-09-09 14:23:02.620, Info      Generating a random computer name
    2014-09-09 14:23:02.620, Info      No computer name specified, generating a random name.
    2014-09-09 14:23:02.620, Info      Renaming computer to MININT-9KBBIFF.
    2014-09-09 14:23:02.620, Info      Waiting on the profiling mutex handle
    2014-09-09 14:23:02.620, Info      Acquired profiling mutex
    2014-09-09 14:23:02.620, Info      Service winmgmt disable: 0x00000000
    2014-09-09 14:23:02.620, Info      Service winmgmt stop: 0x00000000
    2014-09-09 14:23:02.620, Info      Service winmgmt enable: 0x00000000
    2014-09-09 14:23:02.620, Info      Released profiling mutex
    2014-09-09 14:23:02.620, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:02.620, Info      ==== Initializing Virtual Memory Paging File ====
    2014-09-09 14:23:02.620, Info      No WinPE page file setting specified
    2014-09-09 14:23:02.635, Info      STATUS: SUCCESS (0x00000001)
    2014-09-09 14:23:02.635, Info      ==== Initializing Optional Components ====
    2014-09-09 14:23:02.635, Info      WinPE optional component 'Microsoft-WinPE-HTA' is present
    2014-09-09 14:23:02.651, Info      WinPE optional component 'Microsoft-WinPE-MDAC' is present
    2014-09-09 14:23:02.651, Info      WinPE optional component 'Microsoft-WinPE-WMI' is present
    2014-09-09 14:23:02.667, Info      WinPE optional component 'Microsoft-WinPE-WSH' is present
    2014-09-09 14:23:02.682, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:02.682, Info      ==== Initializing Network Access and Applying Configuration ====
    2014-09-09 14:23:02.682, Info      No EnableNetwork unattend setting was specified; the default action for this context is to enable networking support.
    2014-09-09 14:23:02.682, Info      Global handle for profiling mutex is non-null
    2014-09-09 14:23:02.682, Info      Waiting on the profiling mutex handle
    2014-09-09 14:23:02.682, Info      Acquired profiling mutex
    2014-09-09 14:23:02.997, Info      Install MS_MSCLIENT: 0x0004a020
    2014-09-09 14:23:02.997, Info      Install MS_NETBIOS: 0x0004a020
    2014-09-09 14:23:03.138, Info      Install MS_SMB: 0x0004a020
    2014-09-09 14:23:03.326, Info      Install MS_TCPIP6: 0x0004a020
    2014-09-09 14:23:03.702, Info      Install MS_TCPIP: 0x0004a020
    2014-09-09 14:23:03.702, Info      Service dhcp start: 0x00000000
    2014-09-09 14:23:03.702, Info      Service lmhosts start: 0x00000000
    2014-09-09 14:23:03.827, Info      Service ikeext start: 0x00000000
    2014-09-09 14:23:03.921, Info      Service mpssvc start: 0x00000000
    2014-09-09 14:23:03.921, Info      Service mrxsmb10 start: 0x00000000
    2014-09-09 14:23:03.921, Info      Released profiling mutex
    2014-09-09 14:23:03.921, Info      Spent 1250ms installing network components
    2014-09-09 14:23:04.108, Info      Installing device root\kdnic X:\windows\INF\kdnic.inf succeeded
    2014-09-09 14:23:04.608, Info      Installing device vmbus\{f8615163-df3e-46c5-913f-f2d2f965ed0e} X:\windows\INF\wnetvsc.inf succeeded
    2014-09-09 14:23:04.670, Info      Spent 750ms installing network drivers
    2014-09-09 14:23:09.768, Info      QueryAdapterStatus: found operational adapter with DHCP address assigned.
    2014-09-09 14:23:09.768, Info      Spent 5062ms confirming network initialization; status 0x00000000
    2014-09-09 14:23:09.768, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:09.768, Info      ==== Applying Firewall Settings ====
    2014-09-09 14:23:09.768, Info      STATUS: SUCCESS (0x00000001)
    2014-09-09 14:23:09.768, Info      ==== Executing Synchronous User-Provided Commands ====
    2014-09-09 14:23:09.768, Info      STATUS: SUCCESS (0x00000001)
    2014-09-09 14:23:09.768, Info      ==== Executing Asynchronous User-Provided Commands ====
    2014-09-09 14:23:09.768, Info      Parsing RunAsynchronousCommand: 2 entries
    2014-09-09 14:23:09.768, Info        Command 0: 0x00000000
    2014-09-09 14:23:09.768, Info      Successfully executed command 'X:\NetCheck.exe'
    2014-09-09 14:23:09.768, Info        Command 1: 0x00000000
    2014-09-09 14:23:09.784, Info      Successfully executed command 'wscript.exe X:\Deploy\Scripts\LiteTouch.wsf'
    2014-09-09 14:23:09.784, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:09.784, Info      ==== Applying Shutdown Settings ====
    2014-09-09 14:23:09.784, Info      No shutdown setting was specified
    2014-09-09 14:23:09.784, Info      STATUS: SUCCESS (0x00000001)

    Here is how i ended up solving my problem.
    Change the unattend file to look like this:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <Display>
    <ColorDepth>32</ColorDepth>
    <HorizontalResolution>1024</HorizontalResolution>
    <RefreshRate>60</RefreshRate>
    <VerticalResolution>768</VerticalResolution>
    </Display>
    <RunSynchronous>
    <RunSynchronousCommand>
    <Order>1</Order>
    <Path>wscript.exe X:\Deploy.vbs</Path>
    <Description>Run the .vbs file that kicks off Netcheck and the Litetouch wizard</Description>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Here is the Deploy.vbs:
    Set objShell = Wscript.CreateObject("Wscript.shell")
    objShell.Run "X:\Netcheck.exe", 0, false
    objShell.Run "wscript.exe X:\Deploy\Scripts\LiteTouch.wsf", 0, true

  • How to run a 10g report in quiet\batch mode

    Good Afternoon,
    Please advise if there is a way to run a 10g report from command line.
    We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to request the report server to run a report?
    Thank you,
    Dmitri

    So the server (we will call it server1) you have "Redwood Cronacle 6.0.2" installed on has a C: drive and a D: drive. On the D: drive is installed Developer 6i (D:\ORADEV6I). You can install Developer Suite 10g also on the D: drive (D:\ORADEV10G for example). After that, setup Oracle iAS on server2. The good news is you have to change very little code. You can:
    Not use the iAS server at all and use the following command (similar to how you are doing it now) in Redwood:
    return 'D:\ORADEV10G\BIN\RWRUN.EXE'
    ||' userid=:USRPWD'
    ||' module='
    ||v_path||'\'||p_module
    ||' batch=yes paramform=no destype=file'
    ||' desformat=' || v_printer_driver
    ||' desname=:OUTFILE'
    ||' cmdfile=:CMDFILE errfile=:LOGFILE';If you want to use the iAS server, you have to consider where the report will physicall exist. You can have it exist on the reports server or you can have it brought back to the client. If you bring it back to the client you will lose the ability to run this asynchronously (or in batch mode). You will have to play with some of these parameters to get it to work perfectly, but this should be a good start. These are examples of have the report results saved locally on server1...not server2:
    1. Use rwclient to submit a report request
    return 'D:\ORADEV10G\BIN\RWCLIENT.EXE'
    ||' userid=:USRPWD'
    ||' module='
    ||v_path||'\'||p_module
    ||' paramform=no destype=localfile'
    ||' desformat=' || v_printer_driver
    ||' desname=:OUTFILE'
    ||' cmdfile=:CMDFILE errfile=:LOGFILE'
    ||' server=server2';2. Use rwservlet to submit a report request
    return 'D:\ORADEV10G\BIN\RWSERVLET.EXE'
    ||' userid=:USRPWD'
    ||' module='
    ||v_path||'\'||p_module
    ||' paramform=no destype=localfile'
    ||' desformat=' || v_printer_driver
    ||' desname=:OUTFILE'
    ||' cmdfile=:CMDFILE errfile=:LOGFILE'
    ||' server=server2';I would think that Cronacle 6.0.2 can submit a url as a job and wait for the results to be streamed back, so you could look into doing that also, in which case the url you would submit for the job would be something like:
    return 'http://server2:7777/reports/rwservlet?'
    ||' userid=:USRPWD'
    ||' module='
    ||v_path||'\'||p_module
    ||' paramform=no destype=cache'
    ||' desformat=' || v_printer_driver
    ||' desname=:OUTFILE'
    ||' cmdfile=:CMDFILE errfile=:LOGFILE'
    ||' server=server2';

  • How to run long background jobs in ADF applications

    Hi,
    I'm looking for some guidance on how to run an asynchronous job within an ADF application with proper progress notification in the current page.
    Let's assume we have some long running task (e.g. generating notification emails from a bunch of rows in my view object and send them) with the corresponding classes implemented in the DataModel as part of the business logic (e.g. a class that sends a mail to a given recipient).
    Let's assume all the relevant methods can be exposed in the appmodule's client interface so they can be invoked from the ViewController if needed.
    In my jspx page I have implemented the standard af:poll+af:progressIndicator mechanism to give feedback about the running task, backed by a custom BoundedRangeModel
    with methods getValue() and getMaximum(). This works.
    However, all the examples I've found on the net are very very simplistic and only deal with simple counters or countdowns.
    But how to actually implement the whole mechanism in a real life scenario? How do I run the job itself and make it give feedback to my BoundedRangeModel class
    (which in turn is used by the progressIndicator on the page)?
    Is there a recommended way to do this within ADF apps? I've tried to search something about asynchronous method execution in ADF but there seems to be nothing out there.
    Do I need to use standard Java techniques such as a separate Thread running a Runnable worker? Should I use an observer/observable pattern to notify BoundedRangeModel
    and update its internal variables (current value and maximum)? Would this work across a Datacontrol interface?
    Is anything of this allowed within the ADF framework or I'm just gonna break the whole framework model because do-it-yourself concurrent programming isn't allowed in a multithreaded pooled environment?
    Some explanation about the current recommended best practices and/or some practical examples or articles about that would be great.
    (BTW: I'm using version 11.1.1.2.0 and yes, I've checked the contextual events thing too, but that's just an inter-page communication mechanism so it has has nothing to do with what I need to do.)

    Hi
    I have implement a "Runner" class to generate a pdf to every customer of a mailmerge file, which was uploaded. Its simply easy to do something like this. Just add a button, bound the button with a methode out of you applicationModule and start your implementing Thread in this methode.
    public class Runner implements Runnable {
        private String docFileName;
        private String csvFileName;
        private byte[] csvData;
        private byte[] docData;
        private FtpClient client;
        private String category;
        public Runner(String category, String docFileName, byte[] docData,
                      String csvFileName, byte[] csvData, FtpClient client) {
            this.category = category;
            this.docFileName = docFileName;
            this.docData = docData;
            this.csvFileName = csvFileName;
            this.csvData = csvData;
            this.client = client;
        public void run() {
    }In your applicationModule, you can start your Runner like this:
            Runner runner =
                new Runner(category, docFileName, docData, csvFileName, csvData, client);
            new Thread(runner).start();And to the problem with your progressBar. I would create a managedBean with a HashMap<String, HashMap<String, String>>. Every thread you start, add a HashMap<String, String> to this hashmap with the id of the username/session/whatever (must be bound to the user, which starts the thread). This added HashMap<String, String> should be used by your thread to put some status-information into. Now you can try to bind this info to your progressBar.
    I dont know if this will work, it is just an idea ;-)
    Regards
    Majo

  • Report Designer - Asynchronous vs Synchronous

    Greetings fellow Oracle groupies,
    I have been working with BI Publisher EE for the past few months and would like to hear the community's thoughts around the Asynchronous mode option that is available when designing a report.
    The 'Report Designer's Guide for Oracle Business Intelligence Publisher' (page 2-13) states the following:
    Asynchronous Mode
    Default: Not enabled.
    Reports run in asynchronous mode use a unique thread to
    execute the report when run in the report viewer. This
    allows BI Publisher to cleanly terminate the thread if a user
    cancels the report execution. Note that there are
    performance implications when enabling this property.
    Which option would you choose? Why? or perhaps a better question would be in what circumstances would you switch this option on?
    Edited by: OdinsWrath on 08-Mar-2012 15:19

    You should ask your question in the BI Publisher forum:
    BI Publisher

  • UNIT OR ASYNCHRONOUS COSTING IN PROJECTS

    HI ALL,
    I HAVE ATTACHED SOME FINISHED PRODUCTS IN PROJECTS- WBS ,FOR WWHICH I HAVE WBS-WISE SPECIFIC BOMS AND ROUTINGS,AND WHEN I RUN MRP PLANNED ORDERS ARE CREATED FROM WHICH SIMULTANEOUSLY PRODUCTION ORDERS ARE CREATED.
    NOW WHEN I AM TRYING TO RUN THE  ASYNCHRONOUS COSTING THROUGH CJ9K,UNLESS OTHERWISE PRODUCTION ORDERS ARE CREATED ,MY PLANNED COST FROM THE PRODUCTION ORDERS DONT FLOW TO MY PROJECTS,AND THE SYSTEM GIVES ME AN ERROR SAYING THAT MY FOR MY FINISHED MATERIAL COST COULD NOT BE DEERMINED.
    HOW CAN  I INSTEAD RETRIEVE THE PLANNED ESTIMATE COST IN PROJECTS FROM THE BOMS AND ROUTINGS,RATHER THAN FROM THE PRODUCTION ORDERS.
    IF ANY ONE CAN HELP .
    THANK YOU.
    MERCY

    Hi,
    I know that accessing the VA01 / VA02 t.codes will kill the performance.   Is there any other t.code available in CO to update the unit cost estimate for sales order.  Or if any function modules?
    Rgds,
    Mallik
    Edited by: mallik on Mar 8, 2010 3:19 PM
    Edited by: mallik on Mar 8, 2010 3:19 PM 1213131

Maybe you are looking for

  • Forms Server 6.0 and white Form

    I tried to run an very simple form (scott/tiger emp table...) on a forms server 6.0 in the applet viewer and in the Jinitiator environment. The result is a white form with only a menu item (window) and nothing more. I tried with WebDb, IIS4 and OAS 4

  • Is there any restriction on the length of all Primary keys in a table

    Hi all, Is there any restriction on the length of all Primary keys in a data base table? i have some 10 fields as primary key in a DB table and length exceeds 120 and getting a warning. Please let me know will there be any problems in future with res

  • Hierarchy Objects - Authorisation in Roles

    Hi I have created a role which is causing me few problems. The role is reporting role and the queries associated to it have 0MAST_CCTR & 0ORGUNIT in them. when I run the queries I got a error message: No authority for the node from characteristic 0MA

  • How-to insert a database form in dreamweaver cc

    Hi im trying to insert o conect a database created in wamp server into a contact form in a webpage in dreamweaver cc, i don't know how to do it in this version of dreamweaver, i really apreciate if someone could help me

  • Help for F in L

    My father in law has just taken delivery of his new Macbook Pro.... his first Mac. I am going up to aclimatise him to Macs at the weekend and wondered what the best way of updating his system would be. Should I download the combo 10.4.5 update ( 125M