Count 1 time each for a cycle
Hello everyone we are now using labview for our project, which is to manage the process of charge and discharge of a battery. And we need to save the battery life cycle. That's when charging this lifecycle should be increased by 1.
We try to use a case with loop structure for, but it increases too fast and keep growing. I want only to increase once when the limitation is meeted. Also I try to use the shift register, but he can't stop... also keep rising unless I have shut down the entire program.
Can someone help with this problem? If receiving a signal, boolean, or else..., lifecycle (variable) will increase by 1.
Millions of thakls!
AmeHyesung wrote:
Hello everyone we are now using labview for our project, which is to manage the process of charge and discharge of a battery. And we need to save the battery life cycle. That's when charging this lifecycle should be increased by 1.
We try to use a case with loop structure for, but it increases too fast and keep growing. I want only to increase once when the limitation is meeted. Also I try to use the shift register, but he can't stop... also keep rising unless I have shut down the entire program.
Can someone help with this problem? If receiving a signal, boolean, or else..., lifecycle (variable) will increase by 1.
Millions of thakls!
Here is a simulation using a state machine, see if you understand the process here. user affects the ability to charge and discharge and the number of cycles to do.
Tags: NI Software
Similar Questions
-
How to count the time exactly?
I tried to count the time using a VI like the one attached.
It's that's not couting correctly. There is a possible reason, I have observed.
The computer isn't able to handle the VI as soon as necessary.
I thought about this because, when in edit mode the time count was very bad, and, when I created an application and installed, it ran okay, how 'light '. But today, when I tried to use this application with an old computer it did not work. The clock is slow.
Is it possible to count the time correctly?
I use a DAQ6009 to make my works, my VI is big enough and I need one iteration to each 1 ms (milliseconds) as I am with digital inputs from 5 events of coders (I know that's not the right way to count the encoders, but it's the only way I can do it, and it works).
Thank you in advace! I hope you can help me!
Hugs!
Ok. I will try to help you understand certain things.
The number of cycles and wait (and wait until the next ms Multiple) functions all use a 1 kHz derived from the clock of the processor clock. The accuracy of these clocks is not large, although they are probably similar to the precision of the stopwatch. Any time generated by these functions will show some differences in the time of the clock as it is derived from a different oscillator.
Updates from the front panel are time by LabVIEW and the operating system. Most of the screens are updated with 60 to 80 times per second, maximum. What made the operating system, an update of the screen might be delayed by 10s of milliseconds or more. It is certain that not all of the values at the end of the Add function will be displayed.
Wait for him until the next ms many will wait more than 1 ms if the other code in the loop takes longer than 1 ms. I don't know, but I think that the indicator is buffered so that any delay by the operating system to update the display should not slow down the loop. I tried to remove the flag, and it doesn't seem to make a big difference.
I modified your VI to provide several indications of the performance. First of all, I added to the sequence of three-frame structure to allow synchronization of the loop. Second, I changed to a loop which runs a specified number of iterations. Thirdly, I hooked up the output of the timer until the next ms Multiple to a tunnel of autoindexing allowing a record of the time of each iteration appears in the table of ticks. I calculated the differences between successive instants and poster on a chart, so that you can see the performance.
I didn't want to sound criticism of your use of English. You write in English, much better than I could in your language! What I was trying to make is that such general descriptions that ' Besides correctly ' without quantitative results or evidence in support of the application do not have enough information to help us help you.
Lynn
-
How to create a counter with timer and the dynamic text field?...
I am creating a 'meter' item that uses a dynamic text box formatted for decompter.1 in increments of 3 times per second, from a specified value (so the viewer would see 3.1, 3.2 then... etc.)
Here's the code so far:
var counter:Number; counter = 3.0 counterText.text=(String(counter)); var timer:Timer = new Timer(300); timer.addEventListener(TimerEvent.TIMER, onTimer); timer.start(); function onTimer(event:TimerEvent):void { ??? }
What I can't understand, is what should go in the box function for ajouter.1 seconds whenever the clock cycles. Any help would be appreciated!
use:
var counter:Number = 3.0;var increment:Number = .1;var upperlimit:Number = 12; counterText.text=(String(counter)); var timer:Timer = new Timer(333);timer.addEventListener(TimerEvent.TIMER, onTimer);timer.start(); function onTimer(event:TimerEvent):void {counter += increment; counterText.text = counter.toString();if(counter>=upperlimit){timer.stop();}}
-
Question
I have another type of problem with Firefox
Description
My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.
This has happened
Each time Firefox opened
Only a few weeks ago, (tried everything)
Troubleshooting information
?
Version of Firefox
3.6.3
Operating system
Windows XP
User Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Plugins installed
- -Adobe PDF plugin for Firefox and Netscape
- Default plugin
- Shockwave Flash 10.0 r45
- Windows Presentation Foundation (WPF) plugin for Mozilla browsers
- Java plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
- Npdsplay dll
- DRM Netscape Plugin store
- DRM Netscape Object network
Read about virtual memory here: http://www.ehow.com/windows-xp-virtual-memory/
-
My "XP Home Edition' Service Pack 3 > stored user names and passwords are removed several times each time the computer restarts.
Please check the LINK for the process that I'm going through, but nothing helped.
http://www.box.NET/shared/zcokjesxx3
Thank you for your kind cooperation.
Sincerely,
FrankHi Ajay,
It worked!
Was the only thing that I changed, I added a % USERPROFILE % so he looked like that before
%USERPROFILE%\Application data
Instead of like this USERPROFILE%\Application Data
Not sure if this was necessary to make - but again - it WORKED...
Thank you very much for your time and your help is to solve this for me.
Sincerely,
Frank
-
What a time limit for care?
I waited more than 10 minutes and more for others to make their movements.
What a time limit for care?
There are players who walk away a game when they are behind but never
you know, if you wait for a long time and then must get yourself out.
A very juvenile manner to act.
This game is fun when you have a partner of responsible gaming, but lately, there has been a lot of
Obviously ignorant who play in an abusive manner.
A reasonable period of time would solve a lot of this.
If you do not travel in time, your release of the game...
ROFL. You will need to address this with each different game, you're talking about, by contacting their support, or post in the forums. This isn't a general/portal for games information center.
-
INSTALLED OX10.9 HPC309A MUST BE EVERY TIME REBOOTED FOR PRINT JOB
INSTALLED OX10.9 HP C309A NEEDS AT EACH TIME RESTARETED FOR THE PRINT JOB.
Hello
Well, at this point we have exhausted all our troubleshooting steps. To get a printer works wirelessly, it would be better for you to call the HP Technical Support in your area and inquire about trade and trade program.
Have a great weekend!
-
How to reset a timer each time the function is called?
Hello
I have my code like below. The main function is called whenever the event occurs. The event occurs when I created a timer which occupies 10 seconds for display purposes.
Once the Main() is called, a message appears and after 10 seconds, the message disappears.
The problem I had met with this code is that the message does not last for 10 seconds when the Main() is called consecutively. For example; when its name for the second time within 10 seconds, the display will show for 6 seconds and maintain the reduction.
Can someone help me with this problem and tell me what to do to reset the timer each time the Main() is called. I also used FeatureState_Timer.reset (), but it did not work.
/ * Declarations of global variables * /.
public var FeatureState_Timer : timer = new Timer (10000);
/ * Global function * /.
function Feature_Timer_Function(timerEvent:TimerEvent): void
{
Message.Visible = false;
Feature_Timer. stop();
}
function Main(event:Event):void
{
FeatureState_Timer .addEventListener (TimerEvent.TIMER, Feature_Timer_Function);
FeatureState_Timer . Start();
Message.Visible = true;
}
Thank you!!
Try to reset the timer first:
function Main(event:Event):void
{
FeatureState_Timer . Reset();
FeatureState_Timer.start ();
Message.Visible = true;
}
If this does not work, use the following code:
function Main(event:Event):void
{
FeatureState_Timer = new Timer (10000);
FeatureState_Timer.addEventListener (TimerEvent.TIMER, Feature_Timer_Function);
FeatureState_Timer.start ();
Message.Visible = true;
}
-
Do you buy creative cloud and Illustrator each for $19.99?
Do you buy creative cloud and Illustrator each for $19.99?
You can buy the full Cloud creative subscription time includes all the CC apps.
Or
If you want to use only Illustrator. You can buy single App subscription.
See the link below:
-
Migration of data from Time Capsule for external hard drive
On previous posts, I received advice to use a single TC to buy a new one, with the intention to use them both as backups Time Machine for three different Mac. So right now, I have a 5th generation unique Time Capsule of my network that serves as a backup for three Macs drive. The older TC is still connected, but only until he ends the disc, which transfers to a 3 TB Western Digital My Passport Ultra HD, connected directly to the TC via USB to archiving.
The old TC is filled up to 1.99 TB, and I imagine that it would take a long period of time to archive and copy all of this info, but the process is already underway for more than 24 hours, and it always shows 1 day 0:31:59 is this normal? Do I have to cancel and try another method?
Shared experiences or advice will be appreciated.
See you soon!
BTW, I don't like the new layout of this post!
The old TC is filled up to 1.99 TB, and I imagine that it would take a long period of time to archive and copy all of this info, but the process is already underway for more than 24 hours, and it always shows 1 day 0:31:59 is this normal? Do I have to cancel and try another method?
Unfortunately, these can take a long time. I suggest that you let it run for at least 24 hours and then see where is the check-in process. So again, it doesn't show much progress later, let know us and we can provide you with possible options.
-
Using Time Machine for subsequent backups
I would like to know how can I use Time Machine for frequent backups after the initial. Specifically, I want to know how I can assure you that Time Machine DO backup files that have changed since the initial AND only the new backup files that have been added to the hard drive since the last backup? In other words, Time Machine will do it automatically or it will save all the entire hard drive again?
Time Machine which will automatically
Yes.
-
I have 2 routers. Both can have time capsule for wifi?
I have a Netgear C3000 Modem/Router, where my internet comes from the wall. I also have a router VPN Sonicwall for work. My sonicwall going through my Time Capsule for wifi. Recently, I upgraded my internet speed with my ISP to 150. When the internet is channeled through two routers, the speed is quite slow (about what it was before the upgrade). When I get wifi directly from my Netgear, the speed is much faster. Can I have 2 sources on the internet through my Time Capsule? 1 for the work (slower wifi) and 1 for home (faster wifi)?
Can I have 2 sources on the internet through my Time Capsule?
Unfortunately, the time Capsule cannot handle this... because it would need to have two WAN ports to be able to handle two Internet connections. Since then she has only one, you will need to decide which source you want to use with time Capsule.
-
Satellite Z830-10W - timer function for the backlight on the keyboard
Hey, I bought a Toshiba Satellite Z830-10W, that's a fine ultrabook.
But I would like to have the timer function for backlight the keyboard work.The next update of the BIOS are change? Flemming regand
Don t think that this feature is available
Never seen any Toshiba laptop, including such meter for the backlight keys. -
My watch shows the time vertically for a few seconds after I remove it from the charger. Has anyone else seen elsewhere?
Don't know what you mean by vertically but it is normal that the watch to display the time briefly when removed from the charger. If the Watch is held horizontally with the number key of Crown and side on top can be turned. This is normal and is the point of view of bedside table.
-
There was a new threat to IE, and may 1, 2014, microsoft announced an a time difficulty for all Windows XP systems, but I can't seem to get the updates of windows to work. Anyone out there who can help me, need to pay you for this download
Hello Barry,.
Update IE KB2936068 updated my copy of Windows XP this morning with no problems. And no, I didn't have to pay for the download.
This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.
John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com
Maybe you are looking for
-
the question then remember password cannot hide for long time
Fix it not to hide the password do not forget the box for a long time PHOTO QUESTION
-
Satellite A110-160: graphics card shows a maximum 64 MB instead of 128 MB
I have a Satellite - A110-160 and recently I update my bios to 1.60v... my graphics card now shows a maximum of 64 MB instead of 128 MB... anyone having the same problem? his bad toshiba doenst previous bios support for download, I assume that evil m
-
Equium M70: display freezes after 5 min
Hello worldI just brought this satellite m70 and my screen hangs on after 5 minutes. He has a driver intel media acc installed. does anyone else have this problem.
-
[HP Probook 450] The upgrade of windows 8 to 8.1
For some reason any when I try to upgrade windows 8 to 8.1 store it does not start the download process. Initially, it will appear, but it will try to, then he sits down; do nothing. Is there something I can try this move? I am trying to get this ful
-
TRANSITION SEARCH TABLE AND COUNTY FROM HIGH TO LOW
I have 4 entries to dig. I want to count the number of times where each individual entry passes up and down and display the number I have attached the vi as v11. Thanks for any help.