Getting labview to stop after a certain time.
I'm trying to get labview to stop running after a set time? I have a load cell attached to a NI ELVIS board and once the set load is read by labview it's outputting a voltage thourgh the board but continuesly till the load is removed. I would like to ouptut the voltage to stop after a certain amount of time with the load still on the load cell.
bmira1 wrote:
I would like to ouptut the voltage to stop after a certain amount of time with the load still on the load cell.
Of course stopping LabVIEW (as described in the post title) and stopping an output voltage (as described in the post body) are two completely different things! Blindly stopping LabVIEW will not necessarily reset any active analog output to zero.
Best would be a simple state machine that changes the output to zero after a certain elapsed time. This could for example be done with the timeout case of an event structure or even with the "elapsed time" express VI (or with the code fragments given above after you make sure there is a small wait in the polling loop)
When the experiment starts, write a certain voltage to the output once (You don't need to do that over and over, only when the voltage changes) and, after the time has elapsed, write a zero voltage to the output.
No need to stop LabVIEW. You should actually disable or catch "panel close?" events and other abnormal shutdown attempts, and reset the outputs in an orderly fashion before allowing the program to stop.
LabVIEW Champion . Do more with less code and in less time .
Similar Messages
-
BridgeVIEW Networking stops after a certain time
Hi,
We have a BridgeVIEW v2.1.1 system with several server PC's which are
connected over the network with one client PC.
The server PC's are responsable for the I/O's and the client PC is used for
monitoring the measurements and to control the settings for the process. In
total we have over 4000 tags in the system. A lot of them are network tags.
If we startup the BridgeVIEW engines it all runs fine but after a while the
network communication stops. We had this problem already in the v2.1 of
bridgeVIEW after we installed some bug fixes which we got from NI. After
reinstalling the v2.1 without the bug fixes the network communication was
running OK.
We hoped that the latest version 2.1.1 solved all our probl
ems we have with
it since a long time.
Does any other user of BridgeVIEW have the same experience and is there a
solution?
regards, Dennis Motshagen
INCAA Computers BV
www.incaacomputers.com
tel. +31-55-5425001
fax. +31-55-5429000Hi,
Please apply the following patch to your BV 2.1.1.
ftp://ftp.ni.com/support/bridgeview/BV21%20fixes/BV%20Networking%20Patch/
If the problem persists after applying the patch, please get in touch with
our Support team at: [email protected]
Regards,
Khalid
"Dennis Motshagen" wrote:
>Hi,>>We have a BridgeVIEW v2.1.1 system with several server PC's which are>connected
over the network with one client PC.>The server PC's are responsable for
the I/O's and the client PC is used for>monitoring the measurements and to
control the settings for the process. In>total we have over 4000 tags in
the system. A lot of them are network tags.>If we startup the BridgeVIEW
engines it all runs fine but after a while the>network communica
tion stops.
We had this problem already in the v2.1 of>bridgeVIEW after we installed
some bug fixes which we got from NI. After>reinstalling the v2.1 without
the bug fixes the network communication was>running OK.>>We hoped that the
latest version 2.1.1 solved all our problems we have with>it since a long
time.>>Does any other user of BridgeVIEW have the same experience and is
there a>solution?>>regards, Dennis Motshagen>INCAA Computers BV>www.incaacomputers.com>tel.
+31-55-5425001>fax. +31-55-5429000>>> -
How can I set up a program to stop at a certain time, or after a period of time?
I am using LabVIEW to measure dc voltages over a period of time. The data is exported into an Excel file. I would like to be able to set up the program to stop at a certain time, or after a certain number of hours. This way when I run a test that will start near the end of the week and would stop on say, Saturday, it will not continue to record all the data after that, which I do not need. I would love to be able to set a time for it to end, but I also wouldn't mind having it end, or stop recording data, after a certain voltage has been reached.
Its hard to say without knowing more about how your program is set up. Assuming the data aquisition is in a while loop, you can just wire a bunch of different stop conditions into a compound math node. Then right click on it and select "OR". A caveat about the comparisons I used in my little example: Comparing DBLs can lead to unexpected results when the two values are very close together.
Message Edited by jasonhill on 06-16-2006 10:59 AM
Attachments:
stop the loop.PNG 5 KB -
I can´t delete files in trash . It stops after a short time undone.
What can I do? There are 52 files in trash, but if I click the button "sure empty" it shows 11.313 files to delete .
I would be very greatful for your help!Stronger medicine may be needed, but try this first
Force the Trash to empty using the Option key
This technique uses a hidden feature of Mac OS X to force the Trash to empty. Perform the following steps in the order specified:
Press and hold the mouse button on the Trash icon in the Dock. The context menu for Trash will display.
Press and hold the Option key or the Shift-Option keyboard combination,
Select Empty Trash from the context menu for Trash.
Release the keys pressed and held in step 2.
http://www.thexlab.com/faqs/trash.html#Anchor-Files-46919
You are posting in the iMac PPC forum, but it looks like you have an Intel Mac. Get Trash It if you have an Intel.
http://www.macupdate.com/app/mac/8214/trash-it! -
Do notes disappear after a certain time?
The earliest entry in the Notes app has disappeared. Do they get deleted after a certain time or if I have inadvertantly deleted it can i get it back from icloud somehow?
They never expire - at least from iCloud. I still have some five year old notes.
-
Every time I log into my mac photobooth pops up. How do I get it to stop poping up every time I log on?
Right click (cntl-click) the icon on the dock. Look at options and uncheck Open at Login.
Regards,
Captfred -
How do I get ical to stop popping up every time someone accepts an invitation
How do I get ical to stop popping up every time someone accepts an invitation?
Every time I get an someone accepts and ical invitation, the iCal app pops up over everything on my screen. I cannot find a way to turn off this behavior and it's amazingly disruptive.
I do still want to be notified about up-coming meetings, and I still want invitations emailed to me to populate in my calendar, and I still want ical to capture if people have responded to my events…I just don’t want my calendar to take over my screen every time they do.
There does not seem to be anything in preferences that addresses this.
HELP!This infuriates me too - I am really keen to find an answer to this! The notifications that appear 'Growl-like' in the top right corner are fine, it's the fact that iCal takes over the entire desktop and prevents me from working that really annoys me! Please, how do I turn that off?
-
IPOD freezes after a certain time
After a certain time using the device, the touch display does not work anymore. The app is still running, but not reacting any more. After switching off the Ipod is working again for a certain time.
The device has been rebooted several times, restored via Itunes and also the firmware is up to date.
The device is one year old, 8GByte, enough memory available and the battery charged.
The problem started some weeks ago.
I started to remove some apps without success actually.
Apps that have a bigger size seem to increase the occurence of the problem
Using WiFi increase the occurence also.
Any ideas welcome!!!Here finally the solution for my problem:
The hardware of the Ipod had a problem. The device had been replaced by a new one. As I bought the device in Germany, there is an extended warranty of 24 month. The retailer where I bought the device took it back and gave the complete money back including the shipment costs! So I ordered the now IPod Touch G4 and have now fun again.
The suggestion which already had been given was correct and helpful.
A comment about the retailer:
I bought the device via Amazon. There support even on a Sunday evening was just great. In one week (!!!) I sent the device (on Monday), got the result of the investigation and received the new device (on Friday).
The support I received here was just great! -
IDVD is closing after a certain time.
Hi, i made a movie with a sony Z1-HDV camera and made the montage in FCP. Than i export it with Quicktime 7.5. Than dropped it in iDVD. After a certain time iDVD just quits. With the below report.
Also when i just open iDVD and open an other iDVD project and do nothing iDVD just quits after a certain time. Read below report.
What to do???? I have to finish this project by wednesday!!!! HELP!!!
Process: iDVD [512]
Path: /Applications/iDVD.app/Contents/MacOS/iDVD
Identifier: com.apple.iDVD
Version: 7.0.2 (1100)
Build Info: iDVD-11000000~17
Code Type: X86 (Native)
Parent Process: launchd [84]
Date/Time: 2008-08-03 19:43:10.272 +0300
OS Version: Mac OS X 10.5.4 (9E17)
Report Version: 6
Exception Type: EXCBADACCESS (SIGBUS)
Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000000
Crashed Thread: 22Yikes! You're on the very edge of a kernel panic if you haven't yet seen one. Something is amiss ....
Are you using any external FW or USB HD's / 3rd party devices while attempting to burn an iDvd?
If so, Restart your Mac without any 3rd party devices attached and try again. But first run apple's disc utilities to Repair Permissions. Assuming you have no less than 20GB's of available HD space on the boot volume and that all assets for iDvd are located on this same volume (your main HD and not on the external volume/s).
Post back with your results.
Message was edited by: SDMacuser -
Do notes go away after a certain time?
Do notes on the iphone4 go away after a certain time? One of my most important note is gone.
How old are you? If 1998 is the year you were born, it's entirely possible your parents have subscribed to a 'smart limits' service, which will disable your data connection, text messaging, etc. during hours they choose.
-
When Streaming a movie or tv show it stops after a short time and does not finish downloading. We watch the TV show or movie than nothing !!!
a message comes up An error occurred loading this content try again later. We have unplugged everything rebooted several times and nothing
helps. It was working fine until we did a upgrade that showed up on the Apple TV.
modle A1427 3rd generation
Any help would be GREATLY appreciated Nothing on regular TV miss my Apple TV stuff !!!!Welcome to the Apple Community.
Try the following steps, check whether things are working after each step where appropriate, before trying the next.
Restart the Apple TV (Settings > General > Restart).
Restart the Apple TV by removing ALL the cables for 30 seconds.
Restart your router.
Reset the Apple TV (Settings > General > Reset > Reset all settings)
Restore the Apple TV (Settings > General > Reset > Restore) -
Call quality gets choppy after a certain time
Hello, Having an issue with my Comcast phone service. Quality seems to be good (for VOIP) on most calls, however, if I have a call that runs over 45 minutes or so, the line gets choppy and I'm only able to hear about 1 out of every 3 words. This happens consistenty on longer calls after a certain period of time (usually after around 45 minutes). There doesn't seem to be any problem at all during shorter calls, but it's incredibly annoying since I use my phone for work and many of my work calls run longer. Thanks,Ryan
Group video calls have a fair usage policy so if you are doing a group video call more than 4 hours a day/100 hours a month then you could have issues. Normal video calls should not have that limitation though I could imaging there could possibly be a limitation if you attempted to keep a single video call running 24x7x365.
http://www.skype.com/en/legal/gvc-fair-usage/ -
Jrun getting stopped after interval of time
Hi All,
I have application running on Jrun4. Application getting down
after interval of time...
Here's the error from log file..
06/12 18:26:28 error
javax.ejb.EJBException
at
jrun.ejb.interceptors.InvokerInterceptor.handleThrowable(InvokerInterceptor.java:75)
at
jrun.ejb.interceptors.InvokerInterceptor.invokeObjectMethod(InvokerInterceptor.java:159)
at
jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTransactedMethod(Conta inerManagedTransactionInterceptor.java:148)
06/12 18:27:16 error Transaction is inactive
java.lang.IllegalStateException: Transaction is inactive
at
jrunx.tyrex.tm.impl.TransactionManagerImpl.setRollbackOnly(TransactionManagerImpl.java:31 1)
at
jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.handleTransactionException(C ontainerManagedTransactionInterceptor.java:445)
at
jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTransactedMethod(Conta inerManagedTransactionInterceptor.java:150)
at
jrun.ejb.interceptors.TransactionInterceptor.invokeObjectMethod(TransactionInterceptor.ja va:130)
at
jrun.ejb.interceptors.StatelessSessionInstanceInterceptor.invokeObjectMethod(StatelessSes sionInstanceInterceptor.java:49)
06/12 18:26:38 metrics thrds (bsy/tot): 0/3 Sessions: 249
TotMem=159400 Free=54009
Please help us to solve the issue...
Regards,
HarshadJayashree,
This time, i am getting some other error....
06/19 11:11:39 info Transaction rolled back on JDBC
Connection from DataSource GPDB
06/19 11:11:58 metrics thrds (bsy/tot): 1/3 Sessions: -416
TotMem=320200 Free=165689
06/19 11:12:58 metrics thrds (bsy/tot): 1/3 Sessions: -418
TotMem=320328 Free=172949
06/19 11:13:58 metrics thrds (bsy/tot): 2/4 Sessions: -418
TotMem=320456 Free=186284
06/19 11:14:58 metrics thrds (bsy/tot): 2/4 Sessions: -422
TotMem=320520 Free=187180
06/19 11:15:58 metrics thrds (bsy/tot): 2/4 Sessions: -422
TotMem=320520 Free=187168
06/19 11:16:58 metrics thrds (bsy/tot): 2/4 Sessions: -424
TotMem=320520 Free=187131
06/19 11:17:58 metrics thrds (bsy/tot): 2/4 Sessions: -426
TotMem=320520 Free=188615
06/19 11:18:58 metrics thrds (bsy/tot): 2/3 Sessions: -426
TotMem=320520 Free=188533
06/19 11:19:58 metrics thrds (bsy/tot): 2/3 Sessions: -430
TotMem=320328 Free=188376
06/19 11:20:58 metrics thrds (bsy/tot): 2/3 Sessions: -432
TotMem=320328 Free=188359
06/19 11:21:58 metrics thrds (bsy/tot): 2/3 Sessions: -432
TotMem=320328 Free=188807
06/19 11:22:58 metrics thrds (bsy/tot): 2/3 Sessions: -434
TotMem=320328 Free=188805
06/19 11:24:00 metrics thrds (bsy/tot): 2/3 Sessions: -436
TotMem=320328 Free=188834
06/19 11:25:00 metrics thrds (bsy/tot): 3/4 Sessions: -437
TotMem=320328 Free=187441
06/19 11:25:48 user FileServlet: destroy
06/19 11:25:48 error [axis]
javax.servlet.UnavailableException: Cannot initialize
RequestProcessor of class com.getpaid.thincl
ient.web.control.RequestProcessor:
java.lang.ClassNotFoundException:
com.getpaid.thinclient.web.control.RequestProcessor
06/19 11:25:48 error [axis]
javax.servlet.UnavailableException: Cannot initialize
RequestProcessor of class com.getpaid.thincl
ient.web.control.AdminRequestProcessor:
java.lang.ClassNotFoundException:
com.getpaid.thinclient.web.control.AdminRequestProce
ssor
06/19 11:25:48 user FileServlet: destroy
06/19 11:25:49 error Session data is not serializable
(ID=223020de4bca$CF$02$5) - session is lost
06/19 11:25:53 error Session data is not serializable
(ID=2230b6e602e6$16$A6$F) - session is lost
06/19 11:25:56 error Session data is not serializable
(ID=223090e7a53d$26$03$0) - session is lost
06/19 11:25:57 info 184 session(s) persisted
06/19 11:25:57 user FileServlet: destroy
06/19 11:25:57 error [axis]
javax.servlet.UnavailableException: Cannot initialize
RequestProcessor of class com.getpaid.dmb.we
b.control.DrsRequestProcessor:
java.lang.ClassNotFoundException:
com.getpaid.dmb.web.control.DrsRequestProcessor
06/19 11:25:57 user resource: destroy
06/19 11:25:57 error Session data is not serializable
(ID=2230d87fb7cd$BB$8E$1) - session is lost
06/19 11:25:57 error Session data is not serializable
(ID=2230d9dca5bak$8E0$12) - session is lost
06/19 11:25:57 error Session data is not serializable
(ID=22304cc50835$FDC$90$) - session is lost
06/19 11:25:57 user FileServlet: destroy
06/19 11:25:57 error [axis]
javax.servlet.UnavailableException: Cannot initialize
RequestProcessor of class com.getpaid.rw.web
.control.ReportRequestProcessor:
java.lang.ClassNotFoundException:
com.getpaid.rw.web.control.ReportRequestProcessor
06/19 11:25:57 user FlashGatewayServlet: destroy
Can u please help me to resolved the issues?
Regards,
Harshad -
How to get the screen to dim after a certain time?
cant remember how to get screen to dim after no screen activity? anyone remember?
Settings, general, autolock. Set it for however long you want it.
-
Powershell- FTP Script to copy files only after a certain time
Hey guys,
We are currently running an FTP script that decrypts pgp and copies/moves several files to different archived and production locations. These files come in constantly throughout the day and we need to ensure a certain 8 files get moved to 4 different locations
but NOT before a certain time.
Ex: File1 and File2 are received EARLY along with 50 other files and decrypted at 9pm EST on 9/4. File1 and file2 need to WAIT to be moved until after 12:05am EST on 9/5 or it is slapped with an incorrect $date/time and not processed correctly but
every other file needs to be moved (which is currently all configured).
Right now, both file1 and file2 are being moved as the script runs (every 10 minutes) so when the files come in early from the vendor- they get the incorrect date/time stamp.
I'm fairly new to powershell so I'm not quite sure how to set this up to only move the file if it is between a certain time- say 12am-1am and no other time.I was able to resolve this myself by doing the following:
$hourdate = get-time –uformat “%H”
#Copy-Item as long as time is in the 12:00am or 1am hour
if(($hourDate -eq "0")-or ($hourdate -eq "1"))
copy-item objects
Thanks guys
Maybe you are looking for
-
Create a custom Master Page in SharePoint Foundation 2013
Hi, I am new to SharePoint foundation. I am trying to create a custom master page and save it as template, so that i can use it for all other sub sites. But i don't know where to start. Also i tries searching in Google, i got results for share point
-
I realized that I can create due dates on iCal for tasks that sink to my reminders (so I am still reminded of a task, but also know when it NEEDS to be done). The problem is when I try to create a new task in reminders on the iPhone, it only gives me
-
Firefox is taking along time to get started after opening home page
after opening firefox it takes a few minutes before I can browse any site or feature. Everything is frozen on the home page for awhile.
-
Configure java environment to automatically use a font set
I am having trouble setting up my environment to use a font - like cyberbit. Specifically, I would like to be able to display Chinese/Japanese unicode data on my appliation - all I can view are boxes. I have installed the cyberbit font under ../jre/l
-
Adobe Elements 9 won't open new project.
My version of Adobe Elements 9, bought in April 2011 for my PC with Windows 7, won't allow me to open a new project. All I get is a greyed out prompt that won't go anywhere. It will open a prior project. I haven't used the program in about 9 months.