Structure inside while should work only one time ?
Hi Everyone ,
I have coded a program that if i click a button ( switch untill released) . inside that structure should work only one times .
and i have coded and its working fine .. but its looks compilcated..
i need some simple solution . Plz help me guys
Attachments:
CODE.vi 10 KB
saran1988 wrote:
I have coded a program that if i click a button ( switch untill released) . inside that structure should work only one times .
and i have coded and its working fine .. but its looks compilcated..
i need some simple solution . Plz help me guys
Your code has very little to do with what you are describing.
There is no button with "switch until released" mechanical action. (OK is switch when released, stop is latch when released)
A case structure always "works". Are you saying that it should execute e.g. the true case only once whenever the outer case goes from false to true??
Your inner case goes true more than once per run of the program (whenever the OK goes true). If it should really only work once overall, use the "first call?" primitive. You need to formulate the problem using less ambiguous words.
There is no obvious starting state for the boolean that you read via local variables. How do you ensure that it start with a known value? Does it matter?
You seem to entirely deal with integers, so why are you using floating point representation for the numerics?
What is the purpose of the orange numeric indicator. Is it just a kludge for your logic or does its value mean anything?
Why does your loop not contain any wait?
At this point, you should learn about shift registers. It would eliminate all your local variables.
LabVIEW Champion . Do more with less code and in less time .
Similar Messages
-
Hi ..
I am currently trying to implement a menu.
I have a button save and the X in the upper right corner. the whole thing is a modal window, which is called from my application (it creates and saves a configuration).
Everything works fine as long as I press the "Save" Button. But:
When I press the X, the menu disappears (as expected) but when I try to open it again from the main menu, labview seems to hang. I can only close it with Ctrl-Alt-Del
What could be the cause for this ?
Thanks
TomThere it is
Attachments:
Agilent.zip 46 KB -
My husband and I are trying to use Facetime since we are living apart this summer. It worked once before I left town, but hasn't worked since then.
I have a MacBook Air, OSX 10.6.7
He has an iPad 2
Both have Facetime set up. We share the apple Id between the machines, but the apple id has been deleted as a contact email from the iPad.
The Air can call the iPad; but when my husband tried to accept the call, it just keeps saying "connecting" or something like this. The call doesn't go thru.
The iPad cannot seem to reach the Air (I don't see that the iPad has called me).
I am often using a university wifi system, so i thought firewalling might be a problem, but my roommate doesn't have an issue with it for her facetime (she is using an iPad).
Any ideas?Update: Above roommate just tried Facetime with me (she has an iPad). The exact same thing happened as with my husband...my call to her showed on her iPad but the call didn't connect. Her call to me didn't even show up on my machine. So, it appears to be an issue with my MacBook Air...
-
Only one time Froforma Invoice
Hi All,
Is there is any check for Froforma Invoice that should come only one time ...when they will creat the forforma invoice the system should give a error massage that " the Proforma Invoice is already created" and that is error massage ...
Thanks in advance ....
Regards,
AbhijitHi Samier,
Actually the requirement is they will allow the user to take only one time Proforma invoice ...But in SAP standard u can take save the Froforma invoice as many times as the user want ...In item category the completion rule will not work ....because i want to check the delivery document should be refence for two times once for F2 and again for F8.As if we want to creat the billing doc for 2 time the system shows this billing has already been done ...that is also applicable for F8....
Regards,
Abhijit...................... -
Repeated Region: show dubble entries only one time
I want to make a recordset where all 'cities' are shown only one time, It should not be like
The Hague
The Hague
The Hague
Rotterdam
Rotterdam
Amsterdam
But:
The Hague
Rotterdam
Amsterdam
This is the recordset:
SELECT c_city FROM canteen
This is the repeated region:
<?php do { ?><?php echo $row_allCities['c_city']; ?><?php } while ($row_allCities = mysql_fetch_assoc($allCities)); ?>
Thankx for any further help!Add a DISTINCT statement to your query.
SELECT DISTINCT c_city FROM canteen
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer -
System should create only one delivery for 100 different PO's in STO
Hi All
i need help
Plant B raising 100 different po's daily for different materials to Plant A.(STO)
Now Plant A will do Dilivery via VL10B.
Here my requirement is system should create only one delivery for 100 different PO's and delivery should contain all the
materials as line items bcause system should not create 100 deliveries( time consuming process).
Here there is no manual transaction for VL10B.
That is system is goining to excecute the VL10B automatically, there is no manual transation for VL10B
How can we do this?
Thanks
MSKHi
We can able to do your requirement
1. All the STO materials should have same sales view in materials for the *Unique)following field: Loading group, shipping Point, so on..
2. In the config, hope we have do the combine delivery setting for VL10B
Regards
Prasanna
Edited by: Prasanna Raju on Feb 17, 2010 1:52 PM -
Screensharing works only one way since we moved from iChat to iMessage bêta. Before that we have never had any problem with screen sharing. We haven't changed anything else, just installed iMessage. What I need to do is share her screen, and the only thing I can do is share my screen...
Thanks for your help.HI,
On the whole I am finding it very stable. (it presents the same quirks in the same manner each time)
It has some things that are more Feature requests than "Bugs" per se about the way it works that I would like to change.
It can also be difficult to tell exactly what is going on whenyou are hearing about it third hand.
Sounds like you have a plan.
8:35 PM Tuesday; March 20, 2012
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
Depreciation should be done one time a year in december with 20 %
Hello Friends
I need to know how I can do an asset depreciation one time a year in december with 20 % of total amount and for 5 years.
Thanks in advance.
Gabriel BenitoHello,
Please I need help to solve this problem:
Depreciation should be done one time a year in december with 20 % of total amount. With the current settings the depreciation run will prepare monthly depreciation postings
I have created a depreciation with the followings customizing settings:
Base method 0007 (Ordinary: Percentage from life (after
end of life)
Decl.-bal. method 001 (no declining-balance
depreciation method)
Prd cont 005 (acquisition and acquisition in
following year with period control at start of year (06),
retirement and transfer posting with period control in
following year (08)).
Multilev.meth. 013 (base value acquisition costs)
If the method does not have the following allowed entry and
is already used in other depreciation keys, you must create a
new multilevel method with the following allowed entry, which
is to be used in the new key:
The method should be valid from the ordinary depreciation
start date.
Multilevel method allowed entries:
Acq.year Years Per BaseVal. Percent Rem. life
9999 999 12 01 0,00
Multiple shift: No effect on depreciation and useful life
Shutdown: No
Scrap value: Consideration is controlled by cutoff value key
Acq.only allowed in capitalization year: Yes
No reduct. in short year: Yes -
Can I use Google Sync to transfer only my contacts from my IPhone 4 to my gmail account? I do not want to sync info from Gmail to the IPhone. Can the sync work only one-way? I have 0 contacts & 0 calendar events on my gmail account. I opened the Gmail account specifically to for the Google Sync and wil only be using this account as a back-up for my IPhone contacts. Please Help!!
You do realize that the SIM only contains account information for your wireless account.
Moving the SIM from phone to phone does not cause any of your iTunes content, contacts, email, etc to magically appear on the device. -
Trying to play playlist on Apple TV. It worked at one time, but not now. Home sharing is on, on the computer; but apple TV keeps asking me to turn home sharing on.
What gives?Hello hobartco,
Home sharing will, indeed, need to be set up on your Apple TV, as well.
Setting up Home Sharing for Apple TV (2nd generation and 3rd generation)
http://support.apple.com/kb/HT4352
Cheers,
Allen -
Pricing: condition type PR00 only one time enter
Dear
In sale order we have condition type PR00 and it is manualy condition type , now user was entering the same condition type(PR00)
Two times ,how can we restrict that PR00 is enter only one time in the sale orderCheck this thread where the same topic was dicussed.
[how tostop duplicate conditype entry in to prcing at order |Re: how tostop duplicate conditype entry in to prcing at order processing lev;
thanks
G. Lakshmipathi -
BMP EJB Load and Store is calling only one time calling in a loop
Loop Iterating two times but ejb load and store is calling only one time.
Application deployed in 0c4j 10.1.2.0.0 container.This sounds more like a Teststand quesstion. You might want to post it there.
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 -
Custom Ringtones ring only one time ( Please Report to Xperia Z2 Developers )
I buy Z2 last weak, before it i was using Z1.
Both devices have one error in their Firmware and that is about ringtone.
no matter whatever the custom ringtone you set for ringtone notification its ring only one time and then only vibrate.
For example i set a tone which is 12 second tone so when ever some one call me after 12 second the ringtone did not repeat.
Sample video
https://www.youtube.com/watch?v=IDy2...ature=youtu.beTry a software repair:
http://www.sonymobile.com/gb/tools/pc-companion/
All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien -
Refresh the window only one time
hi,
i want to refresh my window only one time using the javascript code window.location = window.location.href. But i am in a situation to write the code in the event of form load. so i the code is executing infinitely. but i want to refresh my window for only one time. any suggestion would be appreciated. thanking u
rgds
parameswaranSend a URL param with it, then check for that param before refreshing.
And this isn't really JSP-related. -
Hello all,
one question: I have a report region. In one column a value is several times among each other. What can I do, the same values display only one time?
Thanks a lot!
Regards
DanielDaniel,
Not sure if I have exactly understood your question but are you talking about Break Formatting? So that a report will display like:
CATEGORY | PRODUCT
Computer - Monitor
- Keyboard
- Mouse
Car - Wheel
- Engine
- Gears
instead of:
Computer - Monitor
Computer - Keyboard
Computer - Mouse
Car - Wheel
Car - Engine
Car - Gears
If so, you'll want to investigate Break Formatting in your Report Attributes or look in the Help for more details on this.
Sorry if that's not what you meant...
Andy
Maybe you are looking for
-
[SONY HDR-SR8E] no audio in imported SD files (MPEG2/AC3)
Our office just bought a new HDR-SR8E, and i need help so that SD (MPEG2) files shot with it can be edited, but apparently we couldn't get any audio from them. I know it's because iMovie doesn't support AC3 5.1 and it's not actually MPEG2 imported bu
-
I keep getting the same errors with the damn Creative Cloud application on my Windows 7 machine, which IS connected to a LAN and IS actively connected to the internet at the time the error routinely appears in the midst of tasks. I have checked root
-
When commenting on documents with text callouts. I can change the properties ok. But after Adobe is closed and reopened changed properties are not saved. Any feed back on how to make properties to stay as default?
-
$CL - Create Characteristic with multiple Unit of Measure
Hello Friends, I want to create characteristic (CT04) which has multiple units of measure. At present a Characteristic is created with a single unit of Measure. I have to create characeristic and assign it in MIC. MIC specifications are customer d
-
Changing track order in Library
I recently purchased 6 songs from the Bowie "Heroes" album from the iTunes Store. But looking at them in my iTunes Library, the title track had the wrong album information. It said it was from somebody's iMix, and had that person's photo in the artwo