How to structure a control and its display in the same while loop and same display panel (instead of display panel and a seperate parameter-setting panel )

As you can see, I need to adjust the Target position to certain value (like 1068.88), the actual position is showing 1066.99.  What kind of flow control structure will achive this goal?
Notice the Labview example "Vibration analysis"  may shed some light on this issue.  Will someone give out a simpler code to show how it works?
Attachments:
Spectrometer Control V3.0.vi ‏113 KB

lightblue,
Just to make sure we are on the same page, you would like to set the position, then monitor it.  Is that correct?  In that case, you might have a few options.  You could have a sequence that would set the position, and then a while loop that would monitor the position, however this wouldn't allow you to update anything else.  The other option would be to use parallel while loops, which would be similar to the parallel sequence structure you have below.  The only issue with this would be that if you are calling the driver from both loops, you could run into errors.  The Vibration Analysis.vi takes the setpoint, then calculates the actual available position, so it won't serve as a very good example, code-wise. 
Hope this helps!
Andy F.
National Instruments

Similar Messages

  • How can I make multiple PDF links open in the same second tab, instead of a 3rd, 4th etc.

    I am working on a project for my Universities 125 year anniversary.  Essentially I've created a 125 year long digital yearbook, with a link to the University's actual digital yearbook for each individual year.  I'm wondering if there is a way that I can make all of the yearbook links open in the same second page.
    IE:  Main Project open in a window,  when I click the 1939 Yearbook pdf hyperlink, the 1939pdf will open in the second window.  I then want to find a way so that after this, on the main page, I can click the 1940 yearbook pdf link and have the 1940 yearbook load on the second window, replacing the 1939pdf, instead of just opening the 1940pdf on a third new tab/window?
    Note: I have all of the yearbook PDF's online and downloaded, so I can make the hyperlink send you to the site, or do a download style thing. 
    Thank for any help, and if anyone needs further information just ask me!

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • How to keep the repeating table and all of its contents on the same page

    Hi All,
    I use 5.6 build version of xml publisher. My problem is about, repeating table in rtf is divided, so i want to keep the object and its contents on the same logical page.
    How it can be done?
    Thanks.

    I'm glad to hear someone who doesn't have this problem. I tried that to make a connection between my phone and PC, but then I am unable to accomplish that: it says (on my phone) how I'm not playing something... :@ I mean "WTF, it is a bluetooth...".
    I did disable the software from starting, but I is not all of the software - it is all around me: in main many, in control panel... And I can smell some other processes running!
    Also, the computer continues to restart it self for no reason, and it has to do something with installation of Toshiba BT...
    I will remove this thing from my PC even if that meant reinstalling operating system!
    No, I don't have Toshiba notebook... Maybe I had, if that was one part of the uninstalled components.
    I don't get it, it looks like Toshibas developers wanted to scr*w with us - why did they make it so hard to remove all of those components. The internet is full of peoples post who had the same problem as I do!

  • I am having trouble with resetting my ipad mini. I have been having it on reset for 2 hours already and its still on the same spot and not moving anywhere. How long does it usually take to restore settings?

    Anyone having same issue as mines please help me put. I am having trouble with resetting my ipad mini. I have been having it on reset for 2 hours already and its still on the same spot and not moving anywhere. How long does it usually take to restore settings? And how can i exot put of ot from restoring anymore?

    This is how you Reset  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    Are you trying to do a Restore?
    Restoring iOS software
    http://support.apple.com/kb/ht1414
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
    If you can’t update or restore your iOS device
    http://support.apple.com/kb/ht1808
     Cheers, Tom

  • How can i use the same front panel graph in more than one events in an event structure?

    i want to display the signals from my sensorDAQ in a graph.but i have more than one event in the event structure to acquire the signal and display it in the graph.the first event is to acquire the threshold signals and its displayed in the graph as a feedback.after the first event is executed, i will call the second event,where the further signals are acuired and compared with the threshold signals from the event 1.my question is how can i use the same front panel control in more than two events in the event structure?please answer me i'm stuck.
    Solved!
    Go to Solution.

    Hi,
    I have attached here an example of doing the same using shift registers and local variables. Take a look. Shift register is always a better option than local variables.
    Regards,
    Nitzz
    (Give kudos to good answers, Mark it as a solution if your problem is Solved) 
    Attachments:
    Graph and shift registers.vi ‏12 KB
    graph and local variables.vi ‏12 KB

  • How to place event callback components and "main-VI" components in the same Front Panel?

    What I'm trying to accomplish:
    Place a .NET component, which generates events, and other standard LabVIEW components in the same Front Panel. The standard LabVIEW components should be updated when events are being generated in the .NET component.
    How I tried to solve it:
    Problem:
    The event callback code must reside in a separate event callback VI. In order to "pass the event up" to the main VI I tried to use a global variable. The interrupt does occur:
    but I was hoping that the string indicator would be updated when the event occurred, but it wasn't.
    Questions:
    What's the best way to solve what I try to accomplish? If I want to solve the problem on the picture above, how would I do it (it may not be the best solution, but I'm still curious what's wrong)? Please feel free to be over-explicit when replying as I am novice LabVIEW programmer. Thanks in advance for any help.

    There are two bundle functions for creating clusters. The function simply called Bundle operates almost exactly like the Build Array function I showed. The type of the output cluster depends on whatever you wire in as inputs. You don't have to supply a specific type parameter.
    The function called Bundle by Name takes in a specific type of cluster in the top input and allows you to fill in the values of that specific type of cluster. To create the specific type of cluster you want, you need to create a cluster of string references. Here's how to do that:
    Go to the Front panel and drop down an empty cluster shell.
    Go to the Refnum palette and drop down a Generic Control Refnum. Now here's a cool trick to turn that generic refnum into a string-specific refnum (a so-called strictly-typed refnum). Grab a string from the controls palette and drag it into the Generic Control Refnum. Once you drop it, you'll see the refnum change its icon to display a string picture.
    Make copies of this string refnum (as many as you need) and add it to the cluster shell.
    Now, if you're making specific types of clusters to work with, now is the absolute best time to learn about typedefs if you haven't already. It will save you hours and hours (if not days) of development time in the future. Trust me!
    Jarrod S.
    National Instruments

  • TS3274 I play candy crush both on my IPad and my samsung android, how do I synch them so they both show the same results?

    I play candy crush both on my IPad and my samsung android, how do I synch them so they both show the same results?

    We went through the same drill.
    First, decide which computer you are going to use.  One or the other.  You can't have it both ways.
    Then plug in the 'foreign' device.   Do not let it sync.  Yet. 
    Give this device a new name in the left pane in I tunes so that you all know which device is which.  You will need to authorise the computer to the new I tunes account.  You will need to transfer any purchases to that computer.  You will need to upload any photos to the photo library.
    Then sync.   Each time you plug it, it will remember the specific device, the old on, or the foreign one, and bring up its own particular arrangement as a starting point.
    You will find that by checking the boxes, you can share apps, and music.   But when you go to do updates, if you are mingling apps, each user will need to know the apple password to get updates.
    We found it to be a little confusing, but once you get used to it, using the same I tunes for 2 different accounts works ok.
    Before you do anything, please make a full backup ofmthe original device.  If something gets out of hand, you can always revert back to where your were.

  • HT4623 I want to give my iPAD to my wife. How do I restore it to its out-of-the box status?

    I want to give my iPAD to my wife. How do I restore it to its out-of-the-box state?

    mbmessier wrote:
    ...  How do I restore it to its out-of-the-box state?
    See here  >  http://support.apple.com/kb/HT5661
    More info...
    ERASE / Clear All Data
    See  Erase your device  Here  >  http://support.apple.com/kb/HT4137
    Go to Settings > General > Reset > Erase all content and settings
    Also... See the wjosten post here...
    https://discussions.apple.com/message/20294697

  • I recently purchase an ipad2.  I also have a mac laptop.  Now, when I facetime call using my iphone to my ipad2 or mac, it states busy.  how can i fix this problem?  I have the same apple id e mail for both ipad2 and mac.  it might be getting confuse now.

    I recently purchase an ipad2.  I also have a mac laptop.  Now, when I facetime call using my iphone to my ipad2 or mac, it states busy.  how can i fix this problem?  I have the same apple id e mail for both ipad2 and mac.  it might be getting confuse now.  I want to be able to face time also using my ipad2 to my laptop especially if one of the members of the family is traveling.  Thanks.

    thanks.  your answer was correct, clearer.  I have another question, maybe you can answer.  I just purchase my ipad2 2 days ago.  yesterday, there was a sound.  today there is no sound.  there is a sound only in movies and you tube and music.  but no sound on all apps and keyboards.  I look it up and seems like ther are few that have this problem.  I called walmart coz I bought it there and they told me that they have not heard that before but if I can't fix it, just return it and exchange it with anew one since I have 14 days to do that.  I tried rebooting it and still won't work.  Should I just restore it?

  • I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    Try one of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • How to control 8 current sources in the same time with labview?

    Hi,
    I'm a French student who have to create a program which is able to control 8 current sources in the same time.the aim is to plug the currents sources in the input of a laser.
    If someone has an idea, it would be very nice to inform me !!!
    Thanks in advance.
    Nico31dcu

    Is it really Tektronik or is it Tektronix. Tektronix is a major test equipment manufacturer. I can't find any reference to that model number on their site, though.
    There are several resources for learning instrument control. One good place to start is http://zone.ni.com/devzone/cda/tut/p/id/4357.
    Assuming that you have a NI GPIB controller for the pc, you will be using the Instrument I/O Assistant or the VISA commands to send/recieve data from the current sources. Without having access to the programming manual, I can't give specifics on what commands you need to send. Your topic mentions controlling them at the same time. Truly simultaneous control is possible in only a few situations. If you have a couple current sources in the same mainframe, you may be able to send a single command to set them all. It will really depend on the commands that the vendor has implemented. With separate mainframes, you will send commands first to one, and then another, etc. Again, depending on what the vendor has implemented, it may be possible to sequentially program all sources to a ready state and then trigger all simultaneously.

  • How do I keep my I Mack to use the same Wi FI ( Mine) and not all the others?

    How di I keep my I mac to us the same Wi Fi (Mine) and not the others?

    Hi erniehobie,
    Welcome to the Apple Support Communities!
    If you want your computer to join only your network and not the others around you, please follow the steps in the attached article.
    OS X Mavericks: Choose preferred Wi-Fi networks
    http://support.apple.com/kb/PH13797
    Have a great day,
    Joe

  • HT2506 Is it possible to print separate pages on the same sheet in preview. I would like to split a set of class power points to display Page 1 and 2 on the first page, page 3 and 4 on the second page etc. Thanks in advance!

    Is it possible to print separate pages on the same sheet in preview. I would like to split a set of class power points to display Page 1 and 2 on the first page, page 3 and 4 on the second page etc.
    Thanks in advance!

    Nevermind everyone!
    I got it to work with Print Down/Across...silly me.
    Thanks anyway!
    -Arin

  • I let my iphone 4S die completely and after i put it on the charger it cuts on then cuts right back off and keeps doing so. i left it on the charger all night and when i woke up its still doing the same thing. please help

    i let my iphone 4S die completely and after i put it on the charger it cuts on then cuts right back off and keeps doing so. i left it on the charger all night and when i woke up its still doing the same thing. please help

    imanfromsweden wrote:
    Please apple support do you people have a convincing answer for us? Is there a solution? My phone is only 2 years old and was (2 hours ago), in top condition!!
    Please help....
    On belhalf of my fellow volunteers, the answer is, "We'll try our best." 
    My advice is to try not to treat this like it is a paid service provided by compensated professionals.  Ask nicely and one of the nice folks here might take some time out of their weekend to offer advice.

  • I was installing the new EFI software update on my macbook pro and I became stuck on the grey screen with the window that said "installing 2 items", its been on the same screen for 2 1/2 hours. does anyone know what I can do?

    As the title says.
    I was installing the new EFI software update on my macbook pro and I became stuck on the grey screen with the window that said "installing 2 items", its been on the same screen for 2 1/2 hours. does anyone know what I can do?
    I don't want to restart it because im scared that something might go wrong.
    operating lion

    LimitLess- wrote:
    Hi,
    I had the power supply connected when I attempted it previously but even so my problem occurred. My rom is different and so I still need to update it.
    Thanks
    I wanted to mark your answer helpful too but I didn't know that I could only put it for 2 answers. Sorry
    That was good advice by G-N and s/he is correct about it. Unfortunately, ASC allows only 2 "helpful" and 1 "correct" marks per thread.

Maybe you are looking for

  • Is it possible to crossfire intel HD graphics with amd radeon?

    Hi, I installed Win 8.1 on my Lenovo G510, after installing drivers i noticed that there are 2 graphic cards in the "Device Manager" (see below). I want to know is it possible to crossfire these 2 cards, if yes, how? And if no, do I need to uninstall

  • Selling ebooks to schools in bulk.

    This is more of a delivery question to the end user. I got a request from a school that wants to order my book for all their students in their class. Does Apple provide a mechanism for the school administrator in the iBookstore? I could sell the scho

  • Multi packages or single package? Which is good?

    we have a database (oracle 9) , 20-30 tables, we need create package, one suggestion is for each object create a package , each package have their own sp/function like new,delete,update... , thus will have 10-20 packages , another suggestion is creat

  • Buying a new Mac off eBay - Will the warranty be valid?

    Good Afternoon, I know this may not be the ideal place to ask - But maybe some people have wondered the same and know the answer?! Im looking to buy a new Mac - I've been a great deal for a new sealed  MacBook Pro with a Retina display. Will purchasi

  • Restarting Mac and Choosing Airport Network all the time

    Ever since a couple days, everytime I restart my Mac I have to select my Airport Network. It will no longer do it automatically for me. Can someone tell me what's going on, and how do I change it to have it choose the network automatically. Thank you