How can I change the X-axis increment in a waveformgraph

The X-axis always increments by 1, but I am acquiring one point of data every 100 ms. So my chart moves 10 times fater that the real time. How can I set my x-axis to increment 0.1 every time I add data to my Waveformgraph in VB net?
The X-axis collection is not showing any property to change that.
I have a continuous data acquisition giving me timed data at 100 ms rate.

Thank you for posting to the NI forums.  You can set the update increment of the WaveformGraph plot function by using the overloaded function as follows:
PlotYAppendMultiple( ByVal yData As Double(,),
   ByVal orientation As DataOrientation,  
   ByVal increment As Double )
I did this in the VB.NET example program, "ContAcqVoltageSamples_IntClk", by adding the following line to the dataToDataTable function.
WaveformGraph1.PlotYAppendMultiple(sourceArray, NationalInstruments.UI.DataOrientation.DataInRows, 0.1)
The increment will be set to 1 / (sampling frequency), so in your case, it will be set to 0.1.  This function is documented in the NI-DAQmx .NET Framework 2.0 Help.
I hope this helps.  Post back if you have any further questions.
Ed W.
Applications Engineer
National Instruments
Message Edited by Ed W on 05-04-2007 10:36 AM

Similar Messages

  • How can I change the Y axis to show my values in a descending order in Numbers. eg zero at the top and the maximum value at bottom?

    Hi,
    I'm just about getting to grips with Numbers, but I'm stumped at the moment with this problem.
    I want to show zero at the top on the (y) axis, as zero is the goal and 100 is the starting point?
    can it be done? i would really appreicate some help on this.
    Kind regards
    Rob

    Is it so difficult to read given answers ?
    Barry described the correct scheme.
    In the table "to_chart", the cell A1 contains :
    =ROUNDUP(ABS(MIN(Tableau 1 :: B:E))/10,0)*10
    The cell B2 embed the formula :
    =$A$1+Tableau 1 :: B2
    Apply fill down and fill to the right.
    On the left edge, the colored rectangle is a text block in which I inserted the label values.
    Of course if you dislike this scheme, you are perfectly free to use an other application.
    Yvan KOENIG (VALLAURIS, France) lundi 4 juillet 2011 14:37:56 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?

    When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisions, when using a range of 0 (outermost) to -80 (innermost).
    The magic 'magnitude axis subdivisions' variable seems to be generated in Calc Scale Specs sub-VI, and output as an array of clusters, but I can't quite see how it's created and from what.
    Please can anyone help me gain control over the number of magnitude division circles generated?
    Many thanks!

    I think if you go inside the Calc Increment.vi and modify the Increment output terminal it might change what you want to see. Try putting a multiply by 5 or ten into the case structure for when the log is false.
    Attachments:
    polar plot calc increment.jpg ‏90 KB
    modify calc increment.jpg ‏104 KB

  • How can I format the y-axis to display durations?

    How can I cause the y-axis of this chart to reflect the values in Row 6 [Average Pace (Minutes per Mile)] of the corresponding table in duration format rather than number format. In other words, I need the y-axis to be a list of durations appearing like the figures in Row 6. Also, I need it to begin with the longest duration (10:00) and to climb to the shortest duration (5:00) at the top. I'll should mention that I already tried using the Inspector, but the "Duration" formatting option for the y-axis was not selectable while other formats were. I also tried formatting the y-axis this way to "Same as source data," and this didn't cause it to display durations either, though I had expected it to. Thanks in advance!
    Ryan

    Hi Ryan,
    Numbers can display only numeric values on the Y axis, and those values are always arranged from highest to lowest, with highest at the top.
    That said, here's what is possible:
    There is, of course, some manipulation of the data involved in this, as well as replacement of the value axis labels with custom labels in a text box.
    Here's what's happenng with the man behind the curtain:
    While the chart shows the data from row 6, it is actually graphing the data from row 7 (or whatever row you choose to place this data in.
    Row 7 uses a formula ( =-60*24*STRIPDURATION(B6) ) to first strip the Duration from the data in row 6, returning a number representing the fraction of a 24 hour day equivalent to the duration in row 6.
    It multiplies that number by 24*60 to convert it to the number of minutes (and fractions of minutes) in the duration, and changes the sign of the number to - (negative) so that the shorter values will be higher in the chart.
    Selecting row 7 and choosing Line Chart from the Charts Button's  menu produces, with one difference, the chart shown after setting the min and max values on the Y axis to -10 and -5 respectively, and incrementing the number of steps on the Y axis from 4 to 5).
    The difference, of course, is that the Y axis value labels all show negatic=ve numbers, with no m to indicate they show 'minutes.' To correct this, insert a text box and enter the six numbers 5 to 10, with each followed by an m and a return.
    Select the Text box, change the alignment to Right aligned (with the alignment button in the format bar), then drag the box in front of the Value axis labels with the 5s aligned.
    In the Inspector, choose Text inspector, then Text. Use the Space after Paragraph stepper to increase the setting until the 10 in the box aligns with the 10 in the Value Axis labels box. You may have to tweak the height of the chart slightly to achieve this alignment.
    Select the chart, then choose the Chart Inspector, then Axis. Use Choose Axis Options (for the Value Axis) to uncheck Show Value Labels.
    Regards,
    Barry

  • How can I change the display of Inbox in my iPad's mail app- so that it takes up the full screen?

    How can I change the display of Inbox in my iPad's mail app- so that it takes up the whole screen, as opposed to just about one third; the other two thirds display the full text of the selected email?

    You can't change the display in the Mail app, if you are holding the iPad in landscape orientation then the left-hand third will be for navigation, and the right-hand two-thirds will be an email. If you hold the iPad in portrait orientation then the navigation section becomes a drop-down section.

  • How can I change the background of a running webpage on my own. Example Facebook I want to change its backround color from white to black just in my view not for all

    How can I change the background of a running webpage on my own. Example Facebook I want to change its background color from white to black just in my view, not for all. Cause I really hate some site with white background because as I read for an hour it aches my eyes but not on those with darker background color.

    You can use the NoSquint extension to set font sizes (text/page zoom) and text colors on web pages.
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • HT201361 Is it possible to save the screenshot files to a different folder than desktop. How can I change the folder?

    Is it possible to save the screenshot files to a different folder than desktop (that is the default). How can I change the destination folder? Thank you, Sal

    To change the screenshot capture location to a new place on your Mac, first think of a location that would serve you properly. We like to place ours in a "Screenshot" folder located inside of the User's "Pictures" folder. To change the location to this new location, open the Terminal and enter the following command:
    defaults write com.apple.screencapture location /Users/[u]/Pictures/Screenshots/
    Replace "[u]" with the name of the user on your system. Once you have entered this command, let's restart the screen capture utility by restarting the SystemUIServer by entering the following command:
    killall SystemUIServer
    You can optionally log out and back in instead of entering this second command, thus restarting the SystemUIServer. Once restarted, all screen captures taken from here on out will end up in your /Pictures/Screenshots/ folder in the User's home folder on your Mac.

  • How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    http://support.apple.com/kb/ht5621

  • When my husband and I first bought our iPhones, I was the only one with an Apple ID (since he never used iTunes). He used my apple id to get apps. Now he has his own ID, but my account keeps popping up on his phone. How can we change the ID on his phone?

    When my husband and I first bought our iPhones, I was the only one with an Apple ID (since he never used iTunes). He used my apple id to get apps. Now he has his own ID, but my apple ID email address keeps popping up on his phone when he tries to download an app. We do not want to have all of the same apps on our phones. How can we change the ID on his phone? I already tried going to Settings>iTunes &App Store> and changing the Apple ID to his account email and that did not solve the problem. To make things worse, I recently changed my Apple ID email address (without getting a new ID) and I do not remember my old password (and this is the address that is popping up on his phone). He does not have any music on his phone and all of the Apps that he has are free.  Any help you could offer would be great (-:

    All apps are forever tied to the Apple ID that bought them. To stop your id from popping up, you need to delete the apps on his phone, and then repurchase them under his account.

  • I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the "double click" defult to o

    I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the default to open an image with a double click in 4?

    You can associate files from the Bridge level and the Desktop level.
    In Bridge CS4, go to Preferences > File Type Associations and change it to Photoshop CS4 for the file types you want.
    If you want to open files from the Windows Desktop in CS4, these are the instructions:
    Do this from the Windows Desktop:
    If you want your image file to open in Photoshop and it doesn't, right click on it and choose
    Open with > Choose default program… select Photoshop CS4 or CS6 and checkmark "always use the selected program to open this type of file".

  • How can I change the password in the iBook donated to our nonprofit.  No password was given with the iBook?  We need to put in printer and other software.  Help, we can use the laptop without changing the password.

      How can we change the password in the iBook donated to our nonprofit?  No password was given with the iBook and every time we try to install items, the password window pops up.  We need to put in printer and other software.  Help! We can use the laptop without changing the password.

    If you did not get an OS X install-restore DVD with the computer you may need
    to buy one from somewhere, and you may be lucky to get a retail OS X 10.5.x
    version. The original grey-label install set of software and OS X it shipped with
    likely would be an older system than Leopard 10.5. Last versions of G4 Mac, &
    G5, shipped with a Tiger 10.4 system; so did early Intel-based Mac. Grey discs
    which accompanied other computer build models generally do not interchange.
    The last OS X version a PowerPC architecture can use, if supported, is 10.5.8.
    A PPC processor at 867MHz & faster should be able to run OS X 10.5 Leopard.
    {With the correct disc installer, you can use it to change a password and other
    things including re-install, and perform disk utility functions, etc.}
    There is a chance you may be able to get a white-label Replacement 10.4 DVD
    or Replacement 10.5 DVD from AppleCare or the online Apple Store (800myapple)
    from a Mac OS X system specialist; these have been available yet hard to get
    as not all persons involved with them seem to know if they still exist until someone
    is asking. These aren't retail stock, are special discs for computers who could use
    a system later than original old discs; these are complete install discs not for one
    specific series of Mac. Generally they'd work in supported PowerPC G4/G5; but
    do not replace specialized original install DVD, such as an early Intel mac requires.
    You'd need to have a serial number of the computer, and a method of payment
    when seeking some replacement system media from Applecare or Apple sales
    and these discs are not available in a retail store. The original Retail discs are
    labeled differently and shipped in a retail box with a big X on the front. Other
    sources for retail 10.4 Tiger or 10.5 Leopard may be online via amazon sellers
    or computer resellers who handle repaired Macs. Avoid mystery grey label ones
    that were intended to be sold and kept with their original computer kits.
    Good luck!

  • How can i change the email address for Icloud on my Iphone 4

    I have inherited my wife's Iphone 4 when she upgraded to Iphone 5.  The Icloud on the Iphone 4 is tied to her Apple ID.  How can I change the Iphone 4 to my Apple ID?  Thanks for any help.

    For iCloud you go to Settings>iCloud and sign out and sign in with your iCloud account.
    There are also many other setting that can be associated with here Apple ID like the following:
    - Settings>iTunes & App Stores (sign out and sign in)
    - Setting Mail
    - Setting Messages and Settings>Facetime Add your own ID/email address and delete hers

  • How can I change the name of item in TableViewController iOS

    How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
    //  ViewController.m
    //  Movie List
    //  Created by Damian on 20/02/15.
    //  Copyright (c) 2015 Tika Software. All rights reserved.
    #import "ViewController.h"
    @interface ViewController ()
    These outlets to the buttons use a `strong` reference instead of `weak` because we want
    to keep the buttons around even if they're not inside a view.
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
    @property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
    // A simple array of strings for the data model.
    @property (nonatomic, strong) NSMutableArray *dataArray;
    @end
    #pragma mark -
    @implementation ViewController
    - (void)viewDidLoad
        [super viewDidLoad];
         This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
        self.tableView.allowsMultipleSelectionDuringEditing = YES;
        // populate the data array with some example objects
        self.dataArray = [NSMutableArray new];
        NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
        for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
            NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
            [self.dataArray addObject:itemName];
        // make our view consistent
        [self updateButtonsToMatchTableState];
    #pragma mark - UITableViewDelegate
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        return self.dataArray.count;
    - (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateDeleteButtonTitle];
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
        // Update the delete button's title based on how many items are selected.
        [self updateButtonsToMatchTableState];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        // Configure a cell to show the corresponding string from the array.
        static NSString *kCellID = @"cellID";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
        cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
        return cell;
    #pragma mark - Action methods
    - (IBAction)editAction:(id)sender
        [self.tableView setEditing:YES animated:YES];
        [self updateButtonsToMatchTableState];
    - (IBAction)cancelAction:(id)sender
        [self.tableView setEditing:NO animated:YES];
        [self updateButtonsToMatchTableState];
    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
        // The user tapped one of the OK/Cancel buttons.
        if (buttonIndex == 0)
            // Delete what the user selected.
            NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
            BOOL deleteSpecificRows = selectedRows.count > 0;
            if (deleteSpecificRows)
                // Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
                NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
                for (NSIndexPath *selectionIndex in selectedRows)
                    [indicesOfItemsToDelete addIndex:selectionIndex.row];
                // Delete the objects from our data model.
                [self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
                // Tell the tableView that we deleted the objects
                [self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
            else
                // Delete everything, delete the objects from our data model.
                [self.dataArray removeAllObjects];
                // Tell the tableView that we deleted the objects.
                // Because we are deleting all the rows, just reload the current table section
                [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
            // Exit editing mode after the deletion.
            [self.tableView setEditing:NO animated:YES];
            [self updateButtonsToMatchTableState];
    - (IBAction)deleteAction:(id)sender
        // Open a dialog with just an OK button.
        NSString *actionTitle;
        if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
            actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
        else
            actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
        NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
        NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
        UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
                                                                 delegate:self
                                                        cancelButtonTitle:cancelTitle
                                                   destructiveButtonTitle:okTitle
                                                        otherButtonTitles:nil];
        actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
        // Show from our table view (pops up in the middle of the table).
        [actionSheet showInView:self.view];
    - (IBAction)addAction:(id)sender
        [self.dataArray addObject:@"New Movie"];
        // Tell the tableView about the item that was added.
        NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
        [self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
                              withRowAnimation:UITableViewRowAnimationAutomatic];
        // Tell the tableView we have finished adding or removing items.
        [self.tableView endUpdates];
        // Scroll the tableView so the new item is visible
        [self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
                              atScrollPosition:UITableViewScrollPositionBottom
                                      animated:YES];
        // Update the buttons if we need to.
        [self updateButtonsToMatchTableState];
    #pragma mark - Updating button state
    - (void)updateButtonsToMatchTableState
        if (self.tableView.editing)
            // Show the option to cancel the edit.
            self.navigationItem.rightBarButtonItem = self.cancelButton;
            [self updateDeleteButtonTitle];
            // Show the delete button.
            self.navigationItem.leftBarButtonItem = self.deleteButton;
        else
            // Not in editing mode.
            self.navigationItem.leftBarButtonItem = self.addButton;
            // Show the edit button, but disable the edit button if there's nothing to edit.
            if (self.dataArray.count > 0)
                self.editButton.enabled = YES;
            else
                self.editButton.enabled = NO;
            self.navigationItem.rightBarButtonItem = self.editButton;
    - (void)updateDeleteButtonTitle
        // Update the delete button's title, based on how many items are selected
        NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
        BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
        BOOL noItemsAreSelected = selectedRows.count == 0;
        if (allItemsAreSelected || noItemsAreSelected)
            self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
        else
            NSString *titleFormatString =
            NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
            self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
    @end

    Hey JB001,
    Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
    http://support.apple.com/kb/TS4062
    If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
    Contact Apple Support
    https://getsupport.apple.com/GetproductgroupList.action
    Regards,
    -Norm G.

  • How can I change the settings so when I delete an email from my iPhone it will also delete from my iPad.....very sick of deleting the same emails two times

    How can I change the settings wit mail so that when I delete my Verizon email from my iPhone it will also delete from my iPad too.... Seems like I shouldn't have to delete my email in three places...iPhone ..iPad ...and desktop

    Don't know which email host you are using, but if this is a POP account, you can't do it. If IMAP, then deleting one email should delete it on all other devices.

  • How can I change the pitch of a track?

    In Garageband 10.03, how can I change the pitch of a track?
    It seems that I somehow mistakenly changed the pitch of a guitar track I had recorded, so that al the notes in the track sound like they're about an octave too high.
    I don't know how I did that, and how to make the pitch slider appear so that I can try to lower the pitch.
    I saw three Youtube videos that show how to change a track's pitch by using the pitch slider, but none of them explain how to make the pitch slider appear.
    The pitch slider is supposed to appear in the lower, left corner of my window, but it doesn't appear in my window.  Instead the lower, left corner of my window says things like, Region, Notes, Time Quantize, Strength and Transpose.

    There's much to learn in Garageband!
    If you want a comprehensive introduction to the new GarageBand, have a look at Edgar Rothermich's book:
    Edgar's "GarageBand 10.0 How it Works"  explains it very well with many screenshots. You can buy it as iBook from the Book store, as PDF,  or as printed book from Amazon, Only, this version of the manual has been written for GarageBand 10.0.1, Some features have changed slightly since then.
    http://www.dingdingmusic.com/DingDing/Manuals.html

Maybe you are looking for

  • Problems opening

    I have just subscribed to Adobe CC and I have the following problems when opening RAW files. I open photoshop and the following actions: File> Open As and select Camera RAW from the drop down. I get this message: "Could not complete your request beca

  • HZ API Error

    I am getting the below error when trying to update customer account site using public api. This record in table hz_cust_acct_sites cannot be locked as it has been updated by another user I searched through metalink and could not find any solution. Ca

  • Can't Install Quicktime

    Whenever I try to install Quicktime (needed for itunes) I get the following error message: QuickTime Installation Failed: Error Code: -3 Can anyone help? Thanks!

  • How do I get the paragraph of a text object? (AS)

    Hi, I've used find grep to find some text items in my document and get something like this... text from character 3947 to character 3949 of text flow id 1662 of document xxx I want to work with the paragraph and the following paragraph that contains

  • Problems with tomcat 4.0.1

    hello, i�ve written some servlets using forte 3.0 with tomcat 3.2. everything works fine as long as I don�t run the servlets with tomcat 4.0.1. i use the request dispatcher / forward method - which dosn�t work reliable. it�s a list on which the user