NI 6115, triggering AO & AI simultaneously from 2 different trigger sources?

I am using NI 6115. Can I trigger my AI and AO simultaneously and independently (at different times) from 2 different trigger sources?

This is possible to do. What Software are you using to program this? (CVI, LV, ...) So, what your are trying to do is a triggerd generation, adding hte functionality of a triggered acquisition. In general, I would think that the easiest way of doing this is just to have continuous AO, then trigger the AI when needed with the PFI0/TRIG1 line. If you need to trigger both the AO and AI, I can think of 2 ways of doing this:
1. use the PFI0/TRIG1 to trigger the AO and one of the other PFI lines that are not in use to trigger the AI. Take a look at the daqmx examples in the language you are using for triggered AO, Triggered AI, copy and paste the necessary portions into a new Programm, you might want to adjust the error inputs and outputs in LV so t
he components get acomplished in the order you require. Daqmx is fully multithreadding compatible, so I would strongly suggest you use Daqmx.
2. Trigger your AO with PFI0/TRIG1 and use an analog edge condition to trigger at a specific value in your generation. The backdraw of this is that you would have to input the signal you are giving out into one of your AI channels which you probably are not interested in doing.
For all these options, you are going to find examples in LV or CVI, but you will need to take parts of one example and paste it into the other.

Similar Messages

  • Launch business rules simultaneously from multiple different locations?

    Hi All, Thanks in Advance !!
    I need to launch business rules simultaneously in Hyperion planning from different multiple locations..
    So ,Is there any trouble if i launch a business rule simultaneously from 4-5 locations on same planning application through workspace.
    Thanks
    Vivek Jaiswal

    If you are running the same business rule multiple times then it is trying to calculate and access the same section of the essbase database or are using different RTPs, is this really what you want to do.
    You can certainly run multiple rules, I take it you are doing some sort of load testing.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Implementing Logical FACT & Logical dimension from 2 different data sources

    Hi Gurus,
    Here is my situation. We have 2 Different Data sources. One is SRMW and the other one is a different source. What we are trying to implement here is we wanted to create logical dimensions and logical facts as well in the BMM layer. For ex: w_day_d from SRMW and other time dimension from another source makes a logical table. And similarly a fact from SRMW and and another similar fact (Same data types though) will make a logical fact in the BMM.
    I have done the POC of it, but the only problem is that i was able to fetch the data from only one data source not the other source.
    Any suggestions ??
    Thanks in Advance.

    What I already mentioned is that you have to create multiple logical table sources and set the fragmentation content on each logical table source.
    When you have two physical tables for the product dimension, for example DIM_PRODUCT_A and DIM_PRODUCT_B, you must add them to your logical table Products as two separate logical table sources and map all columns to the corresponding logical table columns on the Column Mapping tab.
    Hereafter you should go to the Content tab of each logical table source and describe what content is in the logical table source.
    For example for the logical table source of DIM_PRODUCT_A:
    "BM"."Product"."Product Name" <= 'Product 2'
    and for the logical table source of DIM_PRODUCT_B.
    "BM"."Product"."Product Name" >= 'Product 3'
    Then you must also check "This source should be combined with other sources at this level"
    When you run a query in Answers only on the product table, two queries will be generated to get values from both tables.
    Regards,
    Stijn

  • Will OBIEE Support creating reports from 2 different data sources

    Hello Guys
    I am new to BI . Can anybody let me know how to create a report using 2 different data sources .
    Ex: Suppose we have 10G and SQL server , can we import tables to rpd and join 1 fact & dimension from 10G and 1 Fact from SQL server to the 10G tables . If so ,
    1) Will the repository be consistent ?
    2) Is it a best practice to do this kind of modeling ?
    3) Will it affect the performance of the reports ?
    Your advice is highly appreciated .

    Hi,
    Dont try to do this at the BI server layer. Oracle has special abilities to do this thing. So use the power of oracle to import the tables from the sql server to oracle and in the bi server just create one data source.
    you can browse for *'DBLINK'* in oracle.
    Regards,
    Karthick

  • Deadlock when executing package simultaneously  from two different sessions

    I have written a package which will do the below tasks .
    package A
    Delete data which was older than one year from master table A and then populate data from stage table A to master table A .
    truncate summary table and populate the summary table from the master table .
    The package will be executed from a java application with the help of a scheduler in java. Some times, the packageA is still executing, while another instance of the package A is scheduled, that creating to deadlock in oracle. we can not use dbms_locks pkg in our application due to restrictions . i want to handle this situation from the db side in such way that the session B , need to wait until the session A completes the execution of the package . Can some one please tell how to handle this scenario in pl/sql?
    I thought of creating a function which will return the execution status of package A by reading a flag from temporary table . So that next schedule can be scheduled with the return status of the function. is there any other way other than this , so that i can pause execution of package A in session B and resume after session A is successfully executed
    create or replace pkg a
    populate master ;
    populate smry ;
    populate app_tables ;
    end pkg ;
    create or replace pkg body
    populate master()
    delete from master where loaddate < sysdate -365;
    loop
    fetch from stage a
    insert to master a
    end loop
    populate smry()
    truncate sumary a ;
    insert into smry
    select values from master ;
    populate app_tables()
    populate master;
    populate smry ;
    end pkg body

    I have a question about your requirements. I'm not questioning them just trying to understand them. You wrote:
    Delete data which was older than one year from master table A and then populate data from stage table A to master table A .
    truncate summary table and populate the summary table from the master table . If this is all there is to the requirement why would a second invocation be scheduled so soon? If you delete all data older than one year why would you need to do it again so soon?
    Notwithstanding the above you basically need a serialization management process.
    For all batch frameworks I have worked with we always include batch control and status tables to:
    1. guarantee that batches are run in the proper order
    2. allow for batch restart
    3. allow for suspension or termination of single batch jobs or job streams
    4. provide for reporting of batch statistics - batch run time, records processed, etc.
    5. simplify the testing of complex batch streams. Tests can be performed on any one batch step or any combination of steps by enabling/disabling flags in the control tables.
    6. eliminate the possibility of the problem you are reporting
    Using one or more batch control and status tables, in my opiinion, is the simplest and best way to serialize the batch jobs you are dealing. Such tables gives you maximum flexibility while placing the fewest constraints on the system.
    In the system I work with we try to have a clear line of demarcation between processes that control the work to be done and the processes that actually do the work.
    The processes that do the work never determine what data they work with; they are parameterized so that they are told what data to use. All they know is how to process the data that they are told to process. This makes it easier to scale to add additional 'worker' processes by having the 'control' processes break up the data into different batches and running 'worker's in parallel.
    I would suggest designing and implementing a control hierarchy to oversee the execution of the worker processes. This will be your serialization manager.

  • How to send data from 4 different data sources to one ODS

    Hello Gurus,
    There is a transaction called KSB1 in R/3.
    It has data related to cost center , cost element, G/L .
    In BI, i need to transfer the data from these Data sources to one ODS.
    Can any body give me some idea.
    Points will be awarded for any kind of response .
    Thanks .
    Anu

    Hi Rupa..
    In your requirement some data sources (Cost centre, Cost element) are master data sources.
    They are available as info Objects in BI (Content).
    So there is no need to create ODS on these.
    But the general scenario for creating ODS from multiple data sources in case of Transaction documents
    Like :
    PO header, PO line items...
    For this the Pre-requisite is to have common fields between these data sources (eg PONo).
    Hope this gives idea for u....
    Cheers...
    Varma

  • How to modify the VB examples in ni-scope to sample data simultaneously from two channels in PCI 5922?

     Dear all:
    I want to write VB programs to sample data simultaneously from two channels in PCI 5922. The niscope driver has some example VB programs to sample data from one channel, for example, the "save to file ", the program works well to sample the data from one channel.  When I modify it to sample data simultaneously from two channels, I always get error so I seek your help on how to write the program to sample two channels simulatenously. Thanks.  I attached the sample program here and what I tried to modify is the "channel name" and "waveform()"
    Regards
    Andy
    Attachments:
    savetofile.doc ‏42 KB

    Hi Bajaf, regarding the FFT of the four channels, the next link might be what your looking for:
    http://digital.ni.com/public.nsf/allkb/862567530005f09c8625671b00739970
    Respect the phase issue how are you doing the acquisition of the signals, are you doing two independent acquisitions? if you are controlling them as independent acquisitions try to synchronize them with triggers and the clock.
    How much are they out of phase?
    By the way we know have forums in Spanish
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Calling 2 processes simultaneously from a single process

    Hi,
    I have 3 processes.
    Process1
    Process2
    Process3
    I have to call Process2 and Process3 simultaneously from Process1
    The code I am having is as follows,
    ==========================================================
    PROCEDURE RELATIONSHIP_CODE_CHECK
    p_Cart_Id               IN          misibe_ext_quote_details.QUOTE_HEADER_ID%TYPE,
    p_Rel_Code_EndUser          OUT          misibe_ext_quote_details.RELATIONSHIP_CODE%TYPE
    p_Rel_Code_Reseller          OUT          misibe_ext_quote_details.RELATIONSHIP_CODE%TYPE
    ) IS
    v_Relationship_Code          misibe_ext_quote_details.RELATIONSHIP_CODE%TYPE;
    CURSOR v_Cust_Val_Cur IS
         SELECT
              RELATIONSHIP_CODE
         FROM
              MISIBE_EXT_QUOTE_DETAILS
         WHERE
              QUOTE_HEADER_ID = p_Cart_Id;
    BEGIN
    FOR v_Cust_Val_Cur_Data in v_Cust_Val_Cur LOOP
         IF v_Cust_Val_Cur_Data.RELATIONSHIP_CODE = 'RESELLER' THEN
              p_Rel_Code_Reseller := 'RESELLER';
         ELSIF v_Cust_Val_Cur_Data.RELATIONSHIP_CODE = 'ENDUSER' THEN          
              p_Rel_Code_EndUser := 'ENDUSER';
         END IF;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR (-20007, SQLERRM);
    ROLLBACK;
    END RELATIONSHIP_CODE_CHECK;
    ===========================================================
    Another procedure and calling the first one in that.
    PROCEDURE DATA_CHECK_FOR_MPROCESS
         ITEMTYPE          IN          VARCHAR2,
         ITEMKEY          IN          VARCHAR2,
         ACTID               IN          NUMBER,
         FUNCMODE          IN          VARCHAR2,
         RESULTOUT          OUT          VARCHAR2
    ) IS
    v_Rel_Code_EndUser          misibe_ext_quote_details.RELATIONSHIP_CODE%TYPE;
    v_Rel_Code_Reseller          misibe_ext_quote_details.RELATIONSHIP_CODE%TYPE;
    v_Cart_Id               misibe_ext_quote_details.QUOTE_HEADER_ID%TYPE;
    BEGIN
    v_Cart_Id := WF_ENGINE.GetItemAttrText ( itemtype => itemtype, itemkey => itemkey, aname => 'CART_ID');
    RELATIONSHIP_CODE_CHECK(v_Cart_Id,v_Rel_Code_EndUser,v_Rel_Code_Reseller);
         IF v_Rel_Code_EndUser = 'ENDUSER' THEN
              resultout := WF_ENGINE.ENG_COMPLETED||':'||'ENDUSER';
    ELSIF v_Rel_Code_Reseller = 'RESELLER' THEN
    resultout :=WF_ENGINE.ENG_COMPLETED||':'||'RESELLER';
         END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR (-20007, SQLERRM);
    ROLLBACK;
    END DATA_CHECK_FOR_MPROCESS;
    ==========================================================
    So when I use "resultout" at a time only one lookup code can only be used and one process is only called.
    How to use "resultout" to make both the processes run at the same time?
    If it is not possible with "resultout" then what is the other alternative. Please let me know.
    Thanks,

    Hi Ashna,
    You have use three different forms for three buttons. But I think all are commented one.It will also work if you uncomment it.
    Else you can use only one Form without giving action in form tag. Use normal buttons instead of submit type buttons & call different JavaScript functions on onClick event for each button.
    Try this out.
    Ajay

  • Oracle Triggers  - A few questions from a beginner to oracle.

    Hi,
    1. If we cannot COMMIT within a trigger, then how is it possible to use TRIGGERS to INSERT rows into an audit table that will track any INSERT/UPDATE attempt on a table. I have to record even failed attempts.
    2. Is it possible to make API calls from within a TRIGGER? (This API will write out data from the table being INSERTED/UPDATED into corresponding tables in a MYSQL database (somewhat like replication))
    3. If 2 is not possible, we are planning to write updates to an intermediate table that will be checked by a webservice every few minutes and in turn update the MYSQL db.
    Please help/advise.
    Thx.
    Vis.

    1. use autonomous transactions.
    2. if the API a PL/SQL code, yes you can call PL/SQL from
    the trigger body.
    To connect Oracle and MySQL, following thread might help:
    Re: Oracle to MySQL database connectivity
    Message was edited by:
    Pierre Forstmann

  • Any way to hear audio simultaneously from both Video and StageVideo objects?

    In our mobile application that is built using Air, we run simultaneous video feeds.  Video 1 uses the Video object (RTMP FLV Streaming), while video 2 uses the StageVideo object (MP4 Progressive). Since these two objects share the same audio stream and audio mixing is not possible, we can only play the audio from one of these sources – we elect to use the audio from Video 1.  In the perfect world, Air would include mixing capabilities and users would be able to watch both videos and hear both video streams at the same time.
    Is this functionally planned for the future, or is there any sort of a workaround to make this possible?
    Also, we would like to use two simultaneous StageVideo objects to playback a live H.264 Video stream (.M3U8) as well as a simultaneous MP4, but according to documentation only one StageVideo object may be used at a time which prevents us from doing so. Is there any work around or future plan to make Simultaneous H.264 video playback possible? This is possible to do natively on iOS and Android but we would like to continue to use AIR.

    ... and naturally, no sooner do I post this rant then I discover the answer.
    The very first thing I tried, "Export to disk" actually did the right thing. However, my nice, shiny iMac, barely out of the box, has .m4a files configured to open with iTunes, not Quicktime. So when I double-clicked the exported slideshow file, I only heard audio, even though the photos were included. Ctrl-clicking and choosing "Open With... Quicktime" did the right thing.
    Whew! That was frustrating. Thank goodness I figured it out, because it was driving me NUTS.

  • Download simultaneously from multiple host

    download simultaneously from multiple host in a peer to peer file sharing system organised in an intranet.....the code is in java

    well my question is that i hv a p2p built for an intranet and i am encounterin a problem when i need to dwnld a file havin multi instances and iterated amng various clients...and i want to dwnld this file from all the clients simultaneously...i.e., the working of downld accelearator.....

  • How to run the Oracle Triggers,Functions and Procedures from java

    Hi ,
    I want to execute the Oracle's Triggers, Functions and Procedures from java as like executing the SQL commands by using Execute statements.
    Or can we have some other option for doing this.
    Plz help me ...

    you can use CallableStatement interface of JDBC to execute any DBMS triger,stored procedure ....
    refer any of the JDBC book for extra help
    hope you got it
    Azeem Ahmed

  • Display dashboards simultaneously from company's server and localhost

    Hi Experts,
    We have a laptop that we have installed SAP B1 (Server and Client) locally. This laptop can connect to two servers;
    localhost and to company's server. We would like to ask whether there is a way to display dashboards
    from company's server using Sap Client when laptop is connected to company's network. Also if it is possible to
    display dashboards simultaneously from company's server and localhost.
    Thank you in advance,
    Vassilis Korolis

    Hello,
    Well, as far as I know it is not possible to make it automatically using SAP Business One Client, but we have made a wrapper for standard client that might help.
    The idea behind is to create two (or even more, if required) connections in Skybuffer SBO LogonPad and  then to click the connection that you would like to start (either local server or remote server that is accessible at company network).
    Additionally, it is possible to open two SAP Business One Client instances that are connected to two different servers from one machine simultaneously with help of Skybuffer SBO LogonPad, but I have never tested how stable the connects are, so please be careful with this. But in case of read only access (like you've mentioned  - dashboards display), I can say that it is safe enough.
    Here is the picture that shows that I can access two different servers from one machine:
    And you can download Skybuffer SBO LogonPad from here:
    Skybuffer SBO LogonPad (version 0.2)
    P.S. that's a freeware wrapper to facilitate different license servers connectivity for SAPB1 consultants.
    Kind Regards,
    Siarhei

  • How to acquire from various AI channels simultaneously with a different range for each one?

    How to acquire from various AI channels simultaneously with a different range for each one?
    In LabView I have found some examples but in C there isn't seem to be any.
    Solved!
    Go to Solution.

    Or you can add channels one by one with individual instructions: the follwing code compile and runs with no errors on a vitual daq device:
    err = DAQmxCreateTask ("", &taskH);
    err = DAQmxCreateAIVoltageChan (taskH, "Dev1/ai0", "AI0", DAQmx_Val_Cfg_Default, -5.0, 5.0, DAQmx_Val_Volts, "");
    err = DAQmxCreateAIVoltageChan (taskH, "Dev1/ai1", "AI1", DAQmx_Val_Cfg_Default, -10.0, 10.0, DAQmx_Val_Volts, "");
    DAQmxStartTask (taskH);
    err = DAQmxReadAnalogF64 (taskH, 5, 10.0, DAQmx_Val_GroupByChannel, val, 10, &read, 0);
    DAQmxClearTask (taskH);
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Connect Oracle 10G XE and Oracle 9.2i Simultaneously from same machine

    Hello,
    How to Connect Oracle 10G XE and Oracle 9.2i Simultaneously from same machine using .Net Application.
    I have one application which is in .net, i want to connect it with oracle 10g XE and oracle 9.2i Simultaneously.
    it always connect only one database which is first in environment variable (path).
    please reply.

    Use SQL*Net or JDBC Connections. Looks like you are connecting using the Bequeathed connections
    Christopher Soza
    Oracle BI DBA

Maybe you are looking for