Tracking problem?

I am working with tracking problem. I am somewhat new to VC++. I have to take several data from the position sensor and read in the PLC and feed the data to the motor to run. That is fine.
But the problem arises when I receive the data from position sensor within a range between +5% of the standard value or -5% of the standard value. If the data value exceeds the range, I want an error message to pop-up.
How can develop this code in VC++?

Hi KRAZE4LV,
You could use an if statement to check whether the data is outside of the range or not. When the data is outside the range, you can then call the message pop up box. I've included an example link below for you reference.
http://msdn.microsoft.com/en-us/library/aa381915%28v=vs.85%29.aspx
I hope this helps.
Regards,
Josh L.
Applications Engineer
National Instruments

Similar Messages

  • Mighty Mouse Tracking Problems with Mac mini core duo

    I have a new Mac mini core duo (2GB RAM, 100GB HDD) and I'm having problems with my USB Might Mouse.
    The cursor stutters and doesn't track with the movement of the mouse and it will sometimes leap to a different part of the screen or get stuck at the last place it rested. At other times the mouse will track smoothly for a while before starting to stutter again. The behavior isn't consistent.
    Is anybody else having tracking problems?
    Any thoughts on what might be causing this behavior?
    iMac G5 20 & Mac mini 1.42Ghz, PB G4 1.67Mhz, Mac mini core duo   Mac OS X (10.4.6)  

    Hmm, this could be one of two things. Your mac might be faulty (Harware wise) which would suck. But, hopefully it is a problem with your drivers that need updating. Try these 3 options.
    1. Update you mouse driver.
    2. Update you video card driver (Video cards can sometimes affect mouse sensitivety -don't ask why)
    3. This is my last solution, before consulting a technician (For money if you can do it free talk to one!) or returning your mini: Try reformating/reinstalling Max OSX and if u have bootcamp check out wat happens to the mouse in XP check for the same problem if it doesn't happen in XP your hardware is safe. IF the problem continues after this... looks like your hardware is bad in that case i recomend a return or send back (If your on warranty).
    GOod luck,
    Wannabe

  • IMAC 27 - attached a second monitor - mouse tracking problem

    After attaching a 19 inch lcd via the mini display port and a dvi adapter my mouse tracking has gone bad, not just from one screen to the other even just on the main screen if you move the mouse around it jumps several inches and is very inaccurate. problem goes away when the second mointor is unpluged.
    Can anyone help?
    Stephen

    I'll add to the chorus: I have the 27" iMac, and I get the same mouse jumpiness when I connect my 24" Acer P244W display via the Mini DisplayPort-DVI adapter. Oddly enough, the mouse jumpiness is more pronounced when I use my old wired MS Intellimouse Optical than when I use the included Magic Mouse. I've confirmed with another Mac (and with this Mac minus the second display) that the wired mouse is functioning normally.
    Basically, given slow, constant mouse movement, the cursor will hiccough for about a tenth of a second once every 1.0 seconds, like clockwork. Given more normal use, the cursor will continue to hiccough every second and will also occasionally jump to a completely unrelated location on the screen. (The wired mouse was the worse off here, jumping unpredictably several times a minute.)
    I've unplugged the secondary display for now, but I kinda sorta really need it for Flash and video work. Apple, help!

  • Tracking problem with Bluetooth mouse..

    I recently changed batteries in my Bluetooth wireless mouse... I've done that many times in the past without incident... But this time something strange happened... I used to run the tracking speed setting at the second notch up from slow but now that is lightning fast. Even the next setting down, the first notch up from slow, is too fast... And the slowest setting is ironically too slow which means if I try to move the mouse across the screen at what I would consider a normal speed, the mouse jumps back left as I move right, meaning I am overwhelming the control system... The point is something changed and I can't imagine what... These new batteries are now down a notch from top power meaning they are not new anymore but still the lowest notch is too slow and the next one up is too fast... My real question is what could have changed?? I am running 10.4.6 and I don't believe I had changed anything other than the batteries from before to after the problem started... Any thoughts???? thanks... bob..

    Today I received a letter from Apple, a very strange letter that had no heading or address and didn't say "Apple", all it had was the Apple logo. But from the postmark on the envelope I could see it was posted in Cork, Ireland.
    The letter confirmed that they had received my proof of purchase and that they would arrange for me to be send a replacement.
    The letter said they had tried to call me but could not get through. This is FALSE. Anyone who ever calls me can always get through (although at times, they may get my voicemail). Nobody from Apple left any messages on my voicemail.
    The letter gave me a Case Number and said to call their "Technical Support Team".
    When I called the number they gave 0870 8760753 I was offered a number of options, NONE OF WHICH covered my reason for calling, so I chose the seemingly nearest option to it.
    I found myself talking to something with an Indian accent so thick and heavy that I could barely understand him, and I am used to Indian accents.
    He seemed very tired or sleepy; certainly on taking my call he seemed to be settling himself in for some kind of long haul.
    Very slowly and hesitantly he started asking me for all kinds of details about me. As I gave him each piece of information he asked me for, he kept interrupting during the process that that I had to repeat myself several times. I had to interrupt him to tell him I had a Case Number (he had not asked me for one).
    He took my Case Number , and paused for a long time, then said "well....Mr. -, this is about a Bluetooth Mouse, yes?"
    Brilliant.
    He seemed to think the pair of us were going to spend a long time negotiating about something.
    He said he would need to go and speak to his supervisor. I waited on the line for 10 (repeat TEN) minutes.
    He came back "Well, Mr. -....I need to check all your details".. including all my credit card details....very slowly and repeating everything twice.
    Several exasperating minutes later I THINK I had convinced him that he had all my details and that he needed to have a new mouse sent to me.
    He said that when the new mouse comes (THINKS...if it comes) via UPS, I must send the dead one back to them within 10 days or they will charge me for the new one. I said what happens if I don't (because this is the summer and I might be out of the country on holiday).
    "That is the procedure".
    I replied "so you have all the information you need now and you are going to send me the mouse, yes?"
    "yes".
    ---long silence---
    I said "IS that the end of the telephone conversation?"
    "yes."
    "OK thanks, goodbye"-
    MORAL OF THIS STORY:
    If you buy an Apple wireless mouse and it dies on you, consider if you really badly need to have it replaced by Apple. HOw much time do you have to waste?

  • LMS 3.2 and user tracking problem

    rme 4.3.1
    cm5.2.1
    cv 6.1.9
    dfm 3.2.0
    ipm 4.2.0
    portal 1.2.0
    cs 3.3.0
    cwasst 1.2.0
    running on windows server 2008.
    This was a clean bulid, and we imported all pertinent data from our old lms 2.6 server. This was in september 2010. Everything worked as expected and continues to work except for......
    We are in an upgrade cycle for our 4500s. We are upgrading from 12.2.50-sg4 to 12.2.50-sg8, and also upgrading rommon to 12.2.31r-sga4.
    It appears that user tracking is not working anymore for the upgraded 4500s. UT still runs, and works perfectly for all other devices, including the 4500s that have not been upgraded yet. I know this sounds goofy, but it really does seem to be the common denominator. I've checked the windows updates, package updates, etc in trying to figure out what made this happen. It really does all come back to upgrading to the above version. All aspects of this server are running great and as expected, it's just that UT for the upgraded 4500s isn't working anymore. I do run the logbackup script weekly (past experience has taught me to do this), and try and keep up with any patches or package updates, etc.
    If anyone has seen something similar or can suggest anything, I'd appreciate it. I think I am going to have to open a case on this. Thanks - chris

    Michel,
    Indeed, it looks like that is the problem. I guess I was focused in on CW rather than the whole picture. But yes, indeed, if I walk the mac table for a vlan on a 4500 that has not been upgraded it works. If I do the same on an upgraded one, I get nothing.
    The cautious optimism is that we do have a sup6 at our DR location that is running 12.2.53-sg1 and this test works on that switch. So as long as that
    version isn't deferred, we'll test that on one of the older sups to verify.
    So thanks for the help, I appreciate it - chris

  • M-Audio M-Track problem with Mainstage 3.0.2

    I recently purchased an M-Audio M-Track and wanted to use this to input guitar tracks into Mainstage 3.  However, when I try, it does not recognize any inputs.  The M-Track is working fine, because I can use it without any issue with Mainstage 2 and it also works fine with Ignite.  I have seen other entries in the forum for with the same issue for the Fast Track.  For the Fast Track, it appears that the problem was fixed with new drivers.  However, there are no drivers for the M-Track.  Has anyone been successful in getting 3.0.2 to recognize inputs for the M-Track?

    Hello, crosbygs. 
    Thank you for visiting Apple Support Communities. 
    Here are a couple resources I would recommend going through for this issue. 
    MainStage 3: MIDI devices overview
    http://support.apple.com/kb/PH13519
    MainStage 3: Audio preferences
    http://support.apple.com/kb/PH13675
    Cheers,
    Jason H. 

  • Order of Imported MP3 Audiobook Tracks Problem

    I buy audiobooks from audible.com and want to burn the entire book as a MP3 as my car CD player will play MP3's. Since you can't download MP3's from audible, I bought a program that burns virtual CD's on the Mac HD and then converts the CD to MP3 files. It works fine, but when I import the MP3's into iTunes to burn to CD, the order of tracks is completely scrambled. The tracks end with sequential numbers, but iTunes apparently ignores those numbers. The tracks are in sequential order when I import them into iTunes.
    The last book I did had 123 tracks and it was a royal PITA to manually put them in sequential order in iTunes.
    Is there any way to force iTunes to order the tracks based on the ending sequential number or to follow the same order they are in when imported?
    Thanks,
    MIKE

    I do burn from an iTunes playlist. The problem is that when I drag the converted files into the playlist the order of the tracks is completely scrambled.
    Is there a way to tell iTunes to look at the last number in the file (track) name and sort sequentially?

  • Exporting tracks problem?  Help? Big problems.....

    I have a project with 14 narration tracks. I am trying to export each track seperatly.
    I was told all I had to was "solo" a track and export to iTunes. One by one, I did this for each track.
    Heres the problem. The fill size for each track is the size of the entire project. Meaning, 1 ten minute track exports into iTunes as a 92MB file?
    The other problem the length of the tracks gets all messed up. I THINK each track even if only 4 minutes long runs the length of the longest track in the project.
    Any ideas on how to export each tracks seperatly at the tracks OWN size and length????
    Thank you!

    Heres the problem. The fill size for each track is the size of the entire project. Meaning, 1 ten minute track exports into iTunes as a 92MB file?
    uncompressed audio, takes about 10MB/Minute, so that is exactly as it should be. To make it smaller, convert it to an Mp3 or AAC file (both are compressed formats)
    http://www.bulletsandbones.com/GB/GBFAQ.html#converttomp3
    additionally, if you show the Podcast track, GB will export an AAC file, so it will already be compressed (these are more in the area of 1MB/minute
    Any ideas on how to export each tracks seperatly at the tracks OWN size and length????
    Drag the End of Song marker from the end of your project, to where you want it to end.
    http://www.bulletsandbones.com/GB/GBFAQ.html#eos

  • Multiple Video Tracks Problem with Back Button

    Hi,
    I am making a DVD that has to contain 16 films. Unfortunately the videos don't have the same aspect ratios, so I have to create one video track for each film.
    When the DVD is started they are supposed to play all in a row (no menus). So the end action for each track is to jump to the first chapter of the next track.
    My problem is that once I am playing, say, track 5, there is no way to get back to track 4 with the "back button" on the remote control.
    Do I have to script this? And if yes, how?

    That is exactly my problem. Chapter markers only work on the same track, for some reason you can't jump to a chapter in a different track. What I need is a solution to jump from a track to the previous one when pressing the back button on the remote.
    As I wrote before I can't use just one track for all films, because they have different aspect ratios.
    Message was edited by: schmiddl

  • I have music from old cassettes in Itunes - Track  problem

    My problem is, I have music from old cassettes that I transferred to computer.  Put into Itunes without track#s, but say the name of album song 1, album song 2, etc.   In the SONGS list it shows all songs in ORDER.  then when I click the same in ALBUM setting it shows the music - songs in jumbled order.  is there a way to correct this other than going to GET INFO and hand typing a Track # in for EACH and EVERY song??????  I have tons of music transferred ARRRGGGHHH!!!!   so basically if I go to SONGS list I'm OK, but if I have album covers up on Ipod, then hit it will play songs in wrong order.

    Yes, same thing. But they need to be compatible with apple tv, just because they play in iTunes doesn't mean they will work on ATV. See below
    H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • Edit Track Problem

    Whenever I edit a track (especially when adding album art) the song becomes either stretched or shortened by a few seconds. I have the latest version of iTunes and have even reinstalled it but that didn't help. I also tried searching for viruses but my pc is clean. This is a real problem because I cannot edit the song info without ruining it completely. Does anyone know how to fix this? Thanks for your time.

    But you can add all kinds of mastering effects and tweaks to Electric Guitar tracks! Here's how:
    Select your track, and in the edit pane double-click the amp you're working with - the amp will 'turn around' to reveal the back of the rig. Beneath that graphic on the screen looks kind of like the back switch-plate on an amp; click the 'up' arrow and it will raise to reveal an area - very similar to the Edit tab in any Real Instrument browser - where you can drop effects and adjust at will.
    It's an awesome feature - go nuts!

  • Wireless Mighty Mouse Tracking Problem

    I'm finding that sometimes my mighty mouse is not tracking downwards.
    During these blips it will still tracking left / right and upwards.
    When this happens, I can feel that the 'wheel' is not engaging the internal mechanism that drives the scrolling / tracking. After sometime of operation the mouse starts tracking again and I can physically 'feel' that the 'wheel' is engaging the internal mechanism.
    Does anyone know if this is a common problem, does hte mouse need to be cleaned inside? Do I need a new one??
    Luke

    Hi
    There are many threads on this but here's Apple's advice:
    http://docs.info.apple.com/article.html?artnum=302417
    Steve

  • Duplicate track problem w/ Sheryl Crow's Wildflower

    Late last month I pre-ordered Sheryl Crow's new album, "Wildflower," on the basis of an alternate (acoustic guitar?) version of the song "Always On Your Side" being included. I just discovered today that both tracks are identical. I went to my account purchase history to see if there was any information there but it only shows that I downloaded one version of the song. Anyone else have this problem or am I imagining things? Unfortunately I cannot find any of the information I had showing this special version being included in the pre-order.

    Okay I wrote a message to iTunes support documenting this issue. Here's the response I got, which seems to suggest that my problem has to do with not having the most recent version of iTunes (which I do have). It doesn't appear that they even read my email:
    Dear Customer,
    Thank you for your interest in buying music from the iTunes Music Store. To buy music from the iTunes Music Store, you need to upgrade to iTunes version 4.9 or later. You can download the latest version of iTunes at no charge from our website.
    http://www.apple.com/itunes/download/
    If you're using a Mac, you'll also need to upgrade to the latest version of QuickTime to watch video previews or purchased videos.
    http://www.apple.com/quicktime/download/
    If you run into trouble with the installation, here are some articles that may help.
    Mac: http://www.info.apple.com/kbnum/n301349
    Windows: http://www.info.apple.com/kbnum/n93976
    We hope this helps get you up and running. If you continue to have trouble downloading or installing the upgrade, please email us using the form at the bottom of this page.
    http://www.apple.com/support/itunes/musicstore/download/
    Sincerely,
    The iTunes Music Store Team
    http://www.apple.com/support/itunes/ww/
    Now what do I do? Is there a phone number to speak to a real person at Apple? Help!

  • Rewire track problem

    I've got Logic Pro 7.3, and I've never had to create a rewire track before. Now that I've tried, I'm simply met with the message "No more tracks available". This is not different when I create a new project or start up an old one.
    Has anyone met this problem and solved it?
    I have been told, that I can use fxpansion guru through a rewire track from a friend of mine who uses cubase. I assume that it is the same in logic?

    Here goes Ayers Rock,
    Logic has three types of Tracks that are commonly used in production
    Audio-Midi-Audio-Instruments and a Fourth Rewire, not sure as what the big difference is on the Rewire compare to the Audio-Instruments,
    However for a Rewire i would chose create Multiple-Tracks and choose what ever track you want to create as some time L.P. won't allowed you to create another track if its not set-up properly in
    Logic-Set-Up Assistant
    for the amount of tracks you would like to used in your Recording-Session..
    Fr.BlayZay.

  • Track problem

    I am using JMF and experimenting with different types of files. My problem is that when I run getTrackContols() on the processor, there are never more than 1 tracks. even when i know the file has audio and video in it.
    I've looked at the demultiplexer, and no idea if its what i need or how to use it.
    any suggestions welcome
    cheers

    Its imposible. Post your code.

Maybe you are looking for

  • Itunes can't locate the music I added to the library?

    Hi I have uploaded my music to Itunes but the program can not find the the music even though displayed in the library. Also when I add some music to my ipod itunes decided to remove some of the other music which is now gone too. Any Ideas? Thanks, St

  • How do I delete a huge number of duplicate albums from my itunes for mac library?

    I have a huge itunes music library, over 900 GB, and as it turns out I have a huge number of duplicate albums.  Is there a way to automatically get rid of the duplicate albums so I am left with only one of each?  If not, what is the best way to ident

  • When to use the -clusterable extra rmic option?

              Hi,           We are trying to do a clustered deployment on the WLS 701. I am trying to figure           out all the things that need to be on for clustering to work successfully. Currently           I am focused on the EJBs. Here is what I

  • Setting Tabs in Dreamweaver CS 5.5

    I am a new user of DW.  How do I set tabs in DW?  When I follow the instructions (Edit/Preferences/Code Format, etc.), nothing changes in Design view, or when I look at the HTML page (using the F12 key).

  • Setting background transparent

    How do I set the background of an existing graphic to transparent?  I am using Photoshop Elements 9.