How to create a time control for while loop?
Hello all,
I would like to control my while loop's execution time. In other words I want to stop while loop's execution after time (in ms) which is set by user. For example user sets 5 seconds to front panel control and a while loop runs and stops after 5 seconds.
I am not sure is it possible with the while loop. I succeed with the timed loop but it suits badly to my application. Is there any other loops for timed control if it is not possible with while loop? There is also a simple while loop with Random Number (0-1).vi as attachment.
Best Regards,
Jick
Solved!
Go to Solution.
Attachments:
execution time loop.vi 6 KB
hi,
see this, may be it will help.
Best luck
Gaurav k
Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Attachments:
execution time loop.vi 9 KB
Similar Messages
-
How to get the last error for while loop?
How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.
What do you mean by "get" and "transfer"?
If the shift register is not what you want, use a plan tunnel instead.
Typically, programmers are interested in the first, not last, error.
Can you show us your code so we have a better idea what you are trying to?
LabVIEW Champion . Do more with less code and in less time . -
How to Create new Message Control for BOM
Dear Experts,
My question is , we have Set Deletion flag for BOM of some material, When we go to make Production Order. it is showing an warning message , I want to set Error message,instead of warning message . can you all plz tell me how to do it in conflig.
I have tried following settings , but it allows me to change it, but not to create a new message no
IMG, Production, Basic data, Bill of material, General Data, Change Message type
Thank you for your time.Hi,
For OPJB, execute.
Click on 'New entries'.
Enter version as 000, application area (the first two digits of the message no, for BOM it would be CO I guess), & message no.
Press enter. Under category maintain as E i.e. error.
For SE91, execute.
In message class enter the first two digits of the message, under subobjetcs, enter the message number & clcik on 'where used list icon' in extreme left.
A dialogue box will apeear, select programme & classes. Click on right mark i.e. execute.
A list of programmes will displayed.
Select the relevant programme & clcik on change.
Change the warning into error there. Please note that you need access key & need ABAP consultant to do the same.
Hope this helps you.
SmanS -
How to create custom Data Control for Iterator?
Hi,
I have seen somewhere that is possible to customize set of data controls for all iterators in Data Controll Palette e.g. by adding custom data control (I remember JDev uses Velocity to display data controls). Is there any documentation or tutorial how to do it. Meybe any Oracle ACE will write some steps on his blog.
KubaI'm looking for any documentation or better some examples to customize files:
jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/jsp_databinding_templates.xml
jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/faces_creator_configuration.xml
This customization may be very useful while developing appliations
Kuba -
How to Create Custom Timer Job for SharePoint 2010 using Visual Studio 2010?
While creating timer job Visual Studio showing some kind of error and assembly issues.
Hi Aryav
Please provide the errors so that we can resolve your issue.
Meanwhile go through the step by step process of creation of Timer Job in the articles given below.
Create and Deploy Custom Timer Job Definition in SharePoint Programatically
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !! -
[CS3 JS] How to Create a Timer?
Within InDesign I need to be able to fire a periodic process to examine links from a JavaScript script. I have my own script running in its own engine.
I can't figure out how to create a timer that will run in the background and call the appropriate callback function periodically.
I've created a little process like this:
* Sleeps for waitTime milliseconds then calls the callBack function.
function timer(callBack, waitTime) {
$.writeln("timer(): callBack=" + callBack + ", waitTime=" + waitTime);
if (waitTime == undefined) waitTime = 2000;
$.writeln("timer(): sleeping for " + waitTime + "...");
$.sleep(waitTime);
$.writeln("timer(): awake, calling callBack");
try {
return callBack();
} catch (e) {
$.writeln("timer(): Exception from callBack.exec(): " + e);
return undefined;
function myCallBack() {
return Window.confirm("Callback called", true, "Continue looping");
while (true) {
if (!timer(myCallBack)) break;
And this works in the sense that my timer runs, but it runs as a blocking process, which is not what I want.
Is there something I'm missing or is this simply not possible in CS3 JavaScript? A search on "timer" in the InDesign forums didn't reveal anything, nor did the InDesign JavaScript Guide nor the Scripting Tools Guide.
Thanks,
Eliot1. Download and install Active Page Item Developer Toolkit.
http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
You'll have a demo period for 20 days or a month, I don't remember exactly.
2. Create a new document, open 'Active Page Item Developer' panel (Windows menu).
3. Copy the script from my previous post, draw an object - e.g. a rectangle and with the object selected enter 'idle' into Event Filter field, then press Tab and paste the script into the largest field.
You'll see an alert appearing every 10 seconds and the cursor flickering. -
How to Create Roaming Profile(s) For Windows Workgroups
This Tutorial Shows how to create roaming profile(s) for Windows Workgroups.
Here are the steps in order to do this:
On the host PC:
1. Goto 'Folder Options'>'View' and un-tick 'Use Simple File Sharing'.
2. Goto Network Connections and right click on the 'Local Area Connection' (Ethernet recommended)
3. Goto Properties>General, and tick 'File and Printer Sharing'.
Click Apply + Ok.
4. Goto Control Panel>User Accounts, add a new user.
5. Logon to this user, and open the profile folder properties.
5b. Share this folder.
6. Make the Share permissions so that 'everyone' has: Full Control, Read, Change.
Click Apply + Ok.
7. Click on 'Caching' and disable Caching for this Share.
Click Ok.
8. Now goto the 'Security' tab and give 'Administrator' and 'SYSTEM' 'Full Control'.
Click Apply + Ok.
On the remote PC(s):
1. Make the same User as on the Host.
1b.Logon to the account and log back out again. Delete the profile folder from 'Documents and Settings'.
3. Give 'SYSTEM': 'Read','Read and Execute','List Folder Contents' to the 'Administrators' Profile
4. Type 'lusrmgr.msc' into run, goto: 'Users', double click on the new user and goto the 'Profile' tab.
4b. In the 'Profile Path' box, type \\hostPCname\ProfileName.
Click Apply + Ok
*Note* Replace the \\path\ accordingly to what names are on your Host PC.
5. Goto regedit>HKLM\Software\Microsoft\Windows NT\CurrentVersion. Double click
on 'ProfileList'.
Find which key is for the new user. (Example S-1-5-21-58435627-18431725-18026167-1003)
6. Right click that key and goto: 'Permissions' and give 'SYSTEM' 'read'.
*Note* Once you logon to the roaming profile from the remote PC for the first time you can undo this step.
7. goto GPEdit>Computer Configuration/Administrative Templates/System/User Profiles:
Enable these settings:
'Do not check for user ownership of roaming profile folders'
'Delete cached copies of roaming profiles'
'Log users off when roaming profile fails'
"Add the Administrators security group to roaming profiles'
'Prevent roaming profile changes from propagating to the server'
7b. Make 'Timeout for dialog boxes' '1' (seconds)
8. goto: Computer Configuration/Security Settings/Local Policies/Security Options:
Make 'Number of previous logons to cache (if server is unavailable) '0'
Now you're ready to login to the Profile on the remote PC.
*Note* Sometimes, when windows loads it takes a minute for the profile folder to become shared again.
Thanks for reading.Hi,
I have replied to the below thread mentioning the FM's to create Profile sets, profiles and also target groups. This may be helpful to you.
Re: target group creation
Regards,
Priyanka -
How to create a RFC destination for extracting data to HANA
Hello All,
Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .Hi Venkatesh,
In SM59 t.code we create RFC destinations.
Go thru the video link for creating RFC destinations step by step
How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube -
How To Create On Submit Button For Master_detail Page ?
I have adf page that is master And detail view.
i want to have one submit button for master and detail blockDuplicate of How To Create On Submit Button For Master_detail Page ?
Please don'r post your question multiple times.
Timo -
How to create an apple id for your child
how to create an apple id for your child
You can create an id without accredit card that might be what you want. Ten use that ID for your child's iMessage and iCloud and use your ID for iTunes and App Store on both phones. That way you can control what is purchased. I would set up restrictions on the kid's phone with a pun that you only know and durn off in app purchases
-
How to create a new Condition for tax as VAT ( 4 % ) in SAP ? .
Dear All ,
Pl guide that " How to create a new Condition for tax as VAT ( 4 % ) in SAP ? . What are all necessary requirements to do so , I need to have all steps so that i should feel very confident . For example what data is to be ticked in Control tab during cond. creation , in the same way how to put this cond. in Pricing procedure ? pl write all necessary thing which are required during this process .
Thanx & deep regrads to all in adv.
sap11In tax we can configure taxprocedure two types i.e., taxinn and tainj. If you adopt taxinn procedure if it is other than VAT condition first you have to create the condition type and then you have to go to FTXP and assign the tax required VAT percentage to the repective % to ded or non ded VAT condion type. In second step you have to assign this tax code to respective company code.
If you adopt taxinj procedure you have to a create tax code with FTXP T-code by assigning the values to the respective and save conditions.
Regards,
Bhuvan -
How to create a pop up window while creation of the delivery note.
Hello Experts
How to create a pop up window while creation of the delivery note.
As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
For e.g.
Str. Loc Qty UOM
DE01 100 KG
DE99 50 KGDear all,
i m having two document numbers for invoic of same types such as output type print program and smartform.
biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
Directly the cursor comes to initial stage of vf03.
suggest what to do
Thanks and regarnds
ravi -
How to create a password file for executing psadmin command to deploy portl
how to create a password file for executing psadmin command to deploy portlet
What you have done is perfectly right. The password file doesn't have anything else apart from the password
for example in your case
$echo password > /tmp/password.txt
However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
The solution was,
manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
HTH -
How to create user defined metrics for SQL Server target?
The customer is not able to create a user defined metrics for SQL Server target.
This is very important for him to use this product.
He is asking how to create user defined metrics?
I sent him Note 304952.1 How to Create a User-Defined SQL Metric in EM 10g Grid Control
But it would work for an Oracle DB, but his target is SQL Server DB
Not able to find the "User-Defined Metrics" link from Database home page.
How to create user defined metrics for SQL Server target?http://download-uk.oracle.com/docs/cd/B14099_19/manage.1012/b16241/Monitoring.htm
-
How to create a Time Dimension
Hi
This is regarding a new topic which i could not find the answer in this forum.
Actually i want to create a time dimension to populate my source data which is in date/time format.
can anyone please reply back reagrding how to create a time dimension in ODI???
regards
GourisankarHi Gourisankar,
I am not aware of time dimension. But when i searched in metalink i got the below note. I am not sure whether it will help you or not but still a small contribution. :)
The note as follows,
To create new time dimensions, run the following SQL instructions :
* Example to generate a calendar between 1999-01-01 and 2007-12-31 one row per day
SELECT to_date('1999-01-01','YYYY-MM-DD')+rownum
FROM DUAL
CONNECT BY
ROWNUM<=to_date('2007-12-31','YYYY-MM-DD')-to_date('1999-01-01','YYYY- MM-DD');
* Example for generating a calendar random number
SELECT DBMS_RANDOM.VALUE
FROM DUAL
CONNECT BY ROWNUM<=1000000;
May be you can create a VIEW out of this query ,reverse it and use that as a source in your interface.
Try this and let me know.
Thanks,
G
Edited by: Gurusank on Dec 22, 2008 4:19 PM
Maybe you are looking for
-
IMac Heartbreak: Fear & Worry For My Family
This is a post I wrote in my blog tonight. I don't know where else to turn. Maybe if I post this here, someone @ Apple will read it and maybe something can turn around. POST BEGINS HERE --------- I must start at the beginning, for those of you who ha
-
Interactive Maps on mobile devices
We have a client who has needs a plotted map which has to be interactive (data points with drill down). The client needs this functionality on desktop as well as mobile devices (iphone, ipad, android, blackberry) I have done a poc for the desktop wit
-
Design Studio 1.3 Collecting Garbage Problem
We have recently downloaded Design Studio 1.3 after uninstalling previous version and restarted. We continue to get a message box from Design Studio Problem Occurred 'Collecting garbage' has encountered a problem. And an internal error occurred dur
-
Hi, I have a trouble with my icloud account, I can´t sign in
I can´t sign in to my icloud´s account
-
This software requires Mac OS X version 10.6.8 or later.
I can not back up my new iphone 5 to y itunes because my apple computor won't let me upgrade my itunes. After I try to download the latest itunes, it tells me "This software requires Mac OS X version 10.6.8 or later" I don't know how to get it to dow