How to set a boolean variable to be true each x amount of time
hello,
Any ideas of how to create a boolean variable in labview which will be true only let's say each 2 seconds ? the rest of the time it should be false
Regards
Charis
Solved!
Go to Solution.
Charis,
what is the context of such a "variable"?
The question is very important as it is a common mistake to have "variables" in dataflow programming languages like LabVIEW.
That being said, you have to implement a loop with proper timing to toggle the boolean value. You have to look for good propagation methods to make this value available in other parts of your software.
If the software is a single loop, the implementation is easy. It requires a shift register and a state machine (which includes other states as well performing the actual task of the program).
If the software is more complex, propagation from your "toggle loop" can be done by an Action Engine or a notifier.
Also, you have to define how long the boolean should be true as you only stated how long it should be false (2 seconds)....
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Similar Messages
-
How to set the header variables in weblogic
Hi,
We have a following set up in our environment.
We have weblogic and on the top of it we have apex listener deployed which redirects Oracle Apex.
My Issue:
How can we set up the header variables in weblogic once the user is authenticated against weblogic server.
We are struck here, not knowing how to set the header variables in weblogic server. Its fairly straight forward for Oracle Access Manager or others..
Thanks
Ramesh P.maybe you are looking for the routing options
http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1125348 -
How to set the path variable on Windows ME?
I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.
Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.
-
Hi,
I would like to know how to set a session variable for the following purpose.
At the top of my application I have a "Welcome <username>" I'd like it instead to have "Welcome <firstname> <lastname>".
So the concept would be after the user logs in succesfully this session variable is dynamically set so it can be displayed.Hi Scott,
I realize that I can set items etc in pages. The case I'm referring to is a reference in a template. My template has a "Welcome <user name>" ... so the code looks like "Welcome &APP_USER." Anyway to make it say "Welcome first_name last_name" in the template? Note I'll have to get the first/last names from a query
Thanks,
Marty -
How to set ORACLE_HOME environment variables in win 2003
Can anyone tell me how to set ORACLE_HOME environment variables in Win2003
Please tell me the significance of that also.It will be really helpful if u can help me out from Path variable seting of JAVA SDK also... Thanks in advance...hi
use this code IN FORMS60 variable in Regedit
\\server\DATA\store\Forms;
Rizwan -
How to set the Environment Variable
I'm going through a tutorial on how to create an application and run from the command prompt. I have finished installing my jdk 6 Upadate 5 but i don't know how to set the Environment Variable for the javac compiler and the java interpreter to find my program.
I have created an application called "ExampleProgram" and have saved it on drive C:. How do i set the Environment Variable so that the "javac" compiler and the "java" interpreter can find itgyesa_say wrote:
I'm using Windows XP Service Pack 2.A very bad choice to go with Windows. Personally I prefer Linux.
I Google and had several information on how set it, but i tried all of them and none seem to work.I typed "how to set environmental variable in winxp" in Google and the very first link provided all the information I needed (you need). These things will make much more sense if you go through it yourself rather than having someone else spoon-fed you the answer. -
How to set the gain and input coupling for each channel on a NI 4462 DaQ card?
I've seen a few examples in how to set the gain for NI 4462, but none tell me how to chose the channel I wish to set this gain. Also the same problem with input coupling
Does anyone know how to set the gain and input coupling for each individual channel?
Thanks,
Hector
LabView 8.5 Windows XPHey Hector,
http://forums.ni.com/ni/board/message?board.id=100&thread.id=1688
This has a few examples of how to do that. Let me know if you have further questions.
Have fun!
-gaving -
How to set a bind variable across the pages in a report
I want to create a portal report where data will come from a table for a date range for a week.
For e.g select event_date,last_name, event_name
from RESOURCES
where event_date between trunc(to_date(:curr_date,'DD-MON-RRRR'))
and trunc(to_date(:curr_date,'DD-MON-RRRR')+ 7)
The :curr_date is defined as a bind variable whose default value is sysdate.
Now, when we run the report for the first time, it takes the :curr_date as
sysdate and prints the report.
I have two buttons in the report output like "previous week" and "next week".
If someone presses previous week, the same report should run with curr_date
as sysdate-7 and if someone presses next week, the report should run with
curr_date as sysdate +7 and also the :curr_date sets to sysdate - 7 or sysdate + 7
depending on the button pressed.
Problem:
How do I set the value of curr_date if someone presses any of
previous week/next week.
nullBest to state your JDev version, and technology stack (eg. ADF BC) when posting.
I can think of 2 approaches.
1) Create a parent VO based on SELECT :bindVar FROM dual, then create links between your other VOs and the parent
2) Create a AM client interface method that programatically sets the bind variable in each VO.
Can you specify your use case? This one tends to come up when discussing effective from/to dated queries.
CM. -
How to set a bind variable into a vo query from the current vo ?
I would like to exclude from my list of values defined in a view object the already referenced items in the current view object content.
Let's say i have dept and emp with a many to many relationships, I would like that the already existing dept for emp not listed (excluded) in the list of values for emp.
Do i need to define a bind parameters and set it during search or is it possible to use an expression that will refer the current row attribute representing the dept ?
I didn't find an example or explanation how to set bind parameters defined in a view object query from seach pages or list of values ui components. May be somebody know how to find the info.
Thank youI think that bind variable accessors in the VO class is what you need. You can override the getter method of the bind variable "LocaleCode2" in order to return the first 2 chars from the bind variable "LocaleCode". Have a look at this blog post for details:
http://jdeveloperandadf.blogspot.com/2011/03/custom-java-bind-variable-in-where.html
Dimitar -
Hi all,
we have oracle EBS 12.1.1 installed on suse linux servers in our setup. one developer is using dev tools to have some graphs displayed while generating reports. all of a sudden we find that the graphs are not getting generated.
i am told that it is because of the DISPLAY variable in Linux. I am working as a Linux admin and I am not too sure how to set it.
i went to the company's data center to get to the console of the Linux box. I logged into the GUI and ran these commands
linux-43x3:~ # echo $DISPLAY
:0.0
linux-43x3:~ # export DISPLAY=:0.0
linux-43x3:~ # xhost +
access control disabled, clients can connect from any hostsince the display was showing :0.0, there sud not v been any issue in my opinion, but still i chose to run the export DISPLAY command.
still i find the graphs do not show up. should I run the command as root or should I run it as an apps user? and further if I log out of the GUI will the graphs still work?
i dont have much experience with oracle apps. please excuse me if this question is too sillyHi,
>but still i chose to run the export DISPLAY command.
No problem if you set DISPLAY:0.0 AGAIN
should I run the command as root or should I run it as an apps userRun as both users.
should I run the command as root or should I run it as an apps userIt'll work, Unless you reboot the whole machine.
Regards
Taher -
How to Set up the variables and others to compile and Run Java Programs
Hello,
I have just downloaded the jdk1.6.0_07 and jre1.6.0_07 and installed it in C:\Program files\Java in my Windows XP ,So please tell me how to sett up the enviroment variables etc to compile and run Java Programs from Command Prompt.
thanksTo set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:
1. Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System on Windows 2000.
2. Click Advanced > Environment Variables.
3. Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:
C:\Program Files\Java\jdk1.6.0_<version>\bin -
How to Set multiple Global Variables without using Controls or Indicators
I have to set many Global Variables (i.e. declare and initialize them) in a subVI in order to pass them to various other subVI's. The only way I know how to do it in LabView is to create a Globals.vi on which you create a control or indicator for EACH Global Variable. That's fine if you have only a few variables. But I have close to a hundred Global Variables (which come from a configuration file for a large program) and clearly it is impractical and cumbersome to create a control for each global variable. In Agilent Vee, there is a simple function called "Set Variable" that sets the data value of a global variable. Then in other module, you simply use the "Get Variable" function to get back the v
ariable and its value.
In LabView you can use the "Invoke Node / Set Control Value" and "Get Control Value" properties to achieve the same thing. But as mentioned above, you need to create a control for each global variable and that is a big pain in my case, with many global variables. Furthermore, the global variables are read from a Configuration Text File to this VI. Is there a way to do it without using the control? Thank you in advance for any help.Actually you could create the same sort of facility in LV. All you have to do is create a LV2-style global that behaves as follows:
To write a value to it, you supply a value name and the value. These pieces of data are save internally in seperate arrays.
To read a value, you supply a value name. The VI looks up this name in the value name array to return an index into the value array. Output the value you find.
Frankly though, it sounds like what you really need is not hundreds of globals, but a good way to manage configuration data.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
How to set the bind variable on page load and execute query ?
Hi All,
I am using Jdeveloper 11.1.1.5
I have a table called "Employee"
Columns :- id , name , location
Data :- 1, ,james , chicago
2 ,Raj ,capetown
Now i have another webservice(created as a webservice dataControl) which sends me the "id" on each time my page loads.Now the id which has been returned by webservice should be incorporated in my VO Query as in where clause to fetch the data for the respective "id" in that "Employee" table and should be rendered on form.
Eg :- Id "2" has been sent by the webservice then the record should be fetched from database should be "2","raj","capetown".
I know that there would be necessity of bind variable , but how do i set the bind variable on page load ?
How can i use the bind variable appropriately ??
Please suggest !!!!
Thanks.Hi,
Check
http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_services.htm#CJADCDBG
http://thepeninsulasedge.com/frank_nimphius/2011/02/18/adf-code-corner-sample-73-released-hands-on-creating-a-search-form-using-a-pojo-ws-and-the-web-service-data-control/
-Suresh -
How to set a boolean webservice parameter to null
Hi all,
is it possible to set a boolean input parameter of a webservice to null?
False and true works well, but is there also the posibility of setting it to null?
Greetings
FlorianI will try to explain.
Our webservice has a boolean input parameter. And it acts like the follwing pseudo-code:
IF bool_arg == null
action1;
ELSE IF bool_arg==false
action2;
ELSE IF bool_arg==true
action3;
ENDIF;
With the value NULL i mean that the input paramter is not in the SOAP-XML.
But with Visual Composer i only manage to set the value to true or false.
I cannot find a way to set it to null (which means it is not in the SOAP-XML).
Edited by: Florian Kandlinger on May 27, 2008 12:14 PM -
How to set the DISPLAY variable to run admsi.pl?
Dear Experts,
I'm trying to patch Oracle apps R12 using admsi.pl.
hostname: black
APPS db: VIS
But I keep getting the error:
Please set the DISPLAY variable and re-run this script
This is what I did:
VIS database and listener are already running.
login to the linux server as unix user: applmgr
cd /oapps/applmgr/VIS/apps/apps_st/appl/
. APPSVIS_black.env
cd /oapps/applmgr/VIS/apps/apps_st/appl/ad/12.0.0/bin/
admsi.pl
Invoking Oracle Patch Application Assistant....
Please set the DISPLAY variable and re-run this script
huh ?
set | grep -i "display"
DISPLAY=:0.0
set | wc
435 486 25235
I notice that there are 36 .env files!
For applmgr alone!!
find /oapps/applmgr/ -type f -name "*.env" | wc
36 36 2626
For oracle, there are another 7 .env files!
find /oapps/oracle/ -type f -name "*.env" | wc
7 7 513
Did I get the environment (env) file correct?
Or do I need to run a few more env first?
If so, which ones?
What would the order of operations be?
sqldeveloper has given me problems with Display sometimes.
But even sqldeveloper works fine.
What is the secret to get admsi.pl to run in the normal manner?
Thank a lot!Thanks a lot, that worked! So the perl script was wrong.
In the meantime, I had done this, and it seemed to work:
admsi.pl -debug
Gathering Information..
Enter the patch_top : /oappsinstall/update12.1.1/7303030
Enter the APPS user password:
Logfile for this session is located at admsi.log
Generating installation instructions for patch 7303030..
Updating database....
install_7303030.html generated successfully
install_7303030.txt generated successfully
cat /oapps/applmgr/VIS/apps/apps_st/appl/ad/12.0.0/bin/admsi.log
Executing begin :value := ad_manual_step_object.is_step_already_done('per_hrglobal','120.2.12010000.1'); end;
Generating installation instructions for patch 7303030..
Updating database....
install_7303030.html generated successfully
install_7303030.txt generated successfully
Performing final cleanup..
Do you think this worked ok?
Thanks again!
Maybe you are looking for
-
How to send a request from a page to another
Hello, I've started a project an I would like to do the following. I have : -a datasource included in my project -a page customer_list.jsp with a list (and data binding a datasource table) -a page customer_search.jsp with a text field(where i write m
-
Im having problems capturing my video to final cut express. the message says I can not capture project but can use capture now, Does anyone have any ideas?
-
FM for knowing the required qunatity
Hi all , I have a finished good (material number ) with me . It is made up of different semi-finished and raw materials . Suppose i need 1000 quantity , and finished good is not available .... I need to know how much of these semi finished and raw ma
-
Hi, The users do not have local admin rights on their workstations which results into Program File being read-only. When running Forms for the first time Oracle attempts to create JDK directory in Program Files but silently hangs because it's read on
-
How do I add a fixed object on a smooth scrolling article?
I'm looking to create a smooth scrolling article, but I want to have a button stationery at the top of the screen. The content of the rest of the article will scroll behind it. Is this possible?