How to keep that valve open for certain period of time and shut off automatically
Hi everyone,
The objective of the VI is to measure pH and then open acid or base valve based on pH valve. Below is my UNFINISHED VI
My question is: if, for example, the pH is 10, then, the program will open acidic valve for 5 seconds and then shut off automatically. After that, wait for 5 second. this process will go on and on as I use while loop, but I just dont know how to control the valve on for 5sec and off and then wait for 5sec.
Anyone can help me out? Thank you very much
In the picture, please enter those values before running
P.S The VI is based on previously posted vi by someone who made it 1 yrs ago.
Attachments:
project_trial_1_26.vi 27 KB
Capture.JPG 79 KB
1. The reason the valves close immediately is that the Elapsed Time VI does not cause any wait, it only measures the time. So the valves closed within a small fraction of a second of the time they opened.
2. I modified your VI to wait until the Elapsed Time has ended. See the "wait" state. I probably modified some of your other functionality in the process, but this shows one way you could do the timing.
3. You do not need any Value property nodes. They should never be used if the value can be wired directly.
4. You do not need any sequence structures. Dataflow will determine the order of things occurring.
5. If you use an enum for the state machine (and it is a good way to name and select states), you should make it a type def. Then when you need to change it as I did to add several states, you only need to change the Type Def in one place and the changes propagate through to every place you used the control or constants derived from it.
6. I added a Halt state which will close both valves before stopping the program. When you are controlling a real world process, it is important to consider the start up and shutdown requirements. For example the digital outputs of the USB-6008 default to inputs when the device is first powered up. And, the inputs are pulled high by a 4700 ohm resistor (at least I think I recall that value). Will this open your valves before the program starts running and sets the I/O lines to outputs and forces them low?
The USB-6008 has rather limited drive on the digital lines. You will probably need a buffer between it and the valve coils.
PID and PWM are more complicated than I want to get into here. First, are your valves proportional or on/off? Second, (assuming that they are on/off) how fast can you open and close them without destroying them in the first week? What is their expected lifetime in terms of the number of operations? How fast do you need to be able to change them to keep your pH where you want it? Are these values compatible?
Lynn
Attachments:
pH State.ctl 12 KB
project_trial_1_28.2.vi 66 KB
Similar Messages
-
How to keep the field open for input with error message in report program
Hi,
Need a help in solving the below issue.
"How to keep the field open for input with error message in report program"
Regards,
C.Shasiraj.Hi...
you have to use the event:
<b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
u have to give an error message in this event.
Consider the following <b>Example:</b>
<b>PARAMETERS : NUMBER TYPE I.
AT SELECTION-SCREEN ON NUMBER.
IF NUMBER = 10.
MESSAGE 'Number vakue is 10' TYPE 'E'.
ENDIF.
START-OF-SELECTION.
WRITE NUMBER.
</b>
in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
Execute this program once u will understand....
also Consider the following links :
<b>Regarding events:</b>
http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
<b>Regarding messages:</b>
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
This is very useful.......
Reward points if useful....
Suresh.... -
My wifi button is frezon and I tried turning my phone off for a period of time and reset my phone but the button is still frezon it want slide over to turn on my wifi. Is there any other way to fix without going to apple to get it fixed?
Hey Posada143, You can still try the rice thing, but do not expect much, as roaminggnome has stated. The rice only works if you do it ASAP and leave the iPod off-- do not attempt use, turn on or charge until it is completely dried out. This is probably academic at this point but remember this for the next time: The drying can take 10 days. You put the uncooked rice and iPod in a sealed bag, change the rice every couple of days. This creates a low humidity environment and draws the moisture out of the iPod, but it takes time. Turn your iPod on to earlier, and you run the risk of shorting out, damaging the components inside. Even if done correctly it can spotty. If you do get the iPod to work (and this may require Resetting, Restoring or attempting to place it in DFU recover mode) the first thing you do is make backups, because you never know how long it will continue to work. As for your pictures, if you can't get your iPod to work, you can try data retrieval companies, however; there is no guaranty it will work and it tends to be very expensive. In the future get in the habit of as making backups, because you just don't know. And invest in and use a water tight case. Hope this helps, Good luck. Cheers.
-
I frequently use the singles pages on wikipedia, for example: http://en.wikipedia.org/w/index.php?title=Category:2012_singles&from=D
So I had already clicked on the links some months ago on the 2012 singles pages, but firefox forgot that I had clicked on the links there. How can I make it so it remembers for longer periods of time without causing problems to firefox? Also, I want it to remember what links I've clicked on the 2013 singles pages, because I am also keeping up with that. Can I tell firefox to remember all history for these pages, such as 2012 singles, or 2013 singles specifically? I just want firefox to remember what links I've visited, as in, the songs in the 2012/2013 singles pages, and not forget those, because I have already downloaded those so I want firefox to keep track. What are my options? Please let me know, and I hope you understand the problem I am describing.My Firefox remembers history from over a year ago, and unless you are using a setting or external tool to clear it, or load huge numbers of pages/download huge numbers of files, Firefox should pretty easily remember links you've accessed in recent months.
To see what Firefox has computed as the number of URLs to remember, you can check here:
(1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
(2) In the filter box, type or paste '''.hist''' and pause while the list is filtered
(3) Look for '''places.history.expiration.transient_current_max_pages'''
Mine's set to 104858. I don't know how that was determined. -
I have Windows Vista with Firefox. When on-line for a period of time Firefox crashes and tells me plugin container for Firefox has stopped working.
See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
-
Some songs I purchased last night are not playing all the way through. Several songs from the 4 albums I purchased play for a period of time then just skip to the next song. The songs that do this, do it everytime they are played at the exact same spot. The songs that are affected skip to the next on iTunes on my PC which is updated to the most current iTunes and my 160gb iPod classic. Everytime they are played at the exact same spot. However on my other device, iPhone 4s all songs play just fine. I have almost 7,000 songs on my iPod and this has never happened before and I have played it awhile since downloading those albums yesterday. This is only happening with the albums purchased yesterday. Can anyone help me figure out what is wrong?
I'm having the same issue with a few songs I just downloaded. It skips randomly in the middle of the song.
-
Holding readings for certain period of time
LabVIEW beginner here. I'm logging particle count data generated every second from two identical instruments, one upstream of a substrate and the other downstream; they are labelled alpha and beta respectively in the attached VI. The counts plus penetration (beta/alpha) are written to measurement file once a second accordingly. This works fine so far but I need to correct for the aerosol transit time (=10 seconds) between the two instruments, so that the alpha reading at t=0 is paired with the beta reading at t=10s. How do I hold/delay the alpha reading for this time?
Attachments:
sdp34_log_penetration_data.vi 169 KBOk attached a slight upgrade with a 10 element circular buffer. This presumes that your meas. data is being taken once a sec, and that is fine. There is a case statement that tells you when you have valid data after 10 iterations. There are other ways of doing this. So depends on what you are doing. I have also implemented the recommendation on the error clusters AND got rid of some of the Cohersion. I have upgraded my 8.2 version to 8.2.1, so I saved as version 8. Hopefully it still opens and works.
Paul <--Always Learning!!!
sense and simplicity.
Browse my sample VIs?
Attachments:
sdp34_log_penetration_data.vi 181 KB -
Blocking message notification for certain period of time
Hi,
We have a situation that requires that we do not process any messages even though they are messages sitting in the queue during certain period. Is there any programming API (I guess JMX based) where in weblogic JMS server can be notified to not to send messages until the block is lifted.
We are using weblogic 8.1 JMS implementation.
Thanks
SushilI have not done this blocking programmatically.
But blocking is configurable on the console at JMS Connection Factories -> Flow Control tab -> Send timeout. This blocking policy is configurable on the console at JMS Server -> Thresholds & Quotas tab -> Blocking Send Policy. Default value is 10ms. Change it to required time limit. -
How to make a loop run for specific period of time ?
hello !
i'm new to labview and could'nt found how to make a loop run for 2 sec for example, and then to exit.
Solved!
Go to Solution.Hi Hookso,
You can do it using the different loops like While loop and For Loop. Roderic has already stated how to do it using a for loop. I have illustrated in the attached vi how to do it using a while loop and Elapsed Time function. Take a look.
Regards,
Nitzz
(Give kudos to good Answers and Mark it as a Solution if your problem is Solved)
Attachments:
Untitled 2.vi 36 KB -
is there a way i can submit my crash report here so someone could look at it and let me know what's causing the issue
Mon Jan 7 10:46:09 2013
panic(cpu 1 caller 0xffffff8016cb7b95): Kernel trap at 0xffffff8016c43c71, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffbf802ba06d38, CR3: 0x00000000396ac000, CR4: 0x0000000000000660
RAX: 0x0000000000000000, RBX: 0x0000000000000000, RCX: 0x0000000009000000, RDX: 0xffffff8019f70260
RSP: 0xffffff80fe9b38c0, RBP: 0xffffff80fe9b38f0, RSI: 0xffffff80fe9b3998, RDI: 0xffffff8019f70250
R8: 0x0000000000001000, R9: 0x0000000000000000, R10: 0xffffff802b8b2894, R11: 0xffffff7f983e2c32
R12: 0xffffbf802ba06d30, R13: 0xffffff8019f70250, R14: 0xffffff80fe9b3998, R15: 0x000000000000d000
RFL: 0x0000000000010286, RIP: 0xffffff8016c43c71, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0xffffbf802ba06d38, Error code: 0x0000000000000000, Fault CPU: 0x1
Backtrace (CPU 1), Frame : Return Address
0xffffff80fe9b3560 : 0xffffff8016c1d5f6
0xffffff80fe9b35d0 : 0xffffff8016cb7b95
0xffffff80fe9b37a0 : 0xffffff8016cce4ad
0xffffff80fe9b37c0 : 0xffffff8016c43c71
0xffffff80fe9b38f0 : 0xffffff8016c435a2
0xffffff80fe9b39d0 : 0xffffff8016c245bd
0xffffff80fe9b3a00 : 0xffffff8017022a92
0xffffff80fe9b3a20 : 0xffffff801704a488
0xffffff80fe9b3a90 : 0xffffff801704a91d
0xffffff80fe9b3ad0 : 0xffffff7f983bf32b
0xffffff80fe9b3b50 : 0xffffff7f983e2d00
0xffffff80fe9b3ba0 : 0xffffff8017065313
0xffffff80fe9b3bc0 : 0xffffff8017065eed
0xffffff80fe9b3c20 : 0xffffff80170638ef
0xffffff80fe9b3d70 : 0xffffff8016c981a1
0xffffff80fe9b3e80 : 0xffffff8016c20abd
0xffffff80fe9b3eb0 : 0xffffff8016c10448
0xffffff80fe9b3f00 : 0xffffff8016c195fb
0xffffff80fe9b3f70 : 0xffffff8016ca5ad6
0xffffff80fe9b3fb0 : 0xffffff8016cced13
Kernel Extensions in backtrace:
com.apple.GeForce(8.0)[91C40470-82BA-329A-A9D7-4C70F28275FD]@0xffffff7f9839f000 ->0xffffff7f98461fff
dependency: com.apple.NVDAResman(8.0.0)[6A699209-FB98-316B-A3C0-DCA82AA8C86B]@0xffffff7f973 47000
dependency: com.apple.iokit.IONDRVSupport(2.3.4)[E37F420A-B5CD-38ED-9441-5247583B6ACE]@0xff ffff7f97333000
dependency: com.apple.iokit.IOPCIFamily(2.7)[8C9E06A4-13D0-33F5-A377-9E36F0ECC229]@0xffffff 7f972ac000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[5D671681-D21B-3CCA-9810-B15E648C1B27]@0 xffffff7f972f0000
BSD process name corresponding to current thread: WebProcess
Mac OS version:
12A269
Kernel version:
Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64
Kernel UUID: 8D5F8EF3-9D12-384B-8070-EF2A49C45D24
Kernel slide: 0x0000000016a00000
Kernel text base: 0xffffff8016c00000
System model name: MacBookPro5,5 (Mac-F2268AC8)
System uptime in nanoseconds: 313602632952
last loaded kext at 175849006273: com.apple.filesystems.smbfs 1.8 (addr 0xffffff7f97216000, size 229376)
last unloaded kext at 176246764692: com.apple.driver.AppleFileSystemDriver 3.0.1 (addr 0xffffff7f98d75000, size 8192)
loaded kexts:
com.apple.filesystems.smbfs 1.8
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AudioAUUC 1.60
com.apple.driver.AGPM 100.12.69
com.apple.filesystems.autofs 3.0
com.apple.iokit.IOBluetoothSerialManager 4.0.9f8
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AppleHDA 2.3.0f2
com.apple.driver.AppleMikeyDriver 2.3.0f2
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.0.9f8
com.apple.driver.AppleSMCLMU 2.0.2d0
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.ApplePolicyControl 3.2.6
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.driver.AppleBacklight 170.2.3
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.driver.AppleLPC 1.6.0
com.apple.GeForce 8.0.0
com.apple.driver.SMCMotionSensor 3.0.2d6
com.apple.driver.AppleUSBTCButtons 235.4
com.apple.driver.AppleUSBTCKeyboard 235.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 34
com.apple.driver.AppleIRController 320.15
com.apple.driver.AppleUSBCardReader 3.1.0
com.apple.iokit.SCSITaskUserClient 3.5.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.2.0
com.apple.driver.AirPort.Brcm4331 600.15.20
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleUSBHub 5.1.6
com.apple.driver.AppleFWOHCI 4.9.5
com.apple.driver.AppleAHCIPort 2.4.0
com.apple.nvenet 2.0.19
com.apple.driver.AppleUSBEHCI 5.1.5
com.apple.driver.AppleUSBOHCI 5.1.5
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleACPIButtons 1.6
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.6
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
com.apple.nke.applicationfirewall 4.0.39
com.apple.security.quarantine 2
com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
com.apple.kext.triggers 1.0
com.apple.iokit.IOSerialFamily 10.0.6
com.apple.driver.DspFuncLib 2.3.0f2
com.apple.iokit.IOAudioFamily 1.8.9fc9
com.apple.kext.OSvKernDSPLib 1.6
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.0.9f8
com.apple.driver.AppleHDAController 2.3.0f2
com.apple.iokit.IOHDAFamily 2.3.0f2
com.apple.iokit.IOSurface 86.0.2
com.apple.iokit.IOBluetoothFamily 4.0.9f8
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.AppleGraphicsControl 3.2.6
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.IOPlatformPluginFamily 5.2.0d16
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.nvidia.nv50hal 8.0.0
com.apple.NVDAResman 8.0.0
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.driver.AppleSMC 3.1.3d11
com.apple.driver.AppleUSBMultitouch 235.7
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.iokit.IOSCSIBlockCommandsDevice 3.5.1
com.apple.iokit.IOUSBMassStorageClass 3.5.0
com.apple.driver.AppleUSBMergeNub 5.1.5
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.5.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.1
com.apple.iokit.IO80211Family 500.15
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOAHCIFamily 2.2.0
com.apple.iokit.IONetworkingFamily 3.0
com.apple.driver.NVSMU 2.2.9
com.apple.iokit.IOUSBFamily 5.1.6
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.8.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 220
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 344
com.apple.iokit.IOStorageFamily 1.8
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.6
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0 -
How do I stop an event over a period of time and then restart it?
I am at school...
I am really lazy and I have put my school timetable (so that I don't have to look at my planner every time) onto my iPod touch and Macbook Pro. I want to know how to stop and restart the timetable over the holidays.
week 1
week 2
week 1
week 1
week 2
week 1
week 2
week off for holidays
week 1
week 2
week 1
week 2
e.t.c
is there a way to stop the weeks for the break/holidays so that I don't have to rewrite my entire timetable.
PLEASE HELP... it would be greatly appreciated
(p.s. I apologise if there are any grammar/spelling mistakes, but I am in a hurry t)sorry not
week 1
week 2
week 1
week 1
week 2
week 1
week 2
week off for holidays
week 1
week 2
week 1
week 2
e.t.c
[week 1
week 2
week 1
week 2
week 1
week 2
week 1
week 2
week off for Holidays
week 1
week 2
week 1
week 2
e.t.c ] is what I really meant -
It especially happens when I am in the Walden University website.
Hello & welcome, let's see if we can help out here!
See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
http://support.apple.com/kb/PH7029
Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
Open Console in Utilities & see if there are any clues or repeating messages when this happens.
In the Memory tab of Activity Monitor, are there a lot of Pageouts? -
using Mac OS X 10.6.7. 3.06 ghz intel core 2 duo, 4 gigs ddr3 ram. Firefox 5.0.
All crash report signatures say js::RegExp::execute. All these crashes have been spread from today to the 27th of June.
There seems to be no consistency as to what websites it crashes on. Sometimes it crashes with several tabs up, sometimes only one. Sometimes on tumblr or twitter, sometimes on livejournal, sometimes elsewhere.using Mac OS X 10.6.7. 3.06 ghz intel core 2 duo, 4 gigs ddr3 ram. Firefox 5.0.
All crash report signatures say js::RegExp::execute. All these crashes have been spread from today to the 27th of June.
There seems to be no consistency as to what websites it crashes on. Sometimes it crashes with several tabs up, sometimes only one. Sometimes on tumblr or twitter, sometimes on livejournal, sometimes elsewhere. -
My Ipad wont retrieve my new emails and if I try to check passwords in Settings, the settings window only stays open open for a second or two and the automatically closes. Any help on how to fix. I tried the turn off and on trick and that didn't work either. Thanks for any help.
Try reset iPad
Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
Note: Data will not be affected. -
With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
How to correct that
Thanks in advance for any hint you can provide.I've had the same problem. This solved it...
Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
Hope it works for you to...
Maybe you are looking for
-
hi, I have written an ABAP report using ALV . We need to add a button to the menu bar of the screen that appears after the report is run, not on the selection screen. And when report is executed user will choose for example STOCK then it has to go to
-
I have a suspicion that someone has added my phone number into their imessage and can read all my texts with no notification sent to my phone. Is it possible to add a phone number to your imessage without that device getting a notification?
-
Authorisation in Business Objects Explorer Infospaces created on BEx query
Hello, We have installed Business Objects Explorer, created Universe on BEx query and created a Explorer Infospace on that universe. everything works fine but the authorisations created for the user in BEx query are not taken into consideration when
-
Hi, I have created a custom field in SharePoint 2010. I have a xsl file which does the Xslt rendering for item display in list view. I need to add some C# code to the xslt code. So i included code as below: 1) xml:user="urn::my-scripts" in the xsl:st
-
Select from a queue table with SYS.AQ$_JMS_MAP_MESSAGE type
We are using the SYS.AQ$_JMS_MAP_MESSAGE type for our queue so that we can access the queue using plsql as well as java (via jms). The queue table that gets created contains a column user_data that is of the above type. This type has two columns BYTE