Statechart - exiting from timed actions
Hi,
I'm new at Labview and the statechart module. I used to work with Simulink so I'm in adaptation mode!
I'm building a statechart to control a machine that has several devices. I want implement a emergency state.
Some of the states actions have subVI inside with timed tasks inside. I want be able to go to the emergency state even if one of that timed tasks are running and it is not yet finished.
The problem is that I cannot go to the emergency state before the time ends. I also tried to put the execution of the subVI inside the entry action, but the behaviour was the same.
Can anyone help me to solve this?
You can see an example of my application in the attach.
I'm trying to create a superstate inside each main state for each device that i need to control. So connect the emergency transition directly to each transition is not solution.
Attachments:
labview_plc_3.7z 241 KB
hi
data : gv_bukrs like bsis-bukrs.
parameter : p_bukrs like bsis-bukrs.
gv_bukrs = p_bukrs.
write : gv_bukrs.
Use the FM DYNP_VALUES_READ, pass program name, dynpro number and request as A from your program.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-REPID
DYNUMB = SY-DYNNR
TABLES
DYNPFIELDS = DYNP_VALUE_TAB.
DYNP_VALUE_TAB-FIELDNAME --> screen field name
DYNP_VALUE_TAB-FIELDVALUE --> coresponding screen field value
Similar Messages
-
How to exit from whileloop with Timing Delay
Hello;
How to exit from forwhile with timing wait (10s) before finish 10s by stop botem;
exemple ; first impulsion to start a while loop with 10 s wait ,before finsh a 10s second impulsion to stop the while loop; in labview 2010
best regrds
Forza JuventusShow us the code you currently have. Just repeating your specification word-for-word is not going to help us to understand you problem.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Exiting from ABAP Web Dynpro application
Hi,
In ESS portal we have one tab Personal info, there I have created one link and integrated my ABAP web dynpro application.
I want to exit from the application and go back to the Personal info sub area. created one exit button in my application on press of that i need take this action.
Please guide me with this
Thanks!
PiyushPiyush,
I am not sure whether it works or not just get the navigation url of personalinfo subarea and using portal APIs navigate to that url when you click on exit button
Thanks
Bala Duvvuri -
Redirecting control to portal page after exiting from SAP R/3 transaction
Hai,
In my portal Top Level Navigtion, I have two Option, "HOME", "HR FUNCTION".
When a user login to portal by default the first node "Home" is opened and its content is opened in detailed navigation. Then the first content from detailed navigation which is URL iview is opened on the content area.
When a user opens the second node "HR Function", in the detailed navigation, SAP transcaction IViews are shown. When a SAP transaction IView is clicked, its content are opened in content area. After the user finished working with that transaction, he/she is exiting from the transaction by clicking the "Exit" button. This action, makes the content area to show as blank screen.
Is it possible to show the URL ivew from the "Home" menu when ever the control is coming out of SAP transaction IView. In otherwords in need to fill the blank screen with URL Iview. I don't know from where and how to call this URL IVIEW.
Please let me know how to do this.
Thanks & Regards,
H.K.Hayath Baha.Hai Anant,
Thanks for the suggestion. Can you tell me where I have to give the code.
Regards,
H.K.Hayath Basha. -
EmptyStackException when exit from nested page flow on SP2
I have tried to call a nested page flow (TestNestedController.jpf) from page flow
and using redirect="true". After exit from nested page flow, it supposes that
return to the action testNestedDone() in page flow(TestPageController). It works
on SP1, but it fails on SP2.
Please suggest any solutions for this issues.
public class TestPageController extends PageFlowController
// Uncomment this declaration to access Global.app.
// protected global.Global globalApp;
// For an example of page flow exception handling see the example "catch"
and "exception-handler"
// annotations in {project}/WEB-INF/src/global/Global.app
* This method represents the point of entry into the pageflow
* @jpf:action
* @jpf:forward name="success" path="page.jsp"
protected Forward begin()
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
redirect="true"
protected Forward goToNested()
System.out.println("go to nested redirect = true");
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward testNestedDone()
return new Forward("success");The error message like this:
Empty nesting stack for returned action BackToPrevious from Page Flow /xxxx/viewMemberController.jpf.
com.bea.wlw.netui.pageflow.EmptyNestingStackException: Empty nesting stack for
returned action BackToPrevious from page flow /xxxx/viewMember/viewMemberController.jpf.
at com.bea.wlw.netui.pageflow.FlowController.forwardTo(FlowController.java:1103)
"patrick" <[email protected]> wrote:
>
I have tried to call a nested page flow (TestNestedController.jpf) from
page flow
and using redirect="true". After exit from nested page flow, it supposes
that
return to the action testNestedDone() in page flow(TestPageController).
It works
on SP1, but it fails on SP2.
Please suggest any solutions for this issues.
public class TestPageController extends PageFlowController
// Uncomment this declaration to access Global.app.
// protected global.Global globalApp;
// For an example of page flow exception handling see the example
"catch"
and "exception-handler"
// annotations in {project}/WEB-INF/src/global/Global.app
* This method represents the point of entry into the pageflow
* @jpf:action
* @jpf:forward name="success" path="page.jsp"
protected Forward begin()
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="/test/testNested/TestNestedController.jpf"
redirect="true"
protected Forward goToNested()
System.out.println("go to nested redirect = true");
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward testNestedDone()
return new Forward("success"); -
To exit from swing application(reply soon )
hi guys,
what to do to exit from swing application using button or menuitem.
i have extendd frame.
i wrote]
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);but it didn't worked.
thanx.hi guys,
what to do to exit from swing application using
button or menuitem.
i have extendd frame.
i wrote]
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);[
code]What does that code do? Check the API for JFrame.
but it didn't worked.No it would not. How do you add a action to a menuitem? (Check the tutorials).
How do exit the JVM (check the tutorials, and/or the API for System) -
Hi every body
i have a procedure that execute a loop.What i want that to allow user to exit from loop before it finished(by using keyboard), i do that by pressing ctrl+alt+del which end the program it self.One could try putting the call to the procedure in a loop on the front end. Then check within the loop (in the front end ) whether the user has pressed a pre-defined button. If pressed, one could disconnect the connection or take some similar action that would stop processing the call to the stored procedure.
May be something like this is workable ... ?
Narayan.
null -
Exiting from OSB pipeline when application error occurs
Hi
My proxy exposes 3 operations to the consumers though WSDL with different inputs and similar output formats. For all these 3 operations there is a common service to be called before actually get into the operational branch that i created for handling these operations. so the message flow would be like below:
pipelinepair1 -> stage1 in pipeline1 ->service callout -> opeartional branch.
I am manipulating the response n respone line of pipeline1 for all the operations as its similar strcuture. If an application error arises in service callout the error will be in the body. so if the error raise i should directly exit from message flow in service callout itself wthout proceeding to operational branch. So i tried with reply action, though i am existing from OSB its not going into response pipeline of pipelinepair1. How can i handle this scenario? i don't want to put the same thing in service callout response pipeline again. Please let me know your insights.
Thanks
SivaThis could be done in different ways... why you need to manipulate the response in response pipeline only.
When your service call out fails do a 'Raise error' action.. and process the reply in stage error handler which will complete with a "reply with failue ( or success) action. if you have not configured an stage error handler, you need to do this in the service error handler.
As this is an error case it is apt you handle this at the error pipeline( stage or service error handler) rather than the response pipeline. -
Hi Experts,
I have created a Webdynpro component and on One action One popup window is opening and on the Popup window there is a button Once its pressed it should ask for 'You wants to save the data ' if press on Yes it should save the data and it shold exit from Pop up window and press No it should remain in the Pop up window.
Here the pop up window is generating for me and Once If i press Yes its saving the data but please tell how can i Exit from popup window.
Thanks in advance.Hi Anil,
Please go through this link...
Closing a window on click of a button
Re: Closing a Pop Up Window on click of a button
Cheers,
Kris. -
Call an applications 'user exit' from a PL/SQL procedure
My question is a technical PL/SQL question related to Oracle Applications. I need to call a standard applications 'user exit' from a stored PL/SQL procedure. Can anyone tell me if this is possible and how to do it?
(i.e. I am attempting to call the AR user exit SALESTAX)
Thanks,
Michelle DodgeHi,
Read this thread, perhaps is there your response :
Host...
Nicolas. -
How to get data back from an action ?
Hello,
Would it be possible to get data back from an action (out of the question EO_MESSAGE & ET_FAILED_KEY )?
For example we got an order with order positions and we need a "function" to e.g. count all positions. Because of Performance the function should not be processed each time the order is changed, read or a position is added. Instead the function should be processed only if it was called explicitly.
Is it possible to create a kind of action which is actually counting all entries and export the number of them?
How to mark a parameter in is_parameters as exporting?
Is this just done by (naming-) convention?
What is the preferred way to have “methods” with returning/exporting values?
Regards,
LorenzHello Lorenz,
As you have already figured out , the Action API provides you with only the messages and failed keys if any.
Post action execution , you can always execute a retrieve or retrive by association , to get the latest buffer snapshot , which of course would include the changes that you have made in your action.
If you want to ensure that users have explict control on execution of your "fucntion", then of course , you should model it as an action on the BO.
The parameter is_parameters is an IMPORTING parameter. You CANNOT use it to export anything back from the action. For importing , you can of course have any structure to use as the is_paramaters , which you model as the action parameter structure which modelling your BO action.
From an external entity the only way to interact with a BO is by consuming the BO services and you are bound by the BOBF standard interfaces. Any and all data you require needs to be modelled as node attributes ( persistent or transient ) and fetched using the RETRIEVE, RETRIEVE_BY_ASSOCIATION or QUERY services.
Regards,
Indranil. -
How can I exit from full-screen View?
On the View menu, I clicked "Full screen View", but then I couldn't find any way back to normal view. I had to Force-Quit Firefox to escape.
How do you exit from Full Screen View?
(I tried Esc, Ctrl-C, and many other key combinations)
Thanks, PeterRTry F11.
-
Acrobat 9.2 crash after exit from Acrobat
I have a plugin for Acrobat 8.0 and re-compiled for Acrobat 9.0 using the 9.0 SDK. It works fine except when I exit from Acrobat, Acrobat always crash in any of the Acrobat Pro 9.x versions. The crash log always show the same place. It does not matter if I disable or enable the update. Always the same place to crash. Does anyone have any ideas?
Process: AdobeAcrobat [29144]
Path: /Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app/Contents/MacOS/AdobeAcrobat
Identifier: com.adobe.Acrobat.Pro
Version: 9.2.0 (9.2.0)
Code Type: X86 (Native)
Parent Process: launchd [119]
Interval Since Last Report: 668 sec
Crashes Since Last Report: 1
Per-App Interval Since Last Report: 24 sec
Per-App Crashes Since Last Report: 1
Date/Time: 2009-10-14 15:10:00.939 -0400
OS Version: Mac OS X 10.5.8 (9L30)
Report Version: 6
Anonymous UUID: F9997425-181F-4A46-8222-B1BAA9558760
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000015fffcc1
Crashed Thread: 18
Thread 0:
0 dyld 0x8fe1764c ImageLoaderMachO::doBindLazySymbol(unsigned long*, ImageLoader::LinkContext const&) + 300
1 dyld 0x8fe06ed5 dyld::bindLazySymbol(mach_header const*, unsigned long*) + 149
2 dyld 0x8fe18c2f stub_binding_helper_interface2 + 21
3 ...adobe.acrobat.amtlibwrapper 0x188c42e2 0x1883b000 + 561890
4 ...adobe.acrobat.amtlibwrapper 0x188c4343 0x1883b000 + 561987
5 ...adobe.acrobat.amtlibwrapper 0x18851355 AVAMTForegroundUpdateCheckEnabled + 84063
6 ...adobe.acrobat.amtlibwrapper 0x18843989 AVAMTForegroundUpdateCheckEnabled + 28307
7 ...adobe.acrobat.amtlibwrapper 0x1883cc26 AVAMTForegroundUpdateCheckEnabled + 304
8 com.adobe.Acrobat.framework 0x803d4a07 AcroSecurityBailOutImpl + 2997119
9 com.adobe.Acrobat.framework 0x803d4a79 AcroSecurityBailOutImpl + 2997233
10 com.adobe.Acrobat.framework 0x800ffc97 AcroSecurityBailOutImpl + 28175
11 com.adobe.Acrobat.framework 0x8038cb91 AcroSecurityBailOutImpl + 2702601
12 com.adobe.Acrobat.framework 0x8007ff72 AcroBundleThreadQuitProc + 3096
13 com.adobe.Acrobat.framework 0x7fe43320 RunAcrobat + 326
14 com.adobe.Acrobat.Pro 0x00002e8b start + 2371
15 com.adobe.Acrobat.Pro 0x0000264a start + 258
16 com.adobe.Acrobat.Pro 0x00002571 start + 41iPhoto is missing bits of itself. You need to reinstall it.
To re-install iPhoto
1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
2a: On 10.5: Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
2b: On 10.6: Those receipts may be found as follows: In the Finder use the Go menu and select Go To Folder. In the resulting window type
/var/db/receipts/
2c: on 10.7 they're at
/private/var/db/receipts
A Finder Window will open at that location and you can remove the iPhoto pkg files.
3. Re-install.
If you purchased an iLife Disk, then iPhoto is on it.
If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
If you purchased it on the App Store you can find it in your Purchases List. -
How do we exit from a sub procedure
Hi,
I am calling a sub procedure from my plsql procedure. If an error occurs in the sub-procedure, it should exit from the appilcation.
return gets the control back to the called procedure. but is there a way to stop the execution totally?
Thanks,
NarayanRaise an exception that is not handled in the sub-procedure nor in the main procedure.
-
HR_INFOTYPE_OPERATION not working when called from Dynamic action
Hi ,
Senario : I would like to execute a form from dynamic action which
creates a record in 0015 (Additional payment IT) .
I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION
. When i execute the program from se38 it is creating a record, however it is
not created when it is called from dynamic action..when i debugged the code in
inside the FM HR_INFOTYPE_OPERATION there is a FM HR_MAINTAIN_MASTERDATA where
they are using call dialog (statement) and
sy-oncom = 'N' when called from Dynamic action and
sy-oncom = 'S' when called executed directly.
I tried to change the sy-oncom to S while run from Dynamic action it created
the record.
So Can anyone explain me abt sy-oncom and how can i resolve the issue..
code..
REPORT ZHRPYENH01 .
perFORM TERMIATION_9000.
INCLUDE DBPNPMAC.
FORM Termiation_9000 *
FORM TERMIATION_9000.
INFOTYPES : 0015.
*data : i .
*i ='c'.
*break-point.
*message i000(000) with i.
TABLES : PRELP.
DATA : P9000 TYPE PA9000." with header line.
DATA : P0000 TYPE STANDARD TABLE OF P0000 WITH HEADER LINE.
DATA : P0015 TYPE STANDARD TABLE OF P0015 WITH HEADER LINE.
DATA : HIRE_DATE LIKE SY-DATUM,
TERM_DATE LIKE SY-DATUM.
DATA : MOLGA LIKE T500L-MOLGA VALUE '25',
SEQNR LIKE PC261-SEQNR.
DATA : RGDIR TYPE STANDARD TABLE OF PC261 WITH HEADER LINE.
DATA : ACTUAL_PERIOD LIKE PA9000-RETENTION.
DATA : PNP-SW-FOUND TYPE SY-SUBRC ,
PNP-SY-TABIX TYPE SY-TABIX.
DATA : TER_PERNR LIKE PA0001-PERNR.
DATA : REF_PERNR LIKE PA0001-PERNR.
data : key type BAPIPAKEY.
data : payed_amount type p0015-BETRG.
data : future_payment_amount type p0015-BETRG.
data : p0002 like pa0002.
types : begin of t_deduction ,
deducation_date like p0015-begda,
future_payment_amount type p0015-BETRG.
types : end of t_deduction.
data : future_deduction type standard table of t_deduction with
*header line.
data : future_deduction type t_deduction .
data : RETURN type BAPIRETURN1.
*data : deduction_p0015 like standard table of p0015 with header line.
data : deduction_p0015 like p0015 .
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
****Prepare 0015 data for deduction
*deduction for payed amount
clear deduction_p0015.
*refresh deduction_p0015.
deduction_p0015-pernr = REF_PERNR.
*deduction_p0015-pernr = TER_PERNR.
deduction_p0015-lgart = 'M120'.
deduction_p0015-begda = sy-datum + 1 .
deduction_p0015-endda = sy-datum + 1 .
deduction_p0015-BETRG = payed_amount.
deduction_p0015-WAERS = 'SGD'.
deduction_p0015-ZUORD = TER_PERNR.
*append deduction_p0015.
**deduction for future payment amount
*loop at future_deduction.
*clear deduction_p0015.
*deduction_p0015-pernr = REF_PERNR.
**deduction_p0015-pernr = TER_PERNR.
*deduction_p0015-lgart = 'M120'.
*deduction_p0015-begda = FUTURE_DEDUCTION-DEDUCATION_DATE.
*deduction_p0015-endda = FUTURE_DEDUCTION-DEDUCATION_DATE.
*deduction_p0015-BETRG = future_deduction-future_payment_amount.
*deduction_p0015-WAERS = 'SGD'.
*deduction_p0015-ZUORD = TER_PERNR.
*append deduction_p0015.
*endloop.
Create a deduction wage type in 0015 for the employee
break-point.
CLEAR RETURN.
CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
EXPORTING
NUMBER = REF_PERNR
VALIDITYBEGIN = '18000101'
IMPORTING
RETURN = return
if not return is initial.
message E000(000) with
'Referred Employee could not be locked for referal payment deducation,
please try after some time'.
endif.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = REF_PERNR
SUBTYPE = 'M120'
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = SY-DATUM
VALIDITYBEGIN = SY-DATUM
RECORDNUMBER =
RECORD = deduction_p0015
OPERATION = 'COPY'
TCLAS = 'A'
DIALOG_MODE = '2'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = return
KEY = key
break-point.
COMMIT WORK.
if not return is initial.
*return-TYPE
*ID
*NUMBER
*MESSAGE
message I000(000) with return-MESSAGE.
endif.
CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
EXPORTING
NUMBER = REF_PERNR
VALIDITYBEGIN = '18000101'
IMPORTING
RETURN = return
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
Thanks and regards
-Senthil Bala
Message was edited by: senthil balaHi Senthil
Why at all U want a subroutine to create a record in IT0015 through Dynamic action.There are some standard codes available to update infotypes.
Let me give U an example
14 9CON BETRG 4 2 I INS,0015 This will create a record in IT0015 when IT0014 is updated with Wagetype 9CON
14 9CON BETRG 4 3 W P0015-LGART='5400' Set wagetype for IT0015(Here U can use a subroutine call to set the wagetype)
14 9CON BETRG 4 4 W P0015-BETRG=P0014-BETRG set amount for IT0015(Here U can use a subroutine call to get the amount)
14 9CON BETRG 4 5 W P0015-BEGDA=P0014-ENDDA set the dates(Here U can use a subroutine call to set the dates)
Hope this will help U.
Please award points if helpful
Maybe you are looking for
-
How do I use iTunes shar to share apps with in my household
I heard that sharing apps with in a household is ok. So I wanna co it but not sure how to do it with I tunes share. Help please
-
Problem with file length in jsp it is working in IE, not workig Firefox
Hi, I'm upload a file from the browser. i'm calculating the length i'm not getting the length of the file. The below shown code is working perfectly in IE and not working in Firefox. FileUpload.html <DOCTYPE> <HTML> <HEAD> <TITLE>Retailmint Jobs - Re
-
G/L balance sheet in STO is not balance
Dear All, in t-code fs10n my g/l acc is not balance in STO (Internal plant with same company code) the balance is occure my procedure is 1-creating stock transport order 2-creating delivery & post goods issue 3-creating billing document 4-creating ex
-
has anybody ever tried to make a poker game if you have, please help me. if you have not, please help me if you can. how would you check weather there is a winning hand. the possibilities are Royal Flush, Straight Flush, 4 of a kind, full house, flus
-
How to install Framemaker 12 without internet connexion ?
Good morning all, I need to install for testing Framemaker 12. In my enterprise, our workstations are not connected to internet. Is someone can tell me if there is a solution to install this software without internet connexion ? Thank you Stéphane