Generate Internal Trigger

Hello everyone!
I have a PCI 6115 DAQ card.  I have created a finite analog input task and a finite digital output task.  I wish to have both tasks start at the same time through the use of a trigger.  It is my understanding that, even though these tasks are running at different frequencies, their sample clocks derive from the same base clock, so as long as the tasks start with the same trigger, then they will be synchronized.
I have never used a trigger before, so I've been doing alot of learning.  However, I'm a bit stuck, and I would appreciate some input.  It is my understanding (which could very well be wrong) that the digital output task and the analong input task on the PCI 6115 card can only be triggered from a PFI or a RTSI source.  However, I want the trigger to be generated internally, not from an external source.  As such, I've put together the following sequence to make this happen:
In this example code, the following sequence happens:
1) create analong input task
2) make analog input task wait for trigger from RTSI0 in order to start
3) create counter channel
4) export counter signal to RTSI0 line.  (I would have used a DIO channel, but the PCI 6115 doesn't allow this)
5) When user presses trigger button control, the RTSI0 line is sent high.  This triggers and start the analog input task
I tested this and it seems to work.  My questions are as follows:
1) Am I doing things "correctly"?  Is there a simpler solution?  It feels kind of hokey writing a counter to a RTSI line just to trigger an internal channel
2) On an actual PCI 6115 card, this code seemed to work fine. However, on a MAX-simulated PCI 6115 card, the analog input task immediately started without waiting for the trigger.  I assume that this is simply a limitation of the simulation software for dealing with external input sources - correct?
Thank you for your comments and assistance!
Attachments:
trigger 6115.vi ‏28 KB

A score does not typically have the ability to generate any sort of signal. You have not mentioned the male and model. Where in its manual do you see pulse generation?

Similar Messages

  • How to generate a trigger in the CIF on ECC custom field ?

    Hi
    We have an intercompany scenario in ECC where we use a custom transaction to convert the stock transfer order into a sales order (at the source plant).
    As the 2 objects are not technically linked in ECC, we modified the CIF in order to delete the stock transfer during the transfer for the Source location in APO, so we only see the sales order at this location and not anymore the STO.
    However this custom transaction is not modifying any standard field in the stock transfer at the point of conversion, therefore there is no trigger to APO generated.
    Do you know an easy way to generate this trigger ? we tried with the bapi po_change to modify some standard fields, but no field is really secured to play with. We'd rather prefer to generate a trigger out of a custom field.
    Thanks in advance,
    Fanny

    Hi Fanny ,
    Here is a thought .
    You want to delete the sto in APO because  you dont want the demand to double dip. That is after you have converted the sto to a sales order using your custom program , unless you delete the sto your demand will show up both in so and sto which is necessarily a duplication of demand.
    But there is no need to delete the sto for that. You can make the demand element of the sto as not relevant to pegging . After converting your sto to so , if you mark the demand of the sto as non relevant to pegging then , sto demand will not be accounted for when calculating the stock availability and the demand element will not be displayed in the planning book also. So the only impact in this case will be that the order will be visible in the receipts view though it will not affect the stock . I think this will serve your purpose. Just give it a thought.
    But if you decide to follow this approach, you have to put in custom code to pick the relevant sto's and mark them as non- relevant to pegging. Also you have to configure the ATP category corresponding to the sto to pick the confirmed quantity and display the same in the planning book . Otherwise the sto demand will show up in the planning book.
    Thanks
    Saradha

  • Entity bean with primary key generated by trigger

    Hi,
    We have a table(oracle) with one column as primary key,
    but the primary key is generated by trigger every time
    a new row is inserted into this table, inside the trigger,
    it uses oracle sequence to get the next val.
    If we want to use entity bean with it, what should we specify, it's not application-managed primay key, it's
    not auto-generated primary key either. How can we resolve
    it without change the database part.
    Any thought is appreciated.
    Thanks
    afang

    The code is already there with JDBC call inserting
    into the table, the inserting trigger then will generate
    sequence key and being inserted into primary key column.
    Now wondering if it's possible to change the code to use entity bean but without modifying the trigger (since it contains other business logics).

  • ADF-Master detail-Foreign key generated By Trigger won't propaget to Detail

    Hi All,
    We have Master-Detail Table where Master table key is generated by DB.
    And this key act as Foreign key in detail table.When we Creates Master Table records and commit it .It gets saved correctly But when we navigate to Create Detail record (Cretae button is taken from Detail) It opens in Create mode but does n't poppulate Foreign Key.
    Can anybody plz explain..
    Regards
    Yogesh

    Hi Frank,
    Thanks for your reply.I don't know "the ADF Business Components tester "
    what is this ?
    I was able to solve my problem by making "Refresh after insert " Check box selected in Entity object.Now it is generating Master Key and also i am getting it in Detail.
    But now problem is, Can we make details record in insert mode by 'Create opration' under Master View.My requirment is insert two records in detail table in background while inserting record in master.Where relationship is maintained by foreign key which generated by trigger.
    I want master and detail create form on same page where i will make details from Rendering False i.e both should be in Create mode (Accesser should not retrive record).
    In Short
    ADF-BC Master Detail - Detail Record insert in Back ground on the same page
    Thanks in Adv
    RHY

  • Populating values in dynamically generated internal table

    Hi,
    We can generate internal tables dynamically and also populate them with values from database.But is there any way to populate the dynamically generated internal table(has 2-3 selected fields) with values from another internal table(has all fields required by the program) being populated within the same program?
    Thanks & Regards,
    Savitha

    Hi
    Dynamic internal table is internal table that we create on the fly with flexible column numbers.
    For sample code, please look at this code tutorial. Hopefully it can help you
    Check this link:
    http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
    Reward points if useful
    Regards
    Anji

  • Me_process_po_cust badi for generating internal number range in me21n tcode

    Hi all,
    I have requirement while creating purchase order my client want to generate internal number range based on company code,document type and plant.here, we are making one custom table to hold compny code,plant,doc.type and Number range number.I am using me_process_po_cust badi for the same.I got the po header and item data from this badi.my problem is how i can pass this number range number in me21n to respective fields.
    Regards,
    Sleela Patil

    Hi,
    Thank u both of you..I tried that exit.following is the code I have written for that exit.
    TABLES: T001K,NRIV,EKKO,ZVS_MM_RANGE.
    DATA: WA_TAB TYPE ZVS_MM_RANGE,
          WERKS LIKE T001W-WERKS.
    GET PARAMETER ID 'WRK' FIELD WERKS.
    SELECT SINGLE * FROM T001K
                    WHERE BUKRS EQ NEKKO-BUKRS.
    IF SY-SUBRC EQ 0.
      SELECT SINGLE * FROM ZVS_MM_RANGE
                      INTO WA_TAB
                      WHERE BUKRS EQ NEKKO-BUKRS
                      AND WERKS EQ WERKS    "T001K-BWKEY
                      AND BSART EQ NEKKO-BSART.
      IF SY-SUBRC EQ 0.
        MOVE: NEKKO-EBELN TO NUMBER,
              WA_TAB-NRRANGENR TO RANGE.
      ELSE.
        MESSAGE 'Please maintain Number range in table zvs_mm_range' TYPE 'E'.
      ENDIF.
    ENDIF.
    Here, I am getting data as I needed but problem is client having multiple plant for single company code.I am not able to capture plant in this exit.as, it is in item level.so,later on tried to do it using me_process_po_cust badi.
    Now my problem is that how to pass this number range number in me23n tansaction.
    Regards,
    Sheela Patil

  • RFSA generates internal interferring signal

    I'm evaluating the PXI-5660.
    When I use the RFSA Demo Panel to examine the spectrum, I can see multiple single frequencies, even if I terminate the RF input with 50ohms (see attached file). Even if I changed the CF the picture is the same (peak by CF, CF+14Hz, CF+46,8MHz). If I change the attentuation from 20dB to 0dB the signals are increased correspondingly.
    Therefor, I think these disturbing peaks were generated internal by the LO's.
    I'm not sure if this is normal, but selfcalibration and selftest returns no error.
    Is it possible to suppress these peaks by adjusting the filter and attentuator settings.
    (Following my HW/SW-configuration:
    PXI1000B
    PXI5610+PXI5441=RFSG
    PXI5600+PXI5620=RFSA
    RFSG-Driver1.1.0
    RFSA-Driver1.5.0
    MT3.0
    SMT1.1)
    PS.: The RF input has an inscription "0V DC max". Does this mean as a precaution I have to use a DC-blocker against damage by DC signals.?
    Attachments:
    RFSA_Spectrum.jpg ‏97 KB

    Hello JSFlow and LVFan,
    I believe you are experiencing different behavior so let me respond to you both here:
    JSFlow,
    Your screenshot looks like it is exhibiting the behavior for which we include a Note to Users in the current 5660 shipping kit. I will post this to this thread. The behavior should not be present when you tune the 5660 to 20 MHz or above. When you are < 20 MHz, the settings indicated by the note to users should correct the issue. Can you verify this to be the case and also try the proposed settings for the < 20 MHz use case?
    LVFan,
    Have you tried moving the 5660 to different slots in the PXI chassis? The only reason I ask this is to help determine if the culprit here is indeed the 5660. If you can move the unit around and see the exact same behavior, then the behavior you are seeing is out of spec and the HW you are using for evaluation purposes is not delivering the same performance as a fresh production unit would.
    If this ends up being the case, I would contact your local NI sales rep and inform him of this and National Instruments will get you a better unit for evaluation. Please let me know if you need help.
    Regards,
    Andy Hinde
    RF Staff Product Support Engineer
    National Instruments
    Attachments:
    Note_to_Users_5660.pdf ‏24 KB

  • Generate Internal Numbers

    Hi,
        I have to generate internal numbers in the program.
        Requirement is each time user clicks on button A, then a number with 12 digits should generate (Ex: 891000000001).
        And, if he will click on button B, then, the previous internal number should appear (Ex: 891000000000).
       I have used a custom table to store this number each time user clicks.
       But, Is there any standard function module to generate this? Because this will increase performance and a custom Ztable creation.
      Please reply me ASAP.

    Transaction Code: SNRO.
    Function Module: NUMBER_GET_NEXT.
    Will resolve your problem. Search in SCN with above FM name for more clarification.
    Thanks,
    Naveen.I

  • How to cause an internal trigger to generate a pulse on an Oscilloscope

    I am realtively new with LabView and need to generate a square pulse on an oscilloscope. I am trying to cause a trigger such that only when it is triggered, the pulse is generated. What should I do to get such a trigger? 
    Thank you.

    A score does not typically have the ability to generate any sort of signal. You have not mentioned the male and model. Where in its manual do you see pulse generation?

  • Reg:doubt in dynamic generated internal table

    hi everyone,
                 i generated a internal table dynamically,the output is in fied symbol,i want to create a internal table using the field symbol sturture,how to create that????
    plz tell me how to create a internal table referencing field symbol structure........
    very urgent plz help.........
    thanks in advance....
    regards,
    balaji.s

    Hi ,
           check out   a small part of an alv report which is using dynamic internal table
    data: dy_table type ref to data,
          dy_line type ref to data.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa> type any,
                   <dyn_line> type any.
        call method cl_alv_table_create=>create_dynamic_table
          exporting
            it_fieldcatalog = ifc
          importing
            ep_table        = dy_table.
        assign dy_table->* to <dyn_table>.
    CREATE A DYNAMIC WORK AREA.
        create data dy_line like line of <dyn_table>.
        sort it_mard by matnr werks.
        loop at it_mard into wa_mard.
          at new matnr.
            assign dy_line->* to <dyn_wa>.
            assign component 'MATNR' of structure <dyn_wa> to <dyn_line>.
            <dyn_line> = wa_mard-matnr.
            read table it_mard2 into wa_mard1 with key matnr = wa_mard-matnr.
            v_amount = wa_mard1-v_total * p_unit.
            call function 'SPELL_AMOUNT'
              exporting
                amount = v_amount
           currency        = 'INR'
      FILLER          = ' '
            language        = sy-langu
          importing
            in_words        = v_price
          exceptions
            not_found       = 1
            too_large       = 2
            others          = 3
            if sy-subrc <> 0.
              message id sy-msgid type sy-msgty number sy-msgno
                      with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            endif.
            assign component 'V_TOTAL' of structure <dyn_wa> to <dyn_line>.
            <dyn_line> = wa_mard1-v_total.
            assign component 'V_PRICE' of structure <dyn_wa> to <dyn_line>.
            <dyn_line> = v_price-word.
          endat.
          concatenate 'STOCK' '-' 'IN' '-' wa_mard-werks into v_new.
          assign component v_new of structure <dyn_wa> to <dyn_line>.
          <dyn_line> = wa_mard-labst.
          at end of matnr.
            append <dyn_wa> to <dyn_table>.
            clear wa_mard.
            clear <dyn_wa>.
            unassign <dyn_line>.
            unassign <dyn_wa>.
          endat.
        endloop.
    rewards points if helpful.

  • Adobe generates internal error

    Adobe Lightroom 3 generates an internal error when adjusting the fill light settings on a picture where previous 'Auto-Tone' command has been executed upon. See screen shot for error message:
    Within Lightroom 2 (I used 2.7) this error message never occured. Anyone experiences similar type of problem?

    http://forums.adobe.com/message/2895076

  • Error message when attempting to generate Internal Requisition

    Hi,
    Today, internal requisitions are generated without problems between organizations of the same operating unit but is the first time try to create internal requisitions between organizations of different operating units but send error message
    Error Message: "Destination location requires customer association in Source Organization"
    Operating Unit and Organization requesting and receive:
    Operating Unit “A”
    Inventory Organization of operating unit “A”
    Operating Unit and Organization where they generate the internal orders:
    Operating Unit “B”
    Inventory Organization of operating unit “B"
    The Shipping Network is configured
    What additional configuration needed?
    Thanks and Regards
    Manuel

    Please see these docs.
    POXRQERQ - Creating Internal Requisition - Destination Location Requires Customer Association, ARXCUDCI Customer Address Returns FRM-40735, ORA-01403 [ID 179792.1]
    What Are The Steps Required To Setup An Internal Requisition In Purchasing? [ID 406312.1]
    FAQ - Purchase Order Organization Setup [ID 1263565.1]
    Create Internal Requisition For a Process Item Causes APP-PO-14142 error [ID 461518.1]
    APP-PO-14142:PO_REQ_LNS_C1.getsource-170: When Creating Internal Requisition [ID 748974.1]
    Thanks,
    Hussein

  • Generate PXI Trigger Signals with PXI-6115

    Hello,
    I have a question.
    I have a PXI-6115 and some other card in my mainframe.
    These other cards nee 10 Mhz pulses on line PXI-Star1 and 2.5 MHz on PXI_trg7.
    So I thought to apply (somewhere on my PXI 6115 card) 10 MHz, divide the 10 MHz with a counter to 4 and route all this things to the backplane.
    But I don't understand how to do this.
    There are no good examples.
    And as far as I know the PXI-6115 isn't yet supported by DAQ-MX.
    Can anybody give me some good advises or tips, white paper or so to make me solve my problem ???
    Thanks Ruediger

    I don't have time to write any example snippets right now, but I'll try to provide you the general idea and hopefully you can take it from there.
    First, it's not clear whether you want to generate the 10 MHz from the 6115 and send it to other devices in the system or accept the 10 MHz externally and route it to the rest of the system.  If you're bringing in the signal externally, I would simply using the DAQmx Connect Terminals VI to route the signal from a PFI line on the front connector of the board to one of the PXI trigger bus lines in the backplane.  Check out the routing table in MAX to see what routes are possible.  To perform this route, the driver will have to route through Counter 0 so you won't be able to use Counter 0 for anything else.
    If you want to generate 10 MHz from the 6115, I would create a continuous pulse train task on Counter 0 using the CO Pulse Ticks version of the Create Channel VI with a value of 2 for both the high ticks and low ticks input.  However, to achieve 10 MHz clock on a PXI trigger line, you'll have to perform a couple of modifications that typically aren't done with counter tasks.  First, you'll need to use the DAQmx Export Signal Property Node to route the Counter Output Event to the desired PXI trigger line.  You can find this property by navigating the following menu hierarchy Events->Counter Output Event->Output Terminal.  By default, the driver routes this event to the Ctr0Output pin on the front connector of the board.  Using this property will override this behavior and route the output of the counter to a PXI trigger line instead.  Second, you will need to change the output behavior of the Counter Output Event from toggle to pulse.  This can be through the Events->Counter Output Event->Output Behavior property.  Normally, when generating pulse trains, the high ticks and low ticks parameters from the Create Channel VI determine the frequency and duty cycle of the pulse train.  When the high ticks count expires, the output of the counter toggles.  The low ticks value is then loaded into the counter, and the counter output toggles again when the low ticks value expires.  This process repeats to produce a pulse train of the desired frequency and duty cycle.  Since the counter uses a 20 MHz timebase and has a minimum low ticks and high ticks value of 2, you can only produce at maximum a 5 MHz pulse train using the toggle behavior.  However, by changing the output behavior from toggle to pulse, the counter output will issue a short pulse each time the high ticks and low ticks counts expire yielding a 10 MHz clock signal.
    Now that you have the 10 MHz signal taken care of, you need to generate a 2.5 MHz signal from it.  My guess is that since you have a 6115, you already have plans for the AI engine so I'll describe a route that uses AO instead.  First, create an AO task to perform continous waveform generation.  Use the DAQmx Channel Property Node and set the Use Only Onboard Memory property to true.  Setting this to true will cause the driver to download the waveform once upon starting the task and replay the waveform from the onboard FIFO.  Since you're only using this task to generate a clock, you don't really care about the data and this will prevent unneccessary traffic across the PCI bus.  Next, use the DAQmx Timing Property Node to set the Sample Clock->Timebase->Source to the PXI Trigger line that you're generating the 10 MHz clock on, and set the Sample Clock->Timebase Divisor to 4 (10 MHz / 4 should give you a 2.5 MHz sample clock).  Last, use the DAQmx Export Signal Property Node to set the Clocks->Sample Clock->Output Terminal to the PXI Trigger Line you want to generate the 2.5 MHz signal on.
    It requires some creative programming, but you should now have a 10 MHz and 2.5 MHz signal routed onto two different PXI Trigger lines.  I know this solution is a bit involved so if you have any further questions be sure to post back.

  • Generating Internal DTD Specifications

    I'm using the DocumentBuilderFactory method to create a DOM document, and using the TransformerFactory method to serialize my DOM document into an XML file.
    I'd like to programmatically produce an internal DTD as part of my serialized XML file, but I can't seem to find any examples or tutorials of how to do that online...
    I'm wanting to avoid 3rd party plugins. I'd just like to general the entire XML document with the internal DTD specification from within my Java code, if that's possible, rather than hard-coding the DTD as a String or in a separate file...
    Can anyone offer any assistance in how to generate an internal DTD with the methodology that I'm using to create the XML documents?
    I'm not 100% sure if the two above methods are general knowledge in the Java XML field, so I'm providing some sample code to specify what I meant by those terms.
    The DocumentBuilderFactory method to create a DOM document:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.newDocument();
    // Create & add elements to the document as necessary
    ...TransformerFactory method to serialize my DOM document into an XML file:
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer();
    DOMSource source = new DOMSource(doc);
    StreamResult result = new StreamResult(new File("test.xml"));
    transformer.transform(source, result);

    Are you looking for something like this?
    import java.io.*;
    import java.text.MessageFormat;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import org.w3c.dom.*;
    public class TestOutput {
        public static void main(String[] args) throws Exception {
         new TestOutput().test();
        public void test() throws Exception {
         Document doc = createDocument();
         String charset = "UTF-8";
         ByteArrayOutputStream bos = new ByteArrayOutputStream();
         write(doc, bos, charset);
         byte[] data = bos.toByteArray();
         System.out.println(new String(data, charset));
        public void write(Document doc, OutputStream os, String charset)
             throws Exception {
         PrintWriter writer = new PrintWriter(
              new OutputStreamWriter(os, "UTF-8"));
         writer.println(createXMLDeclaration(doc, charset));
         writer.println(createDTD(doc));
         writer.flush();
         transform(doc, os);
        private Document createDocument() throws Exception {
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = dbf.newDocumentBuilder();
         Document doc = builder.newDocument();
         Element elm = doc.createElement("GREETING");
         doc.appendChild(elm);
         Text text = doc.createTextNode("\n\tHELLO XML!\n");
         elm.appendChild(text);
         return doc;
        private String createDTD(Document doc) {
         return "<!DOCTYPE GREETING [\n" + "\t<!ELEMENT GREETING (#PCDATA)>\n"
              + "]>";
        private String createXMLDeclaration(Document doc, String charset) {
         return MessageFormat.format(
              "<?xml version=\"1.0\" encoding=\"{0}\" standalone=\"yes\" ?>",
              charset);
        private void transform(Document doc, OutputStream os) throws Exception {
         TransformerFactory tf = TransformerFactory.newInstance();
         Transformer t = tf.newTransformer();
         t.setOutputProperty(OutputKeys.INDENT, "yes");
         t.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
         t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
         t.transform(new DOMSource(doc), new StreamResult(os));
    }Got the sample data from the XML Bible :-)
    Piet

  • How to upload an excel to a dynamically generated internal table?

    Hi,
    I have an excel sheet. I have to create an internal table dynamically according to the fields of the excel sheet. The internal table i have created successfully, the fields are exactly coming as the excel sheet. I need to upload the excel sheet directly to my Internal table.
    Similar to the FM GUI_UPLOAD, which directly uploads the text document into the internal table
    I am not able to pass my dynamic internal table to the GUI_UPLOAD, The tables parameter in the GUI_UPLOAD is accepting only the standard tables.
    How to do?
    -Sudheer

    Hi,
    Use TEXT_CONVERT_XLS_TO_SAP  Function  Module.
    AWARD POINTS IF USEFUL

Maybe you are looking for

  • A few questions with XML and Flash

    Hi there. I am currently trying to create a 3d carousel using AS2 and XML.  I've made a lot of progress, but there ar e few things I am still struggling with and was hopoing that someone here could please steer me in the right direction. Here is a UR

  • Using COMMAND 'B' to cut - viewer goes blank?

    Not always, but often when I use the COMMAND B to make a cut in a clip - my viewer (which I have on a second monitor) goes blank.  Stays blank for awhile, then comes back into service.  I'm wondering what might be happening here?

  • [svn:fx-trunk] 11652: The damageHandler needs to invalidateSize because the damage could have been caused by a programmatic change which would not have gone thru the EditManager .

    Revision: 11652 Author:   [email protected] Date:     2009-11-11 06:06:14 -0800 (Wed, 11 Nov 2009) Log Message: The damageHandler needs to invalidateSize because the damage could have been caused by a programmatic change which would not have gone thr

  • This is wrong!

    The current Downloadable version of Flash, (11.3.300.268), however the new version is 11.3.300.270 and is a bit tricky to find and install~! Adobe needs to update the download page to reflect the change in version and to forget the troublesome .268 v

  • Tablespace offline

    Hi, i have a database 11.1.0.6 running in windows 2003 server.i took a tablespace offline and changed the location of the datafile of that tablespace. When i tried to make the tablespace online it asked for media recovery and i am not able to make th