Generate an Event based on Counter Trigger

Hello,
I have the following part that is already working: a counter (used for period measurement) which is triggered by a digital input. After that I'm reading the data and I'm puting them in a Queue. Here I get an error. The Enqueue Element Vi is providing an error. (Error 1, something with a @  character that is illegal). I've notice that if I disable the trigger for the counter I don't get the error. I'm thinking that this is cause by the delay between the moment in which the Enqueue Block tries to enqueue and the moment in which the counter provides something to its ouptut.
What I want to do is to Generate an Event based on the Counter Trigger Signal and to put all the reading and Enqueue part in an Event Structure. I've tried to do that using an Export Signal - Property Node, but I didn't manage to make it work.
If you have any solution for this (with or without events -  I just want to get rid of that error) please let me know.
PS: I have Labview 8.5.1 and the USB-6210.
Thanks,
LostInHelp

Hello Mike,
Thanks for your replay.
I've attached two vi files. In one you can find how I've tried to generate an event based on the counter trigger (test.vi).
The second one (test1.vi) is the vi where I get the queue error. I've deleted from the second vi the part where the data are dequeue and handled.
Thanks
LostInHelp
Attachments:
test41.vi ‏50 KB
test110.vi ‏35 KB

Similar Messages

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • Counter to generate event after certain counts

    Hi everyone,
    I would like to use my PXI card to generate an event (to my software) every say, 100 counts(for 100kHz Timebase). In other words, is it possible to generate an event every 1 ms based on the counts on the counters.
     Also, is it possible to reset this counter based on the GPS 1 PPS? I wanted to sync this counter with the incoming GPS PPS. Thanks!
    Regards,
    YB

    Hello,
    It is possible to reset a counter using a boolean input. If you could convert you GPS PPS signal to a boolean array, this idea applies.  I'm linking a knowledgebase article that demonstrates how to reset a counter. It should be very useful in getting you started.
    http://digital.ni.com/public.nsf/allkb/65E3DBC715998C3286256E900075B7F8?OpenDocument
    Best wishes,
    Wallace F.
    National Instruments
    Applications Engineer

  • Generate Events based on Cache size

    Hi,
    I have a use case where I need to generate events when the size of the cache has reached a specific value. The cache will be highly transactions (lot of inserts and deletes totaling to 6 million transactions per day). Also, I cannot limit the size of the cache as I don't want any data to be lost (trying to insert when cache size has reached its limit).
    One of the ways I could do this is to use a MapListener to generate an event on every insert to the Cache, and then check for size each time to decide if the further processing needs to be done. With the nature of the traffic in the cache, the items in the cache are to be processed when the size threshold is reached and then deleted. But, I'm not sure how much of an overhead these events and listeners will have (with 6 million items going through the cache each day)
    Is there any other more efficient way to do this? I have looked at Continuous Query cache which uses a filter based on a cache. But, I'm not able to figure out a way to get the size of the cache using a filter.
    Any pointers are helpful
    Thanks in advance
    Regards
    Vikas
    Edited by: vikascv on Nov 17, 2009 8:48 AM

    Hi Vikas,
    Typically a size type calculation is the cumulative result of all storage enabled nodes, i.e. a Count aggregation. In your use case you want to be made aware of changes to an aggregation but as an aggregation is point in time of request opposed to continually being updated it does not fit your use case. One option is to create a MapEventTransformer that you register with the cache which increments a counters cache (on a separate service) using an EntryProcessor, i.e.
    MapEventTransformer...
    public class CounterMapEventTransformer implements MapEventTransformer, PortableObject
        String m_cacheName;
        public CounterMapEventTransformer()
        public CounterMapEventTransformer(final String cacheName)
            m_cacheName = cacheName;
        public MapEvent transform(MapEvent event)
            Long prevCount    = null;
            Long currentCount = null;
            switch( event.getId() )
                case( MapEvent.ENTRY_INSERTED ):
                    // perform counter++
                    currentCount = (Long) CacheFactory.getCache("counters").invoke(m_cacheName, new CounterOp(true));
                    break;
                case( MapEvent.ENTRY_DELETED ):
                    // perform counter--
                    currentCount = (Long) CacheFactory.getCache("counters").invoke(m_cacheName, new CounterOp(false));
                    break;
            MapEvent newEvent = new MapEvent(event.getMap(), event.getId(), event.getKey(), currentCount-1, currentCount);
            return newEvent;
        public void writeExternal(PofWriter out) throws IOException
            out.writeString(0, m_cacheName);
        public void readExternal(PofReader in) throws IOException
            m_cacheName = in.readString(0);
        }Incrementing EP...
    public class CounterOp extends AbstractProcessor implements PortableObject
        boolean m_increment;
        public CounterOp()
        public CounterOp(boolean increment)
            m_increment = increment;
        @Override
        public Object process(Entry entry)
            Long newVal = null;
            if( !entry.isPresent() )
                entry.setValue(newVal = Long.valueOf(1));
            else
                newVal = ((Long)entry.getValue()).longValue() + (isIncrement() ? 1 : -1);
                entry.setValue( newVal );
            return newVal;
        protected boolean isIncrement()
            return m_increment;
        public void writeExternal(PofWriter out) throws IOException
            out.writeBoolean(0, m_increment);
        public void readExternal(PofReader in) throws IOException
            m_increment = in.readBoolean(0);
        }cache-config
         <!--
              | listener-cacheconfig.xml | | Copyright 2001-2009 by Oracle. All
              rights reserved. | | Oracle is a registered trademarks of Oracle
              Corporation and/or its | affiliates. | | This software is the
              confidential and proprietary information of Oracle | Corporation. You
              shall not disclose such confidential and proprietary | information and
              shall use it only in accordance with the terms of the | license
              agreement you entered into with Oracle. | | This notice may not be
              removed or altered.
         -->
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>dist-*</cache-name>
                   <scheme-name>distributed-scheme</scheme-name>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>counters</cache-name>
                   <scheme-name>counter-scheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <!--
        Distributed caching schemes
        -->
              <distributed-scheme>
                   <scheme-name>distributed-scheme</scheme-name>
                   <service-name>DistributedCache</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>string</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <local-scheme />
                        <!--
                             <read-write-backing-map-scheme> <internal-cache-scheme>
                             <local-scheme /> </internal-cache-scheme> <cachestore-scheme>
                             <class-scheme>
                             <class-name>com.oracle.coherence.cachecounter.store.CacheCounterStore</class-name>
                             </class-scheme> </cachestore-scheme>
                             </read-write-backing-map-scheme>
                        -->
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </distributed-scheme>
              <distributed-scheme>
                   <scheme-name>counter-scheme</scheme-name>
                   <service-name>CounterDistributedCache</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>string</param-type>
                                  <param-value>pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <local-scheme />
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </distributed-scheme>
         </caching-schemes>
    </cache-config>pof-config...
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>     
       <user-type-list>          
          <!-- include all of the standard Coherence type -->
          <include>coherence-pof-config.xml</include>          
          <!-- our custom types (user types) 1000+ -->          
          <user-type>                 
             <type-id>1000</type-id>            
             <class-name>com.oracle.coherence.cachecounter.event.CounterMapEventTransformer</class-name>          
          </user-type>
          <user-type>                 
             <type-id>1001</type-id>            
             <class-name>com.oracle.coherence.cachecounter.processors.CounterOp</class-name>          
          </user-type>
       </user-type-list>
       <allow-interfaces>true</allow-interfaces>
       <allow-subclasses>true</allow-subclasses>
    </pof-config>Test class
    public class MapEventTransformerTest
        public static final String m_cacheName = "dist-test1";
        public static void setUp()
            System.setProperty("tangosol.coherence.cacheconfig", "counter-cacheconfig.xml");
            System.setProperty("tangosol.coherence.distributed.localstorage", "false");
        public static void loadVals()
            final NamedCache cache = CacheFactory.getCache(m_cacheName);
            final int MAX_SIZE = 100;
            for( int i=0; i<MAX_SIZE; i++ )
                cache.put(i, "msg "+i);
        public static void removeVals()
            final NamedCache cache = CacheFactory.getCache(m_cacheName);
            final int MAX_SIZE = 100;
            for( int i=0; i<MAX_SIZE; i++ )
                if( i%2==0 )
                    cache.remove(i);
        public static void testTransformer()
            final NamedCache cache = CacheFactory.getCache(m_cacheName);
            cache.addMapListener(new CounterAwareListener(),
                    new MapEventTransformerFilter(AlwaysFilter.INSTANCE, new CounterMapEventTransformer(m_cacheName)),
                    false);
        public static void main(String[] args) throws IOException
            setUp();
            testTransformer();
            loadVals();
            removeVals();
            System.out.println("press a key to end...");
            System.in.read();
        public static class CounterAwareListener extends MultiplexingMapListener
            @Override
            protected void onMapEvent(MapEvent evt)
                System.out.format( "# of items in cache: %d\n", evt.getNewValue() );
        }Note: Events could be received out of order but for your use case where you are interested in a threshold you may not care! -- food for thought :)
    --harvey                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can I detect an external trigger and then generate an event or occurance

    I have a PXIe-1065 chassis with a PXIe8030 controller, PXI-6653 timing module, PXI-6542 Digital IO, and PXI-6259 DAQ board, running LabView 8.5. I need to detect a trigger (100 ns TTL pulse) from an external device then start a process on a GPIB device. Is there a way for me to detect this trigger and then generate an event, or an occurance ? Can I do this without polling a device? Can any of this hardware generate an interrupt that LabView can detect?

    My screenshot was only an example how you can approach the issue. I wasnt saying that you should try it with AI....
    Just take a closer look into the DAQmx Events and you will discover something like this:
    hope this helps,
    NorbertMessage Edited by Norbert B on 10-05-2007 02:35 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    DAQmxEvent.PNG ‏11 KB

  • How to I trigger an event based on the status of a pushbutton​?

    I am trying to trigger an event based on the ON/OFF status of a pushbutton.  When I click the pushbutton to the ON position, I want the event structure in a loop to trigger on each iteration until the pushbutton goes back to the OFF position, either manually or programatically.  Is there an easy way to accomplish this?
    Many thanks.
    Solved!
    Go to Solution.

    Well, lets read the original question:
    diarmaede wrote:
    I am trying to trigger an event based on the ON/OFF status of a pushbutton.  When I click the pushbutton to the ON position, I want the event structure in a loop to trigger on each iteration until the pushbutton goes back to the OFF position, either manually or programatically.
    I cannot see anything about "switch until released", only "click to ON" and "OFF manually or programmatically". That seems to be a plain switch action.
    JHourigan wrote:
    If I want to simply detect a button push event. I set the mechanical action of the boolean button to switch-until-released. Then I use the mouse down event structure on that button to detect the event.  It avoids having to include a case structure logic to address the state of the boolean in an Value Change event structure. The button immediately returns to the false condition after release.
    So far you are not dealing with the OFF handling at all, which seems to be a requirement. There must be more to it that you mention to get this working as intended. The value of the boolean needs to be constantly monitored anyway, so it might be difficult to do things without a case structure. I am still confused about the logic of it all ....
    You should really include a small working example VI so we can see what you are talking about. Thanks!
    LabVIEW Champion . Do more with less code and in less time .

  • How to generat multiple invoices based on per employee/contractor/services?

    Hello Experts / Dina,
    I am in situation where customer is in business of body shopping and charges to his final customer based on individual invoice / per employee /contracor & customer services. This was happening in legacy system but after the implementation of Oracle Project costing and Oracle Project billing, customer is not able to generate invoices per employee services. Rather consolidated invoices are getting generated.
    How to achieve this functionality in oracle project billing?
    Lets take example - On Project P1 for customer ABC, 3 below employees are working on different task for 3 months.
    Now after one month employees have been billed as shown below.
    Emp 1 - 1000 USD - for 100 Hrs
    Emp 2 - 2000 USD - for 200 Hrs
    Emp 3 - 1000 USD - for 50 hrs
    Now @ end of the month when invoice is getting generated is 1 invoice including 3 lines of amount total 4000 USD. There is problem; customer wants that there should be 3 different invoices per employee shoud generated based on above mentiond 3 diff lines for customer ABC.
    I guess with oracle projects billing - You can split the invoice based on Accrue through date ( which is not possible in this case ) and agreement ( which is also not possible in this case ) and different currency ( which is again not possible in this case) - I may be wrong when saying it is not possible. plz correct me if I am wrong.
    even I guess billing extension wont work. So is there any way to achive this?
    Right now only option i am thinking is let single invoice of 4000 USD with 3 different lines should pass to AR and while priniting the invoice customer can create 3 diff prints which includes individual lines. and while applying receipts on the single invoice in the system, customer can apply the receipts to indivual lines.
    but I am not sure about AUDIT issues.. Can some one think about any AUDIT issues comes to this approch or issues with TAX rounding amount issues ?
    Infact I would like to solve this issue with the help of Oracle Projects billing and not with custom invoice print program. I guess someone from you experts can figure it out to generate muiltple invoice based on employees / suppliers / contractors / materials etc.
    A suggestion on Extension / customization / seeded functionality of Oracle Project billing on thi issue would be gr8 help.
    Please help.
    Thanks
    Edited by: oracle_samba on Jan 7, 2013 1:06 AM
    Edited by: oracle_samba on Jan 7, 2013 1:07 AM

    Hi Dina,
    First of all thanks for your update :-) Your solution looks much promising.
    I thought of using billing extension but rejected on the ground that I would end up in generating events based on employee for their corsponding billig amounts so finally generating a consolidated invoice only in One GDI run. But what i was missing was pre-processing extension and running the extention in loop based on employee count.
    I am fully sure business would not have any issues of auto approving and releasing invoice upon generation. But my question is "is it possible to just approve the invoice & not release it using auto approve and release extension?" The reason is I think when GDI runs it only deletes Unapproved invoice & spare Approve invoices. - So please suggest.
    Also please validate my understanding about your solution with an existing example -
    As with the current example, there are 3 EMP presents so need to run GDI 3 times and develop pre-processing ext in a such a way that at each time it will put on hold on all the billable items except EMP1, and EMP2 and EMP3 on each consecutive run respectivly. And ensure that Auto Approve and release extension should be used in order to avoid overriding previously generated invoice? Am I right ?
    Many Many thanks for solution !!!
    Regards,
    :-)

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • How to generate a Spool based on output type in SAP Script

    Hi all,
    Is it possible to generate a spool based on output type for a SAP Script (without explicitly trigger in Tcode VF02 and selecting output type from there )
    Actually a background job will be scheduled to process output types selected in VF01 / VF02
    When output type is ZABC in the background a work flow is called pdf is generated

    Any suggestions please

  • Programati​cally change control focus to generate and Event.....​.

    I'm adding some user enhancement (anti-screw-it-up functions) to insure the desired process is executed.
    Primary question:  If I have an event that is handles by a value change in a text control, (event happens when you hit Enter or exit control with mouse) will the event also occur if you exit the control by programatically changing the focus to another control ?
    I'm going to try and set up a temp vi to test this but wanted to see if anyone had tried this and if it works or not.  My other option is to set up multiple event cases but I was hoping to use a single case to handle everything.
    A few details,  I have a test system that tests a product automatically when the product is placed in a cradle and the cradle is moved into position and activates a prox sensor.  At end of test, system waits for prox sensor to de-activate before resetting the system.
    If a unit fails, there are rework options and the unit can be retested.  When it fails, a label prints defining the failure modes and provides a failing serial number.  When the unit is retested, the failing serial number is entered into a text control. I want the re-test sequence (queued up in the Event) to occur when either 1, a failing serial number is entered or two a button is pressed (with mouse)  I'm pretty sure pressing a button would in turn automatically create the text control change event so my button can probably be a dummy button just for appearances.
    Where the hole is if the user enters a failed serial # and doesn't exit the control and then engages a pump to start the test.  I can use a 'Empty Path/String' function but the control will continue to show empty as if nothing was entered until the Enter key is pressed or the mouse is used to exit the control.
    If I can generate the event by changing the focus, then it will insure that if a failing s/n is entered, the re-test sequence occurs and if nothing exists in that field, it performs a first time test.
    A little long winded for sure but any thoughts are appreciated.
    Can't really post any simple code as this feature is in my top level vi and I have a really big app that doesn't warrant uploading.
    Doug
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."
    Solved!
    Go to Solution.

    Actually, changing the focus alone did not trigger the event but I was able to then utilize the Empty Path/String function to drive a Value(Signaling) node for the control.
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."
    Attachments:
    Event_Structure_Trials.vi ‏29 KB

  • Event based decision

    Hi every one,
    I am working with jcaps 5.1.3.
    I am doing a business process to implement timer event, following user guide of eDesigner on page 63.
    I want to receive a message on my business process and do anything whit this message, but I want to control timeout while.
    I use a event based decision, but when I build my project I get next error:
    I test my business process and I found this error is generated when I configure event based decision (message event).
    Have everyone an example How implement a timeout on a bussiness process?
    Thanks on advanced,
    conhector
    com.stc.codegen.framework.model.CodeGenException: code generation error at = initializingnull
    at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1567)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
    at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
    at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
    at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
    at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
    at org.openide.util.Task.run(Task.java:136)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
    Caused by: java.lang.ClassCastException
    at com.stc.codegen.eInsightImpl.model.EInsightCodelet.validatePorts(EInsightCodelet.java:1597)
    at com.stc.codegen.eInsightImpl.model.EInsightCodelet.validate(EInsightCodelet.java:1567)
    at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.validateCodelets(CodeGenFrameworkImpl.java:1049)
    at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1542)
    ... 8 more

    Hello,
    i become acquainted with JavaCAPS at the moment.
    Working with the JavaCAPS Tutorial v2.1, i´m having the same problem like conector.
    Trying to built the EAR file in project 4 (Viewing store data), CAPS throws an exception named "code generation error at = initializingnull".
    I checked the corresponding connectivity map but everything seems to be ok.
    Exception:
    code generation error at = initializingnullError details:
    com.stc.codegen.framework.model.CodeGenException: code generation error at = initializingnull
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1567)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
         at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
         at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
         at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
         at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
    Caused by: java.lang.ClassCastException
         at com.stc.codegen.eInsightImpl.model.EInsightCodelet.validatePorts(EInsightCodelet.java:1597)
         at com.stc.codegen.eInsightImpl.model.EInsightCodelet.validate(EInsightCodelet.java:1567)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.validateCodelets(CodeGenFrameworkImpl.java:1049)
         at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1542)
         ... 8 moreFor help i would be deeply grateful!
    Thanks.

  • How to run a particular case continuously in event based state machine architecture.

    I am making a program using event based state machine architecture, it is running as expected whenever i am generating an event, case structure corresponding to that event executes.
    we are taking some measurements from oscilloscope e.g. i am having one boolean button for rise time whenever i am pressing that that button it displays the value of rise time, it displays only once( since i have generated an event on that boolean button so it executes only once and displays value for one time and then comeback to timeout state) but in our program what we want, we want it to update value continously once that button is pressed.
    Now for a time being i have placed while loop on the case corresponding to rise time but this is not the right approach.
    since i am using state machine architecture( event based ), i am not getting how to run particular case continuously ,or if there is any other better architecture that i can use to implement the same application.
    Attached below is the program.
    Attachments:
    OScilloscope .zip ‏108 KB

    Say, in the attached program, when the user selects Autoset, it inserts corresponding state (Autoset) and now if you want this state to run again and again, probbbly you can again insert Autoset state while executing Autoset state... ohhh its confusing... check the picture below (A picture is worth a thousand words):
    1. Based on user selection, insert Autoset state.
    2. Re-insert Autoset state again and again while executing Autoset state.
    3. Now to come out of this loop, based on appropriate event generation, insert any other state AT FRONT (equivalent to Enqueue Element At Opposite End).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Event based Process chain issue

    Hi,
    I have a PC which is event triggered through a program. when i'm trying to run it i'm getting following msg
    "Process chain is not responding to the event trigger."
    Can someone help me in fixing it and triggering thr PC ?

    Hi,
    Refer the nice article from SDN and verify if you have followed the process to write the event based PC.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0a41bc6-a7f6-2b10-b3bf-804e1c45ae6c
    Regards
    Dinesh
    Edited by: Jason Lax on May 16, 2011 8:27 PM - Added preferred URL

  • EVENT BASED SCHEDULER

    Hi All,
    I have two databases lets say A an B.
    I have a STORED PROCEDURE on DATABASE B which runs everyday via a schecduler at 8 in the morning.
    This procedure basically picks up data from a TABLE in database A and processes it everyday.
    Now I want to modify the scheduler from the current one that runs at say 8 to one that runs the STORED PROCEDURE whenever data is inserted into the table.
    Is it possibble in ORACLE?
    Datbase version is 10g
    Any help would be highly appreciated.

    Elessar wrote:
    Hi All,
    I have two databases lets say A an B.
    I have a STORED PROCEDURE on DATABASE B which runs everyday via a schecduler at 8 in the morning.
    This procedure basically picks up data from a TABLE in database A and processes it everyday.
    Now I want to modify the scheduler from the current one that runs at say 8 to one that runs the STORED PROCEDURE whenever data is inserted into the table.
    Is it possibble in ORACLE?
    Datbase version is 10gHere is one way of doing it:
    Oracle Scheduler - Event Based Jobs.
    One way of re-using it is, raising an Event trigger to Kick-off the jobs, preferably once data is inserted into tables. Definitely, this has to be done by the system performing the Inserts.

  • Function modules to generate the event required

    Hi guys,
    I have created a workflow but its start event is not getting triggered though condition data is correct.
    I want to debug and see when the Business object's event is called.
    Can you please tell me name of the Function modules to generate the event. This way i'll put a breakpoint on those and check the flow ?
    Regards,
    Shaili

    Thanks Surjith
    I'll check this FM.
    Also I want you advice on the real issue i'm facing.
    I have created a workflow giving some condition with start event as CHANGED of BUS1006. Now the work of populating the field in condition is done automatically by a BADI i've created.
    The issue is that the workflow is not triggerd during automatic population of teh field but is triggered when i explicitly populate the field.
    The reason might be that CHANGED event of the business object used is triggered before the SAVE BADI has populated teh field. So CHANGED event 's condition is not satisfied before the BADI has finished updating.
    Is there a way tackle this. Can I somehow push back the trigger of workflow...I'm new to workflows so please don't mind if this sounds foolish
    Regards,
    Shaili

Maybe you are looking for

  • HT1420 how to deauthorize a computer that is not with me anymore?

    how to deauthorize a computer that is not with me anymore?

  • Assign house bank to Customer item - LOANS - FNM1

    Hi Guys. In Loans, when I use FNM1, is  it possible to assign the "House bank" in the customer posting item? There is payment details in Loans but this payment detail is only when I'm not using customers. My doubt is when I'm using customer. Is it po

  • Report on supplier performance

    Hi Gurus, Is there any report to track supplier performance based on Quality, price, service and terms, condition. My client will track the report and select the best supplier based on past performance of above criteria. Please advise

  • Photoshop CS6 Video Editing Question

    In Photoshop CS6, why is my video stopping & then skipping before cross transitions?

  • Mac Compatibility?

    I'm thinking of purchasing a powerbook, am wondering, since apple does its own java sdk and runtime. Can my java app that will be compiled in mac be compatible with sun's java in windows/linux/solaris