Timer to generate on/off signal every 20 mins for 10 sec
I need to create a simple timer. It comes on every 20 minutes for 10 seconds, then switches off until another 20 minutes has passed, and so it repeats itself. I want to open a valve with this every 20 mins for 10 secs, then close it. This is to work with a field point device that we have on our shelves.
Here is a simple solution.
Create a while loop, inside the while loop put a sequence in step 1 place a wait vi and set the value to 20 min (remember this input is in ms so 20 min = 1200000) in step two place the code to send the on signal (hardware output I assume) in the third step of the sequence place another wait for 10 seconds (10000 ms) and finally place the off sequence last. This solution is very processor friendly. If you just compair time stamps inside a loop, the loop will be continiously checking the time and your CPU use will max out. You can place an inherent wait in the loop but the responsivness (accuracy of your timming) will be reduced. The wait statment will pause your program until the timer (I believe it is linked to the OS interupt system) expires. This solution allows for multiple threads (loops) to run cuncurrently with little extra overhead. I have used timers to generate alarms in the past where the sequence after the time expiring fires an occurance to drive code in other loops. Hope this helps
-Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Similar Messages
-
I have downloaded and deleted an album 3 times now because on the playback, every 30-60 secs. it jumps to another song on the album. I have never had this problem before. Thanks !
Try deleting and redownloading again, this time with simultaneous downloads disabled.
While downloading select Downloads in the left-hand column and make sure Allow Simultaneous Downloads is unchecked. -
Weblogic Timer Event Generator - How it works?
Hello everyone!
I have wrote simple wli-application, that subscribes to the message broker channel.
I have deployed it to the cluster (managed servers 1 (ms1) and 2(ms2)). (I use Weblogic Server 10.3, cluster contains 1 admin server and 2 managed servers.)
Than I have created the timer event generator (EG) via wliconsole and rule for this EG - to send message to the MB-channel every 30 seconds.
Then I redeploy EG application via console (WLS Admin Console) from managed server 1 to cluster (m.servers 1 and 2) and start it.
Everything started ok - I got messages to both instatnces of my application in the following way:
15:30:00 - to instance on ms1
15:30:30 - to instance on ms2
15:31:00 - to instance on ms1
15:31:30 - to instance on ms2
...and so on
when I shut down ms2 - I started to receive messages to instance of my application on ms1 every 30 secodns. Here Everything is OK.
Then I start ms 2 and got the picture like:
15:30:00 - to instance on ms1
15:30:30 - to instance on ms2
15:31:00 - to instance on ms1
15:31:30 - to instance on ms2
...and so on
Then I shutdown ms1... And that's all - no messages to instance on ms2 :(
I started ms1 and no messages on both instances - on ms1 and ms2..
Can you explain me how Timer Event Generator works? What resources it uses? And how can I setup it to get load-balancing while both instances running and failover - when one of the instances shutdowned?
Thanks in advance,
Vladimir.Hi Vladimir, it seems like we must have different environments. I don't know if you used the latest version of wli or not...
So, not exactly for you, but for someone who happens to read this post, and has the same problems we did...
-- I've configured the cluster address using the IP i've assigned to the servers.
--- it means that it is like: 192.168.70.120:8013,192.168.70.120:8113 - ip's & PORT, yes?
Yes, that's the format we are using (http://download.oracle.com/docs/cd/E13222_01/wls/docs92/cluster/setup.html#wp751583)
-- Configured the FrontEndHost and FrontEndPort with that same values as the AdminServer.
--- and you have the http-proxy deployed on your admin server? 'cause front-end host and port - must be the host and port of http-proxy that performs load-balancing for requests to your processes on your managed servers.
Actually we don't need the HTTP load balance, we only start the process via EG events, so we only benifit from load balancing on the JMS queues, but i had to configure this to be able to start the process. We had errors if we didn't configure this. We used the AdminServer address and port.
-- Relocated the Persistent Stores and JMS Servers since some were incorrectly pointing to the AdminServer.
---I didn't understand about what p.stores you are talking about.. I meant that you must create new JDBC p.store with table in cgDataSource and targeted to migratable target. And than you must create a new jms-server, which hosted to this p.store.
...But I didn't retarget any existing p.stores......
Once the domain was created (didn't do anything but to follow the wizard) we had the persistent stores (and underlying JMS servers) targeted to the AdminServer (obviously incorrect). So we retargeted them to the Managed Server.
-- Created the JSP_<PROCESS> table in the database.
--- and what is this? :)
We had to create a table to persist the wli process state, because it is a statefull process (http://download.oracle.com/docs/cd/E13214_01/wli/docs102/dbtuning/wliTuning.html)
The matter of fact is everything works fine, despite the exceptions i mentioned in the AdminServer, once it gets started... But it seems to have no negative impact on the application, and migration is done successfully
I will continue to work on figuring out what the origin of those exceptions is, and if i manage to find a solution i, most surely, will post it here... One thing i find to be strange is that the exceptions start even before i have anything deployed to the Migratable Target... Once i create it and restart the server i get those messages, and we tried the Concensus configuration with NodeManager, as well as the Database configuration.
I guess that what's really important for us now is that we do have fail over and load balancing working... :D
I don't know if it would be abusive to ask you for that document of yours, maybe it has some clue on what's wrong in our config, but again, i understand if you can't share that =)
By the way, i'm portuguese, but since google made the translator available, i guess i can manage russian documentation as well ;)
I can't tell you how gratefull i am for your help, and for sharing your previous experience with the rest of us. If it wasn't for your altruism i guess i would be stuck with this for much longer... you sure saved my day... BIG BIG thank you..
Once again, thank you and i wish you all the best !!! I just wished i could be helpfull to you sometime =) -
Every time I do anything on the Mac Mini ,I get a spinning rainbow wheel .I have upgraded to Yosemite but it has done this all along .Any ideas ?
Problem description:
overtime I do something I get the spinning rainbow wheel
EtreCheck version: 2.0.11 (98)
Report generated November 23, 2014 at 11:39:50 AM EST
Hardware Information: ℹ️
Mac mini (Mid 2011) (Verified)
Mac mini - model: Macmini5,2
1 2.5 GHz Intel Core i5 CPU: 2-core
16 GB RAM Upgradeable
BANK 0/DIMM0
8 GB DDR3 1333 MHz ok
BANK 1/DIMM0
8 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
AMD Radeon HD 6630M - VRAM: 256 MB
SA300/350/360 spdisplays_1080p
System Software: ℹ️
OS X 10.10.1 (14B25) - Uptime: one day 19:4:8
Disk Information: ℹ️
TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Mac (disk0s2) / [Startup]: 499.25 GB (196.65 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
USB Information: ℹ️
Apple Inc. iPad
Apple Computer, Inc. IR Receiver
Canon MG2200 series
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Library/Application Support/MacKeeper/AntiVirus.app
[not loaded] net.kromtech.kext.AVKauth (2.3.6 - SDK 10.8) Support
[loaded] net.kromtech.kext.Firewall (2.3.6 - SDK 10.8) Support
/System/Library/Extensions
[not loaded] com.microsoft.driver.MicrosoftMouse (8.2) Support
[loaded] uk.co.linn.songcast (4.3.7) Support
/System/Library/Extensions/MicrosoftMouse.kext/Contents/PlugIns
[not loaded] com.microsoft.driver.MicrosoftMouseBluetooth (8.2) Support
[not loaded] com.microsoft.driver.MicrosoftMouseUSB (8.2) Support
Startup Items: ℹ️
comapcpcpestart: Path: /Library/StartupItems/comapcpcpestart
Startup items are obsolete and will not work in future versions of OS X
Launch Agents: ℹ️
[running] com.kodak.BonjourAgent.plist Support
[loaded] com.oracle.java.Java-Updater.plist Support
[failed] uk.co.linn.KazooServer.plist Support
[failed] uk.co.linn.songcast.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.audirvana.Audirvana-Plus.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[loaded] com.oracle.java.JavaUpdateHelper.plist Support
[running] com.zeobit.MacKeeper.AntiVirus.plist Support
[running] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist Support
[running] uk.co.linn.KazooServerDaemon.plist Support
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist Support
[invalid?] com.citrixonline.GoToMeeting.G2MUpdate.plist Support
[invalid?] com.genieo.completer.download.plist Support
[invalid?] com.genieo.completer.update.plist Support
[loaded] com.kodak.KODAK AiO Annual Opt.plist Support
[loaded] com.kodak.KODAK AiO Firmware Updater.plist Support
[loaded] com.kodak.KODAK AiO Software Updater.plist Support
[running] com.microsoft.LaunchAgent.SyncServicesAgent.plist Support
[running] com.zeobit.MacKeeper.Helper.plist Support
[invalid?] jp.co.canon.Inkjet_Extended_Survey_Agent.plist Support
[invalid?] org.the-hardings.ChorusDaemon.plist Support
[invalid?] org.the-hardings.ChorusServer.plist Support
User Login Items: ℹ️
None
Internet Plug-ins: ℹ️
Flip4Mac WMV Plugin: Version: 3.2.0.16 - SDK 10.8 Support
FlashPlayer-10.6: Version: 15.0.0.223 - SDK 10.6 Support
EPPEX Plugin: Version: 10.0 Support
AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
Flash Player: Version: 15.0.0.223 - SDK 10.6 Support
Default Browser: Version: 600 - SDK 10.10
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.4.6 - SDK 10.6 Support
Silverlight: Version: 5.1.30317.0 - SDK 10.6 Support
JavaAppletPlugin: Version: Java 7 Update 71 Check version
User Internet Plug-ins: ℹ️
WebEx64: Version: 1.0 - SDK 10.6 Support
CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 Support
Picasa: Version: 1.0 - SDK 10.4 Support
Unity Web Player: Version: UnityPlayer version 2.6.1f3 Support
StartMeetingPlugin: Version: 1.2.2 - SDK 10.8 Support
3rd Party Preference Panes: ℹ️
Flash Player Support
Flip4Mac WMV Support
Java Support
Linn Songcast Support
Time Machine: ℹ️
Mobile backups: OFF
Auto backup: NO - Auto backup turned off
Volumes being backed up:
Mac: Disk size: 499.25 GB Disk used: 302.60 GB
Destinations:
Seagate Expansion Drive [Local]
Total size: 2.00 TB
Total number of backups: 10
Oldest backup: 2014-09-16 12:59:42 +0000
Last backup: 2014-11-16 15:06:18 +0000
Size of backup disk: Excellent
Backup size 2.00 TB > (Disk size 499.25 GB X 3)
Top Processes by CPU: ℹ️
5% WindowServer
2% sysmond
0% fontd
0% AppleSpell
0% Activity Monitor
Top Processes by Memory: ℹ️
258 MB mds_stores
258 MB AntiVirus
172 MB com.apple.WebKit.WebContent
155 MB softwareupdated
103 MB MacKeeper Helper
Virtual Memory Information: ℹ️
9.51 GB Free RAM
3.85 GB Active RAM
2.26 GB Inactive RAM
1.56 GB Wired RAM
5.00 GB Page-ins
143 KB Page-outs -
My ipad atomatically gets switched off after every 5 mins
From first day only my ipad atomatically gets switched off after every 5 mins and then atomatically gets on after 2-3 mins. is it a hardware problem or some problem in settings? if anybody knows the solution then please let me know....
Is this a brand new iPad2. Did you notice this occurring before you started adding apps? Is this is occurring if you do not have any apps you have started running either active or in the background?
If you have already tried powering off the device, you can try to do a hard reset (Hold down on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears, ignore the red slider, let go of the buttons.) and see how it runs without starting any apps.
I do not have instructions for doing a restore but that is the only other step that I think of that you can take to resolve a software based problem.
If you are still seeing the behavior after trying most or all of the above, I would suggest taking it in or returning it for service. -
I recently upgrade to iOS 7, and since then, my iPhone turns off automatically at the same time every night for about 30. Why does this happen, and what setting can I change to prevent it?
Is Do Not Disturb turned on? Do you see a quarter-moon icon up top in the status bar?
-
why does my screen turn blue and freeze every time i try to plug in my 'mini display to hdmi' cable into my thunderbolt port in order to use an external monitor? it only works if i turn the computer on with it already plugged in.
Do you have gfxCardStatus installed? Is your monitor set to "Integrated" or "Discrete". You want it set to Discrete to drive the external HDMI display.
Try resetting the PRAM and SMC
<About NVRAM and PRAM>
<Intel-based Macs: Resetting the System Management Controller (SMC)>
Are you sure you have a good miniDisplayPort to HDMI cable?
Do you have another HDMI display you can test against (your neighbor's HDMI capable TV).
Do you have friend that can test the cable using their Mac and maybe their TV or a monitor that has HDMI input. -
Is it normal that every time when I switch off my Iphone 5s and then I turn it on again I have to insert my pin code?
That's what I was suspecting they were asking , but wanted to make sure.
-
How can I turn off Keychain from asking for my password EVERY time I check for mail?
how can I turn off Keychain from asking for my password EVERY time I check for mail?
This is really driving me nuts.....
ThanksChoose Apple menu > System Preferences, click Security & Privacy, and then click General.
Open the General pane of Security & Privacy preferences
2. Select “Require password...NEVER after sleep or screen saver begins.” You can adjust the amount of delay before a password is required in the pop-up menu.
From what I am aware, you cannot turn off the keychain.
I hope this helps.
This is also a link that might help http://macs.about.com/od/systempreferences/ss/Mac-Security-Using-The-Mac-Securit y-Preference-Pane_2.htm -
I have had my Samsung Note 2 for over a year. All of sudden for last 3 months it has been popping up the roaming signal every 3 min. Even in my house!!! My statement shows no roaming charge but why does my phone think it's roaming? It is rather annoying because when it shows the roaming signal, it stops everything. How can I fix this?
That's odd, jian10!
I would love to assist you in resolving this device issue. Is this happening at one specific location or everywhere you travel? If it's only happening at one specific location, what is the zip code of this location? Please try removing and reinserting the SIM Card of your device http://vz.to/1otwlNl to ensure the device roaming capabilities are up to date. Keep me posted.
AnthonyTa_VZW
Follow us on Twitter @VZWSupport -
My new iPad keeps forgetting my Internet password every time it is switched off or goes on flight mode. Have tried resetting the network setting as it suggest on the support page. The Internet works fine with my windows PC and my son's iPad 2. Any advice?
Have you tried powering off and then back on your router?
Does it only happen with your router? If so that would tend to indicate a router problem. -
I need an application which turn off WiFi automaticly when my Ipod Toch is locked (for save battery charge)
I hate every time to turn it off manually when I go sleep please help ASAP!!!
If I forget to turn of wifi on my device after my 8hour dream it's battery will be discharged. and ofcourse alert do not ring. pls help urgent!!!
ThanksSuggestion:
Turn off your device before bed. -
Fan is not working.. switching off automatically every 10 mins
fan is not working.. wat to do...my lapi is switing off after every 10 mins
Hi there ,
I would be happy to assist you. As there are many models of HP Notebooks, I would need the model number.
How Do I Find My Model Number or Product Number? This will help me find the specifications for your specific HP Pavilion Notebook and what the part number is for the proper fan. If you need more immediate assistance or would like to speak to someone about a fan replacement, please use the following link to create yourself a case number, then call and it may help speed up the call process:
Step 1. Open link: www.hp.com/contacthp/Step 2. Enter Product number or select to auto detect
Step 3. Scroll down to "Still need help? Complete the form to select your contact options"
Step 4. Scroll down and click on: HP contact options - click on Get phone number
Case number and phone number appear.
They will be happy to assist you immediately.
Thanks. -
Generate AWR Report automatically every day
Hi Friends,
I would like to generate AWR Report automatically every day. How do i do it.
The Start Time will be 00:00 of Previous day and the end Time will be : 00:00 of current day. The File format is html.
Currently i am using awrrpt.sql to generate report manually and i would like to achieve it automatically,I am not sure how to pass the values of start and end time (From which table i can get the values)?
Regards,
DBHi, DB.
You may use the below sql script , the sql script generates the AWR report for the duration of 2 days in HTML.
So you change
1) the where condition as per your requirement,
2) report name in sql script,
3) and convert it as shell or bat script based on your environment, and schedule it in your OS job scheduler / crontab.
=-=-=-=-
connect / as sysdba
REM set termout off
variable snap1 number
variable snap2 number
COLUMN starthr new_value bhr
COLUMN endhr new_value ehr
COLUMN crdate new_value cdt
begin
select
distinct min(s.snap_id)
into :snap1
from dba_hist_snapshot s
where to_char(trunc(end_interval_time,'HH24'),'HH24') = to_char(trunc(sysdate,'HH24'),'HH24')-2 and trunc(end_interval_time)=trunc(sysdate);
select
distinct max(s.snap_id)
into :snap2
from dba_hist_snapshot s
where to_char(trunc(end_interval_time,'HH24'),'HH24') =to_char(trunc(sysdate,'HH24'),'HH24') and trunc(end_interval_time)=trunc(sysdate);
end;
COLUMN starthr new_value bhr
COLUMN endhr new_value ehr
COLUMN crdate new_value cdt
select to_char(trunc(sysdate, 'HH24'),'HH24')-2 starthr,
to_char(trunc(sysdate, 'HH24'),'HH24') endhr,
to_char(trunc(sysdate),'DD-MON-YYYY') crdate
from dual;
define begin_snap=:snap1
define end_snap=:snap2
define report_name=/orashare1/reports/awrreport/AWRRPT_PROD_1_${1^^}_${EXDATE}_mor.html
define report_type = 'html';
@@?/rdbms/admin/awrrpt.sql
exit -
Hello,
I am trying to generate a digital signal which can be controlled in terms time i.e. Switching ON for 10 minis off for 5 minutes. I tried to generate a digital signal which is going high but unable to control it. As I am the beginner in labview any kind of help is appreciated.
Please see the attachment for the developed block diagram
Attachments:
digital signal generation.vi 17 KBIt appears that all you posted is one of the shipping examples. Is that all you've tried? You can't control it because you're not actually doing anything inside the loop. You're simply setting the value high before the loop starts, and not changing it in the loop. What kind of device do you have? Is it software controlled? If so, you will need to keep track of the time inside the loop. You can use the Elapsed Time VI to do this. Attached is a simple example to get you started to see how this can be done. I'm sure you can figure out how to integrate what you did and what I've shown you.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
Attachments:
Switching signal.vi 29 KB
Maybe you are looking for
-
Error Message no. MM214 while creating material master
Hi folks!! While creating material master, when i fill the MRP controller field and press enter, I get the message... The MRP controller 391 does not exist for plant Message no. MM214 I have checked, the MRP controller is availble in Master Data for
-
In Pages for iPad is it possible to insert special characters like those for logic and math?
Hello there, Is there a way to digit special characters in Pages for iPad? I need to include in my document logical symbols. Thank you!
-
What is the little square box in the string constant input?
Hello LabVIEW World - I am attempting to understand a LabVIEW code that I did not write. At one point, there is a string (Equal?) comparison that is comparing a string from a VISA Read to a string constant input. The string constant has a little
-
Extracting language dependent data
Hello, I am trying to extract master data which is language dependent ( not master data--> texts ). My datasource has id, language, field1, field2. My master data infoobject id has field1 and field2 as attributes. I first tried adding language also a
-
Officejet 6000: Network Configuration Page prints over and over
When this printer runs low (NOT out!) of ink, it begins printing the "HP Network Configuration Page" over and over and over. Installing a new cartridge seems to solve the problem, but I'd rather empty the one that's in there before throwing it away i