How can I execute a vi when a switch changes
I have a switch which controls the input to a VI (it is slightly more complicated than that, but that's the basic idea).
The VI is a "set" function. So it really should only execute when the value changes.
Is there some way to set the switch so that there is only data available on the output when the switch is switched, thus executing the VI once?
If not, what is the best way to do this?
Thank you.
B.
BPerlman wrote:
Thank you.
An event structure sounds like just what I need. I am not going to get into the design patterns you mentioned here .... this is a demo program and there is a switch on the front panel that demos a feature in our library, turning it on and off. I just want to call a library function to turn the feature on or off at user request....the rest of the demo works (right now, I call the VI to turn on/off the feature every time through my main loop -- this is ugly and causes us timing problems... but everything else is finished)
I tried to add an event structure but don't seem to have it in my edition of LabVIEW....
What I just added now is a shift register to save the value of the switch between loop iterations, and I compare it to the current value, then feed it into a true/false case structure, only calling my "set" VI when the two values are different...
Is there a better way, or is that all I can do unless my company buys a fancier LabVIEW version?
Thanks.
B.
Shameless plug for an idea in the idea exchange. Since this would have helped you resolve your issue you might want to consider giving a kudo to this idea.
The way you are doing it now with the shift register is pretty much the only way you can do this without using an event structure.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Similar Messages
-
How can I terminate my sequence when DI signal changed?
Hello, I have a problem that I want to stop my sequence by DI signal changed.
How can I terminate my sequence when DI signal changed?
Thanks
Solved!
Go to Solution.Hi, you can test the DI signal in vi using a while structure in another thread while main sequence is running. Then you can make use of an if statement to determine whether to get on running the sequence by the value of the vi.
-
HT1212 How can I unlock my iPhone when password was changed and never memorized?
Hello:
I have an iPhone 4S, the phone was temporarily out of service and now we can't remember the password to unlock it. Please advice.you have to connect it by usb to the computer and restore to factory settings
-
How can I execute program after using F4_Filename function?
Hi all,
I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
This is simple program for example:
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
f_name = p_file.
write:/ f_name.
This program works correctly. There is a field for parameter. I can change the default name for a file.
After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
Now I added a function F4_Filename
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-repid
dynpro_number = syst-dynnr
field_name = 'p_file'
importing
file_name = p_file.
f_name = p_file.
write:/ f_name.
I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
What do I do wrong?
Could anyone suggest me a solution? How can I executed the code after using this function?
Thanks in advance.
Regards,
Arek.Hi arkadiusz,
1. simple
2.
<b>start-of-selection.</b>
f_name = p_file.
write:/ f_name.
regards,
amit m. -
How can I execute external application?
Hi friends I want printing my barcodes a laser printer (Kyocera) it isn't a barcode printer. So I think (and I look kyocera web page my model doesn't support barcode printing in sap) print my barcodes using an external system. Before SAP we are using JollyPrint application for printing barcodes. It is using an Excel file.
I can create a excel file for this application. I must execute this (JollyPrint-it is a label application) application when I press a button. How can I execute this application?
Thanks
Mehmet
P.S. I have been writing this message with details may be somebody can give me a simple way for thisWell, I can suggest you following steps. May be it works for you .
-Create an external OS command in SM69
-Test OS command in SM49 ( <u><i>about OS command if you search in SDN youll get lot of material</i></u> )
-Create a Script at your OS level, Im assuming you might have some UNIX flavor or Sun solarias.
-Create a Shell script , which execute the printer job from OS .
-Shell script will have parameters . ( e.g. printer name, destination etc )
-set the path of shell script directory in SM69 ( the command you just created )
-Execute shell script using your ABAP program ( use FM "SXPG_COMMAND_EXECUTE" )
In the ABAP program you can pass the parameters and execute the command from ABAP as a result your job will start printing on the required destination. Moreover, you can also capture the spool at OS level .
FYI
For UNIX script, if you search in www.google.com ( UNIX forums) . youll get shell script .
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How can I execute a query from a BSP application?
How can I execute a query from a BSP application?
I´m trying to execute a Query from intranet. I´ve been looking for examples, but the templates I´ve found doesn´t help me.
does anybody has an example?
Thanks.Hi
Have you designed the BSP application ?
design it first with one page
page will have layout and Event handlers
Design the layout with the fields
in the event handler there are events
in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
see the doc
BSP
To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
The following tutorials are available:
· First Tutorial: First Steps with Business Server Pages
· Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
· Third tutorial: Our First Online Bookshop
· Fourth tutorial: Further Developing the Bookshop
· A small Tutorial is also available for your first steps with the Model View Controller design pattern.
· For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
When creating BSP applications, note the browser dependencies described in Note 598860.
steps:
1) start the transaction RZ10.
2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
3) u will also find three options in the same window.
Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
4) Now click on change button.
5) here u will find parameter icm/host_name_full, so now set it as FQDN.
6) Now copy ur settings with new version number.
7) Activate that version.
8) And now please restart ur WAS.
So this will set ur FQDN, and also don't forget to login using Admin User.
Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
/default_host/sap/bc/bsp/sap
/default_host/sap/bc/bsp/sap/system
/default_host/sap/bc/bsp/sap/public/bc
/def ault_host/sap/public/bc
/default_host/sap/public/bc/ur
/default_host/sap/public/bsp/sap/public
/default_host/sap/public/bsp/sap/public/bc
/defaul t_host/sap/public/bsp/sap/system
/default_host/sap/public/bsp/sap/htmlb
if not then activate all.
check this link
Read this weblog...
/people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
it consists of screen shots also
Check it.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
Regards
Anji -
How can i execute trigger from procedure
Hi
How can i execute trigger when-button-pressed from procedure.
I knew i have to get the button name and then execute the trigger When-button-pressed.
but how can i do that.
Thanks
nullhow can i execute trigger
such as When-Button-Pressed on item name "item1"
and i have more than one trigger with this name on onther
items
i know Execute_Trigger('when-button-pressed');
but any trigger
for example :
Execute_Trigger('Item1.when-button-pressed');
or
Execute_Trigger('Item2.when-button-pressed');
or
other syntax
i dont know
please help me
my email : [email protected]
Hani -
How can i handle with event, when i close a file (notped or excel...). i want do something..
Edited by: Legy on Apr 21, 2008 11:45 PMof course notepad.exe is closed again as soon as the operating system has completed the process of loading its content into memory...
And no "event" is fired when that happens, except maybe internal to the process that loaded the application to indicate that it's been loaded successfully and can now be executed.
But there's no way your Java process is ever going to receive that notification. -
Hey, I'm trying to install Adobe Flash on my Macbook Air. At a certain point it asks for my password but it doesn't take it. So I cannot continue installment. I have reset my password already. Still the same problem. How can I continue to install when it keeps asking for a password it doesn't recognize over and over again? How many times do I have to reset it then? Advice please
You have to provide your computer's administrator password in order to install Flash Player.
-
How can I make signature darker when I print the report?
I need to put my manager's signature on the report. The signature is too light, How can I make it darker when I print the report?
I used file link and OLE, both did't make it.
Thanks.No way to do it directly in the report. You need to work with signature image file using any graphic software to increase its contrast. The easiest probably would be to use Paintbrush and change the image to black-and-white, then save back as jpeg file.
-
I am trying to manage family sharing and I get a warning "invalid apple ID" accounts can participate in one Family at a time. How can I add my daughter when I can't even access my account?
Your best bet would be to try resetting the password to the account that you would like to use via iForgot
Once you log in to that account change the email address to anything, it can even be fake its just a placeholder
After you do that you will be free to change your old email address on your appleID to the new one that is now free to be used as it is no longer attached to the other account. -
How can we get ADFSecurity work when used in OC4J, OID and OAM?
I am getting error in http server log "mod_oc4j: Response status=499 and reason=Oracle SSO, but failed to get mod_osso global context."
But I am not using Oracle SSO and my client doesn't want to use it either, I am using OAM SSO(CoreIDSSO) in my configuration. Please read the details below.
I am using ADFSecurity in an app that is protected by OAM. To migrate ADFSecurity permissions from
system-jazn-data.xml to OID, I used JAZNMigrationTool to populate OID with Grantees and Permissions. OAM gives login page, and authentication works fine.
But ADFSecurity is not working. ADFComponent Delete button is enabled even for roles that dont have permissions for the iterator delete.
- The app works fine when I use without OAM. ADF Security permissions work fine.
- The app works fine when used with OAM, but with ADFSecurity disabled (enforce=false).
- When I enforce ADFSecurity alongwith OAM, ADFSecurity is not working.
In the doc "Oracle Containers for J2EE Security Guide b28957", there is a mention of use of CoreIDPrincipal for permissions. Our OID Permissions entries show
LDAPRealmRole for attribute orcljaznprincipal. I am not sure if this could be the reason.
We have configured AccessServerSDK for the SOA instance and have policy for the urls in the policy manager. We have entries in orion-application.xml, orion-web.xml and system-jazn-data.xml as per the documentations.
How can we get ADFSecurity work when used with OID and OAM?Have you been able to successfully integrate OAS with OAM & OID? We have similar requriement and so far we have not been able to get it working.
We have application specific roles which we map to OID roles using orion-application.xml.
Any pointers to achieve this would be greatly appreciated.
thanks,
Dipal -
How can I retrieve my password when the retrials email was not recoverable either? I also can't use or pass the othere means of recovery? Not being able to pass or answer the security questions?
I created a new ID but never being able to update the iTunes that were purchased/saved using the old id?
I can't also delete.Hi Kazmania89,
Welcome to the Support Communities!
If you require additional assistance with this, click on the link below for guidance:
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699
Once you are able to gain access to the old Apple ID, this article may be helpful:
Using your Apple ID for Apple services
http://support.apple.com/kb/HT4895
I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?
First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
Mac: iTunes for Mac: How to copy purchases between computers
PC: iTunes for Windows: How to copy purchases between computers
Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch.
Cheers,
- Judy -
Set up apple Id with invalid email so can't validate new account. How can I edit account info when I can't sign in for anything? Thx
Hi Franklin777,
If you are having issues with your Apple ID, this article will get you started.
Frequently asked questions about Apple ID
The first step is to find and edit the Apple ID you created:
Apple ID: Finding your Apple ID
If you need to reset your security questions this article will help ...
The rescue email address is a different address than the one you use for your Apple ID.
Rescue email address and how to reset Apple ID security questions
You can edit or delete your rescue email address at My Apple ID. To edit your rescue email address:
Navigate to My Apple ID using your web browser.
Click "Manage your account"
When prompted, sign in using your Apple ID and password.
Click Password & Security
You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
Hope you get back on track soon!
- Judy -
How can i fix a clip when the video and audio are not matching up?
How can i fix a clip when the video and audio are not matching up? I imported the video from a junkdrive in a .VOB format and concerted to a .mov the videos were filmed on a miniDVD recorder.
I would try detaching the audio and the dragging the audio to the left or right until it lines up.
Maybe you are looking for
-
How to find user group from tcode
Hi Experts, I have custom tcode from this i found report name as AQIDSYSTQV000001SD_RR_03====== I am unable to find Queryname in SQ01 from this. When i saw some of the forums i understood that IDSYST is the user group for my query but i am unable to
-
How can one do a full system restore from Time Machine to a Macbook Air
I recently had a major crash on my two internal disc DualG5. The system internal disk failed completely and I used Time Machine to do a full system restore to the second internal disc. It worked PERFECTLY!! I followed the instructions in support http
-
How do I transfer files from mac with snow leopard to a new retina display mac
What is the easiest way to transfer files from my old mac(2008) snow leopard to my new retina display mac book pro?
-
Using an AEBS as a WDS remote to Airport-enabled G5
Is it possible to share my G5 internet connection (via an Airport network) to devices connected to a remote Apple Airport Extreme Base Station via its Ethernet ports? I created an Airport network on my G5 and turned on Internet sharing. In the AEBS,
-
I Lost Parallels After Archive and Install
I posted this on the Parallels Forum, and although it was viewed 59 times, there were no replies. So I'm posting it here hoping that someone can/will answer my question. Here's what I posted: My OS X (10.4.11) became a little quirky after three years