How do I create an xy chart using two independent while loops?

Hi everyone,
I am trying to develop a data acquisition program. In this program, I have two independent while loops that each output a number of type double each iteration of the loop. I am able to successfully create two independent waveform charts (data vs. time) for each of the loops when it is placed inside. However, I now want to create an xy chart of the live data (the output of one loop is x and the output of the other is y).
I am having trouble doing this because of the separate nature of the loops...when I try to pull data outside of the loops it (naturally) doesn't refresh with each loop iteration causing the xy chart to not work in the way I intend. Is there an easy way to fix this? If more clarification is needed, please let me know!
David
Solved!
Go to Solution.

Yes, more clarification is needed. Please attach your code to clarify.
I'll take a wag at it, though. It sounds like you are trying to pair X and Y data which happen during a single time chunk, then repeat, is this right? (If not, don't bother to read on.) If so, why not just use a single loop. If your VI is getting too big/complicated for comfort, just put the data-generating stuff into subVIs which run to generate a single data point, then stop, put them into a while loop and send the putputs to a graph or chart inside the loop. That way you won't extend your data trace until you get one and only one point from each subVI and things will stay synchronized.
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • How do I create a seesaw chart using keynote?

    I'm currently not having much luck in finding any sort of template or chart/diagram format which will allow me to do this. Does anybody know of any apps that might help or of anywhere I can download a template?
    Thanks

    Microsoft Excel

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • Purchased a second iphone need to create an account, however the computer already has an itunes account...How do I create a second  account using one copy of itunes on a computer??

    Purchased a second iphone need to create an account, however the computer already has an itunes account for the first iphone...How do I create a second  account using one copy of itunes on single computer??

    Why do you need a new account?
    Use the same account on both.
    How to use multiple iPods, iPads, or iPhones with one computer

  • How can I create a new label using Pages and Avery Labels products?

    How can I create a new label using Avery LAbels and PAges on an imac?

    Contacts prints to Avery labels.
    Otherwise just open the appropriate Word template from Avery's website, in Pages.
    Peter

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How do I get an XY Chart to display properly while using embedded loop

    s to periodically read multiple channels of similar data? (multi-Y versus specified time) The plot just becomes a point or a single plot of all values taken at one scanning of all channels. I want multiple plots over time updated at the time of scanning.I have also stored my data in a daily text file that is tab delimited. The text files consists of a row of text column headers, a blank row and then rows of data. The data rows are mixed data types. The first column is a date/time such as Mar 1, 2002 12:01 pm. The remaining columns are numeric data. I can't seem to get my data to plot properly in an XY chart from memory and am having problems parsing the data with mixed data types in the data r
    ows. The format I am using works great for viewing the history files in Excel.
    When I plot the data, I either get a single point or a a series of points for a single reading of all channels or I get a line connecting all data for that single scan reading. What am I doing wrong? At this point, I don't care if I read the data from the file to plot it or if I can just get Labview to plot correctly as the data is gathered without going to the history file.
    As noted in the summary question, I have embedded loops in my applicaiton. I have a while-loop that determines the scan rate and keeps the program running until it is turned off. Inside of that, I have a for-loop (in a subVI) which scans all my data channels.
    Thanks for your help.

    s to periodically read multiple channels of similar data? (multi-Y versus specified time) The plot just becomes a point or a single plot of all values taken at one scanning of all channels. I want multiple plots over time updated at the time of scanning.XY plots expect a cluster containing two 1D arrays for the X and Y
    coordinates of the individual points. If you want multiple plots you can
    supply an array of these clusters but you have to resupply the "x" array
    for each of them.
    Hope that helps,
    Rudolf
    Adrien wrote:
    : How do I get an XY Chart to display properly while using embedded
    : loops to periodically read multiple channels of similar data? (multi-Y
    : versus specified time) The plot just becomes a point or a single plot
    : of all values taken at one scanning of all channels. I want multiple
    : plots over time updated at the time of scanning.
    : I have also stored my data in a daily text file that is tab delimited.
    : The text files consists of a row of text column headers, a blan
    k row
    : and then rows of data. The data rows are mixed data types. The first
    : column is a date/time such as Mar 1, 2002 12:01 pm. The remaining
    : columns are numeric data. I can't seem to get my data to plot
    : properly in an XY chart from memory and am having problems parsing the
    : data with mixed data types in the data rows. The format I am using
    : works great for viewing the history files in Excel.
    : When I plot the data, I either get a single point or a a series of
    : points for a single reading of all channels or I get a line connecting
    : all data for that single scan reading. What am I doing wrong? At
    : this point, I don't care if I read the data from the file to plot it
    : or if I can just get Labview to plot correctly as the data is gathered
    : without going to the history file.
    : As noted in the summary question, I have embedded loops in my
    : applicaiton. I have a while-loop that determines the scan rate and
    : keeps the program running until it is turned off. Inside of
    that, I
    : have a for-loop (in a subVI) which scans all my data channels.
    : Thanks for your help.

  • How can we create dynamic pie chart in jsp

    hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp

    http://sourceforge.net/projects/jfreechart
    - Saish

  • How to create a unique key using two or more attributes?

    how to create a unique key using two or more attributes ?

    The following example illustrate how to create a unique key using two or more attributes/fields
    Scenario: Implementing Unique Key on ManagerID & Location ID in DepartmentEO(Department Table)
    Step#1: Open the Desired Entity Object “DepartmentEO”. Go to Overview tab & Click “General” Finger tab.
    Step#2: Expand “Alternate Keys” section & click “+”.
    Step#3: In the Pop-up wizard, Enter a name for alternate Key “Unique_Manager_X_Location”.
    Step#4: Select the desired attributes/fields from available list & Shuffle to right side.
    Step#5: Now go to “Business Rules” finger tab.
    Step#6: Select “Entity Validators” in the list & click “+” to add a new entity level validation rule.
    Step#7: In the Pop-up, Select “Rule Type” as Unique Key
    Step#8: In the “Rule Definition” tab select the key “Unique_Manager_X_Location”created.
    Step#9: Now go to “Failure Handling” tab, and click the Magnifier Icon .
    Step#10: If the key is not already created then in the “Select Text Resource” Popup, Using the functional design document, Enter display value, Key and Description. And click “Save & Select” Button.
    Step#11: Now Click “OK”.

  • How do I create a single image using PSE12 from multiple originals where each original is still separate?

    How do I create a single image using PSE12 from multiple originals in which the originals are still separate (i.e. side by side or arranged in a square)? I could do this in PSE2, but can't find how to get PSE12 to do it.
    Grecophile55

    In PSE2 there was a single photo-merge. I browsed all my images and I could then click and drag each to its new position before saving. There doesn’t seem to be a similar facility in PSE12.

  • I need to know how I will create a dynamic website using php and mysql

    I need to know how will I create a dynamic website using php and mysql that people could have the abilities of registering in the website, and modify their profile where they can add their pictures and everything. apart from that, they should have the ability to search about other member. hope to here more from you.

    If you are a right-brained creative, and have no previous experience or propensity to be able to understand coding and database "stuff", and/or if your time can be better spent on other skills, I recommend you save your sanity and hire a developer... or at least the first time around. I have been attempting to grasp this for years... and have a library of marked up books to prove my efforts, all while trying to keep up with an ongoing client base that is always cramped. It's a wonder I still have my sanity... then again, I might not be the best person to determine that. Others might question it.
    That said, I still plan to master php... one of these days.

  • How can we create such navigation buttons using Flash CS4?

    Hi,
    How can we create such navigation buttons using Flash CS4 is in the following website? Please help me with any such tutorial to make my custom navigation bar/buttons.
    http://city.reallusion.com/join.html
    Thanks.

    While the Note 4 is a reasonably large device it still falls into the phone layout bucket. We need this layout to function on very small screens some as low as 320 pixels high and 240 pixels wide. These sorts of devices don't have the space for a full toolbar.

  • How can we create an entity object using multiple tables?

    Hi All,
    I'm a newbie to OAF.
    I'm trying to create a simple page using OAF.
    While creating Entity object, there is an option to add the database objects from which we can create our Entity Object.
    There we can enter only one database object.
    If suppose I need to create a Entity object by using mutiple data base objects, how can I add other database objects?
    Is there any option for multiple selection of database objects there?
    Thanks in Advance

    User,
    a). You should use the [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for this question.
    b). Entity objects always correspond to a single table. I think you want to create a View object instead.
    c). Really, you want to be using the OA Framework forum.
    John

  • HT2589 how can i create apple id without using credit card details ?

    how can i create apple id without using credit card details ?

    @Limnos - that doesn't work anymore. There is no NONE option. I've been at it for hours trying to set up my daughter's account. I've tried creating and verifying an appleID on the web, on her touch...everything. Every single time you get to the stupid Touch, it wants to walk you through the verification of the account and it demands payment (even for their suggested apple Remote method listed in the KB).

  • How can I create a Online Store using Muse? (with not Business Catalyst)

    How can I create a Online Store using Muse with not Business Catalyst for example three services
    _ttps://orders.self-pub.net/checkout.php?m=fastcheckout
    _ww.self-pub.net/services/covers.html

    Hi,
    Unfortunately there is no option stand alone in Muse to create an online store. However if any hosting plan uses CMS feature like Business Catalyst and ecommerce using modules and tags, you can use the same proceedure as for Business Catalyst and integrate that system and host the Muse site on their platform and that would work.
    There is other thing that you can try is, Insert HTML codes to link the pages and some contents in Muse to your desired CMS. What you can also do is after you create the site in Muse, you can export the Muse site and get the layout and design of your site and copy paste the codes for pages with some HTML and coding skills to integrate with your desired hosting.
    Hope this helps.
    Regards,
    Rajan

Maybe you are looking for

  • I can not open the file in Photoshop...

    I can not open the file in Photoshop after formattatto pc. I get the following error "could not complete your request because there is an error in the program Please me! Thank you

  • How can I Migrate a Segmented Chart of Account with DTW?

    Hello. If anyone could help me to solve this problem I would be most gratefull... The templates installed in SAP Business One under the DTW folder do not include a segmented chart of account template, so I would like to know how can I transform (if t

  • Missing album art work in cover flow mode

    why would i have a missing album in cover flow mode on my ipod classic, but be able to see the same album in itune on my computer. it does shows up under artist catagory, just not cover flow. i have deleted the art work and re copied it, re synced an

  • How do I post a message?

    Each time I click on Post Message I get a "You can not post a blank message.  Please type your message and try again.

  • 5800 XM Mini-QWERTY and handwriting not available ...

    Hi, just got the phone two days ago, and am really loving it. Some bugs as is expected of such a new product, but on the whole a really nice piece of kit especially for the price. One problem though came up after I updated to the newest firmware, V 2