Stuck with comparison!!
Hi I'm attaching my vi. I'm doing serial Visa read to get the data. My algo goes like this:
I compare my serial port visa read string with char "x". If x is received than I increament the index in the structure. There is another control(steps) which tells me when to run my other structure for other processing. I wanna compare both my Desired number and index and if they are equal, my vi should run the desired structure.
Now problem is as soon as index increaments my desired number also increaments, which is very logical.
I wish to compare my index with the last desired number for eg.
In current position if Index is 5 and steps control says 2 means my next processing in structure has to run when index becomes 7.
Attachments:
stuck.vi 10 KB
You probably need to clarify the problem a bit better. Your VI is designed with an uninitialized shift register, but you don't have any connectors hooked up, so it seems to be the toplevel program. This means that your counter will start at a high value for subsequent runs of the same program.
What should happen after the processing has occured? Should it again happen after a desired number of steps or never again?
I think what you need is a second shift register to keep the last action index (and have both initialized to zero). Place the action case into the X case, because it can only happen if another x is encountered, right?
If an action occurs, place the index into the action index. If no action occurs, don't.
Here's a quick draft. You probably need to tweak it for the exact requirements. (I added a chart to record the various events)
You should also make sure to use a "larger or equal" comparison. If you do an "equal" comparison and you would switch the steps from 4 to 1 in a case where the comparison is already e.g. 3, the "equal" will never happen again, ever!
(Since I don't have your VISA, I substituted some code that generates x with about 25% probability. I also placed a beep in the action case)
Message Edited by altenbach on 06-30-2007 10:48 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
stuckMOD.vi 25 KB
Similar Messages
-
I followed all the directions to get Firefox 8 to work with my Norton 360, but nothing has worked. Is there anything else I can do? I didn't know there was an issue when I first upgraded to Firefox 8 so didn't choose the Norton plug ins immediately so I uninstalled Firefox hoping to be able to do it correctly when I Downloaded it again. Unfortunately it didn't ask me any thing regarding Norton so I went to Plug ins as directed to Enable Norton 360's plug ins, but none were listed.
What can I do now? I LOVE Firefox! If we can't make it work I'll be stuck with Internet Explorer which I do not care for at all!
I need to have Norton Security to protect my computer. Please help me find a solution to this problem ASAP.
Thank you,
Susan L Woods
[email protected]Hi Susie, I use Norton 360 and have the latest Firefox 8 installed is working fine for me. Firefox 8 support for [http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640 Norton Toolbar] was released on Nov 8th. Install the appropriate add-ons based on the version of Norton 360 you're using (see official Norton link above). Hope this helps.
-
My iphone5 was accidentally disconnected while updating OS8.2 in my MacBook Pro and now it's stuck with an apple logo on its screen and won't turn on or off. What should I do?
Connect to iTunes and restore. If you have difficulty, you may have to put the device into Recovery Mode. See the instructions in this support document. If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
-
Now it's stuck with the progress bar less than a quarter full. I have also tried resetting through itunes which works right up to the point where itunes states that it needs the passcode to be inputted into the ipad to connect to it. At which point it then sticks at the same progress bar point. HELP!! please, this ipad is really important to my work.
Well the term "hotlined" I have never heard before. In any case many states (like NY) just passed regulatory powers to the State Public Service Commission of which it may be called something different in your state. You could file a complaint with them. Or file a complaint with your state attorney generals office, they also take on wireless providers.
The problem here is the staff you speak to are poorly trained, in days gone by it took one call to them and they pulled up your account and see the error and had the authority to remove any errors. They did not remove legitimate account actions, but used their heads instead of putting a customer off or worse lying to the customer.
Its a shame you have to go through what you going through.
Good Luck -
My iPhone 5s (16GB) is stuck with 3948 photos (shown on the iTunes storage bar) on and I can not find a way to delete them all! It's very annoying as it takes up 6.54 GB of space and leaves me no room to add films, music...etc on to it. Please help me!!! I have already tried the numerous articles Apple have sent my way and I am still having no luck.I'd be eternally grateful if anyone could find a solution for me as this has been a problem for almost a year. Thank you.
If they were put there via iTunes sync process, then simply untick the Music box before syncing again.
-
App will not download to iPad when purchased from App Store - stuck with Cloud icon
Device : iPad Air 32gb wi-fi model (not cellular data)
OS version : 7.1.1 (up to date)
Location : UK
Problem : App will not download to iPad when purchased from App Store - stuck with Cloud icon
Last night I tried to download an app over wi-fi onto my iPad Air, but the app did not install.
I have plenty of space (the app is 24.1mb, I have 3.4gb free space) and there are no restrictions whatsoever on my iPad - no blocks on App store purchases, no age-related restrictions, no country restrictions etc.
Normally from the App Store page you would tap the price (in this case the app was free), enter your iTunes password, and the app would download.
Also a new icon appears on the home screen and a circle shows the progress of the download.
However this did not happen.
Instead I have the Cloud icon (the one that shows when you have bought an app but it is not currently installed on your device) and a message that says "You've already purchased this, so it will be downloaded now at no additional cost".
If I press OK I am then prompted to enter my iTunes password, the Cloud symbol briefly changes to a circle (and I mean for a split-second, like the blink of an eye) and then the Cloud symbol appears again.
The app does not download - in fact it does not even *attempt* to download.
I have tried this >20 times now and it always occurs excatly like this.
After Googling this problem (which seems common) and reading over a dozen threads on this forum plus Apple's own official support pages, this is what I've tried:
I can re-download other apps that I have previously purchased on this iPad, with no problems.
I purchased another app on my iPhone 5 and was then able to download onto my iPad with no problems.
I have reset my iPad >5 times - both by pressing/holding the home/power buttons, and also a full switch off and restart.
I have logged out of my iTunes account on the iPad, and logged back in.
The wi-fi is Virgin Media fibre optic broadband with a verified speed of 20 meg (confirmed by Speedtest) plus an 802.11-n Belkin router and my iPad will happily load web pages, stream videos on YouTube, download other apps etc.
I have reset/rebooted my internet connection
In an attempt to eliminate by broadband connection from the possible causes, I have switched off my router, linked my iPad to the hotspot feature on my iPhone and tried to download the app over cellular data, but still cannot download the app.
I have tried on 2 other wi-fi networks but still cannot download this one app.
My iTunes account has a cerdit balance from an iTunes card, but the app was free anyway
Nothing I try will download the app in question.
The app is iPad only, so I cannot install on my iPhone to try and kick-start the process.
I guess I could install the app on my computer and then sync the iPad, but that's *working around* the problem - it's not *fixing* the problem.
(Since getting the iPad I use almost never use my computer. And anyway what if I did not have a computer? Didn't iOS go "PC-free" with version 5?)
I would like to call Apple but my 90-day telephone support has expired (the iPad is around 6 months old) and I don't want to buy Apple Care for this one problem.
I can't make it to an Apple Store to speak to a Genius.
Bearing in mind the list of things I've already tried, what do I do next?
Thanks in advance for any support.Hi there.
Thank you very much for your quick reply, it's really appreciated.
No need to apologize, I actually found the phrase "If your iPad ever craps the bed" amusing under the circumstances
I checked the list of installed apps like you suggested (Settings>General>Usage>Storage>Show all apps) but this problem app is not in the list. I have also swiped down on the home screen to search for it, but again it does not show.
While it has not let me download the app (and I just tried it again) it has helped me to eliminate a few things from the list of what to try, and I can definitely conclude that it has not downloaded.
I guess I need to fire up my PC and download it / sync my iPad.
Thanks again for your help -
Randomly while scrolling, the screen just goes beserk and gets stuck with random colored lines. And, the only way to get rid of this is to restart my entire computer. My laptop is about 3 years old now. Is this a sign of age or what? What can I do to run my laptop smoothly without turning it off and on every time it goes crazy?
Try resetting PRAM and SMC.
Reset PRAM. http://support.apple.com/kb/PH4405 x
Reset SMC. http://support.apple.com/kb/HT3964
Choose the appropriate method.
"Resetting SMC on portables with a battery you should not remove on your own". -
Hello, Im trying to upgrade Imovie and whatever app are about to update in the future, the problem is the my Imac is stuck with an old email on the APP store. I try to change it and nothing happen, when I put my apple ID it send me to change the password and what Im trying to do is to put my new email in the system so would be able to update my computer. You know when you press the update button a little box drop with your email and all you have to put is your password thats where my old email is stuck pls someone help me with that little problem i'll appreciate it... thanks
An Apple ID isn't necessarily "linked" with your email other than for recovery reasons. So, as long as you know the Apple ID password, an old email isn't catastrophic. Apple ID != e-mail.
Now, if it's really bugging you and you really want to change it, if you log in to http://appleid.apple.com and change your primary email address, this should update your Apple ID. There will be a couple hoops involved with this (i.e. verification of email change by sending email to rescue/alternate email. Alternate email can't be the same as the new primary. The new primary can't have ever been used as/with an Apple ID. etc...). -
iCloud backup is unable to access my account, because email I used for iCloud account is been deleted. And my iPad is stuck with this note on a screen, can't go Settings. How do I delete or edit my iCloud account?
You can eirther I think go on ITunes or if you can get to settings you would just go to iCloud.
-
My Ipod is stuck with a picture of a USB chord with an arrow pointing to an itunes logo....what is this and how do I fix it? I did look at the "printers and devices" section on my computer. It shows an un identified "apple" device that is in "recovery mode" but that is. I tried to trouble shoot it there but no help....
Connect to iTunes on the computer you usually Sync with and “ Restore “...
http://support.apple.com/kb/HT1414
If necessary Place the Device into Recovery mode...
http://support.apple.com/kb/HT1808 -
i just wanted to restore from 6.1 to 6.1.1 on my iphone 4s and itunes gave me an error -1 and know it doesnt work i dont know if the warranty from 1 year of apple can fix it or what i can do to solve the problem... as i said i just wanted to update and know im stuck with the restore logo ( the itunes logo and the cable) need some help please!!!!
no so i dont know what happened
-
Stuck with a message on the touch screen - checking device
This is an officejet 8500 wireless - the computer OS is Vista 64
The touch screen on the printer is stuck with a message that says "checking device" I cannot cancel or stop unless I unplug the printer. This occured after a paper jam.First, make sure there are no little pieces of paper left in the printer. This document can help you check it out:
Paper Jams.
If you still get the message on the screen, pull the power cord out while the printer is turned on. Wait 15 mseconds. Hold down the # and 6 keys on the front while you plug the power cord back in. This should reset the printer and, with luck, will clear the message.
I am an employee of Hewlett Packard.
- - Please mark Accept As Solution if it solves your problem so others can more easily find the answer - -
- - Please click the Kudos star if you would like to say thanks - - -
ASR Hyper-v (VMM) to Azure and we are stuck with this error while preparing the VMM Server
We are stuck with this error while installing ASR provider and registering with Azure Vault, can i get some help on this
Error:
NO Vaults could be retried for the registration key. Please ensure that
1, your registration key has not expired.You can re-downloading registration key from Azure site Recovery portal
2, Your system clock is not out of sync with the selected system time zone
System Clock is set to IST and Azure to southeastasiaHi,
Could you please ensure that you have downloaded the latest registration key from the portal?
Also ensure that the machine from where you are accessing the portal and the VMM server has the right time according to your time zone.
Thank you,
Ruturaj -
i got my ipod touch 4th generation and when i first connected it to itunes it would say device found on my computer but on itunes it would say no device found so im stuck with the connect to itunes symbol on my ipod touch like when u first turn it on
Try here. Start with the one the best fits your symptoms.
iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows
iPod not recognized in 'My Computer' and in iTunes for Windows
iPod: Does not appear in Windows or iTunes and Device Manager is empty -
Ipod nano stuck with double arrows
My nano is stuck with the double arrows (rewind) showing in the upper right hand corner. When I press play the song is just stuck with the first note playing over and over
The first things to try are these basic troubleshooting steps.
The Five Rs.
Maybe you are looking for
-
hello guys , i made a java program using jni to call a Com file , this com file will return an xml string , i am supposed to read that xml string and parse it i made my code like the following DocumentBuilderFactory factory = DocumentBuilderFactory.n
-
Status of Cancelled invoice (Billing)....
Hi Experts, Where i will get the table of Cancelled Invoice (Billing) and field of ? YAB
-
I set up a router thru my ethernet port and now i am unable to get airport to work.
I recently configured a router connected to my Macbook Pro thru my ethernet port. I am now unable to use Airport at all! Ive tried Network diagnostics to turn it back on and it wont even recognize it , please help
-
Alrighty; I just purchased the iPhone 4s and last night was prompted to upgrade to IOS 5.1. After doing so, I noticed today any incoming calls from one of my contacts would not display the name (the number was displayed as if it was an unknown call)
-
Disallow non digit input in a text field?
Is there a class method in Java SDK to do this easily like in Visual Basic or has it to be coded completely manually? If the user presses a non digit character then that character should not be printed into the text field.