How to appropriat​ely set the timing in sampling multiple AI channels applicatio​n

Hi, I'm new to LabView. So any help is appreciated.  I have the PXI-8186 with the M-series PXI-6229 that I use to control/monitor multiple independent systems.  my program can be described as follow:
I have only one VI.  In the VI, I have as many While loops as the multiple independent systems being monitored.  Inside each While Loop I have a DAQmx VI that I configured to sample only one channel 100 points at 1000 Hz sampling rate . (I'm sorry if it's too verbose, but I don't know if some of the things I said are implied or not).  The Clock Type setting in the DAQmx Advance Clock Setting is set to "Internal".  Then, I connect each DAQmx to a Waveform chart in each While Loop.
When I run the VI, there's an obvious "lag/gap" between each sampling set in each of the chart, i.e. one 100 pts of data to the next 100 pts of data.  The gaps are with irregular period,  almost like there's struggle of computing power between the while loops/channels. 
My questions are:
1.  Are my program architecture (parallel architecture) appropriate for what I'm trying to do in my application?
2.  Are the gaps caused by inappropriate Clock Type setting?  or are they caused by inappropriate channel-scanning setting?  How do I fix the problem?  My goal is to have each chart "draw" the data as smooth as if it were only sampling one channel.
3.  How to set how fast the M-series is supposed to jump from one channel to the next?
4.  The M-series user guide has very little information in regards to Timing/Clock.  Can anybody point a good reference so I can learn more about it?
Again, thanks for the help.

Hi Peter-
It sounds like you are off to a good start with LabVIEW and NI-DAQmx.  Let me see if I can address your questions:
1.  The parallel architecture is not appropriate for DAQ operations.  The card can only run a single input operation at a time, so you are sacrificing task setup and programming time by seperating your tasks into seperate loops.  The NI-DAQmx driver will also create an error and will not operate further if there is conflict between parallel loops in trying to access the analog input circuitry of the board at the same time.  You would be better advised to combine all the operations into a single loop.  It sounds like you're using the DAQ Assistant, so it shouldn't be hard to simply add more channels to a single DAQ Assistant Express VI.  I have attached a quick example that shows how to split the outputs to multiple graphs
2.  The gaps are likely caused by the occurrence of errors between "competing" loops.  Unless you are passing error data between the loops they may fail independently and produce gaps in operation that are otherwise inexplicable.
3.  If you are using NI-DAQmx 7.5 (actually NI-DAQmx 7.4 or later) you can be assured that the readings are set to scan between channels as quickly as the hardware can physically produce accurate readings.  If you would like to slow down this behavior (i.e. increase the interchannel delay) you can set the Convert Clock rate manually in a the DAQmx Timing Property Node using the Convert Rate property:
4.  A great discussion of Convert and Scan Clock can be found in this KnowledgeBase.  To summarize, the Scan Clock rate runs at the sampling rate you request and initiates a scan of all the channels in the task.  The Convert Clock runs several times faster (as described in the article) and actually clocks individual readings from each channel in a scan.
Hopefully this helps-
Message Edited by Tom W. on 08-12-2005 01:32 PM
Tom W
National Instruments
Attachments:
convert_rate.JPG ‏19 KB
Split_Signals.vi ‏205 KB

Similar Messages

  • How can I re-set the App Store so the Updates will again appear under the Updates tab?

    Hi,
    I am running a Macbook Pro (retina). Lately when I launch App Store and click on Updates the software updates for the software on the Macbook do not show up under the Updates tab. However, when I go to the Purchased tab I see there Update buttons next to programs that have updates ready to download.
    How can I re-set the App Store so the Updates will again appear under the Updates tab?
    Many Thanks,
    David

    Wanna know this too

  • I've had a hard drive crash and put in a new one.  However iTunes has or list all of them from my old drive.  How do we re-set the directory

    I've had a hard drive crash and put in a new one.  However iTunes has or list all of them from my old drive.  How do we re-set the directory?

    You can re-download the software from Download CS5.5 products
    Install and enter your serial number when prompted.
    Find your serial number quickly

  • I inadvertently pressed CTRL+ another key (possibly V or B or N) and the text size of my bookmarked page was significantly reduced in size. I can't read it. How do I re-set the text size?

    I mistakenly pressed CTRL + another key (possibly V or B or N or whatever), when I was reading my e-mail. The text size shrank to a size that is useless to me, but I cannot seem to get the text size re-set to normal. Indeed all of the formatting on the page has been reduced (symbols, instructions, frames etc). Existing Firefox and returning to the bookmarked page makes no difference. How do I re-set the system?

    Hi,
    Please try '''Ctrl''' + '''0''' (zero). Alternatively '''View''' ('''Alt''' + '''V''') > '''Zoom''' > '''Reset'''.
    [https://support.mozilla.org/en-US/kb/how-do-i-use-zoom?redirectlocale=en-US&redirectslug=Page+Zoom Page Zoom]
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]

  • 11gR2 OLAP - How to define or set the  size of the OLAP PAGE?

    Hi,all!
    Could you help me? How to define or set the size of the OLAP PAGE in 11gR2?
    Edited by: [email protected] on 25.01.2010 8:36
    Edited by: [email protected] on 25.01.2010 8:36

    Hi there,
    The size of an OLAP AW page is automatically derived from the block size of the tablespace in which it is stored (which in turn is typically derived from the db_block_size initialisation parameter)
    Do you have a particular concern about this setting?
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • How do I permanently set the zoom level? I am sick of hacing to "ctrl +" on every page!!

    How do I permanently set the zoom level? I am sick of hacing to "ctrl +" on every page!! It is a HUGE waste of time. If I can't do it, then no more FF.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • TS3694 I am trying to restore my ipod and it stopped moving before the restoration was completed. How do I re-set the ipod. I can't turn it off.

    How do I turn off I pod touch?   The restore screen is stuck

    Thanks for the assistance.  I was able to restore my I pod after letting the battery run down.  I then synced the I pod to my new computer.  Most of the songs moved from the cloud to the actual I pod drive.  But, many of them did not.  I tried downloading them from the cloud on my I pod, but this didn’t work.  Will I be able to restore the missing songs?  Thanks, Cleveland.
    Sent from Windows Mail
    From: Apple Support Communities Updates
    Sent: Sunday, November 9, 2014 4:52 PM
    To: shircleve
    You received a reply
    lllaass has replied to your question. You can view the full discussion in Apple Support Communities.
    I am trying to restore my ipod and it stopped moving before the restoration was completed. How do I re-set the ipod. I can't turn it off.
    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable              
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     
    Correct Answer  Helpful Answer 
    Use the buttons above to tell lllaass and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to lllaass, go to the discussion in Apple Support Communities.
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • How do you re-set the master password without knowing what it is?

    I set up a master password, and can't remember it.  I haven't activated the filevault, so from what I read, that is good.  But I still don't know how to re-set the master password if I don't have the old one to change it.  Please help.  I have too many albums in iTunes, documents, and calander events that have not been backed up, so I don't want to reinstall the software, if that is an option.  At least not until I can pick up an external backup.

    I forget where I read this, but to eliminate an existing filevault "master password", delete the files 'FileVaultMaster.cer' and 'FileVaultMaster.keychain' in your computer's main '/Library/Keychains/' folder (not through "Keychain Access.app"). You should then be able to set a new "master password" in the "Security" preference pane if you ever decide to use "filevault" again. Note that if you do this while an account is still encrypted (ie. with filevault enabled), that account will not be accessible with the new "master password". 

  • Newbie iPhone: How do I programatically set the text of a UIBarButtonItem?

    Hello,
    This is probably really more of a question on IBOutlets but here goes. I want to have an updateable label on my Toolbar. A label doesn't seem to "stick" on the toolbar so I figured I would drop a UIBarButtonItem on it and then just update the Title property of it to change the text as I needed. Problem is I can't figure out how to get a reference to the UIBarButtonItem in my code.
    With a pure label control, I can drag from the File's Owner to the label in my view to make it an outlet for my ViewController and then access the text property of the label in code. With the UIBarButtonItem, I can't make it an outlet. I know the button is more of an action thing but I don't need to respond to taps, I just want to change the text.
    Thanks for any help,
    Tom

    Tom,
    You should be able to assign the UIBarButtonItem to an outlet as long as:
    1) you have defined an instance variable in FilesOwner of UIBarButtonItem and prefixed it with "IBOutlet".
    2) FilesOwner is set to your custom view controller in the Interface Builder's Inspector panel. If it still thinks it's a standard UIViewController it won't pick up your custom outlets.
    All that being said, I'm not sure you can change the title without using a custom view. The default UIBarButtonItem has an initWithTitle: initializer that may be static (perhaps others know of a way to change it once set). But you can define a custom view for the button. That gives you the ability to add a UILabel and programmatically set the text of the label.
    Cheers,
    George

  • How can I get/set the vaule of a varibale in the planning function

    Hi All,
    in the fox I can get the value of a variable using VAR(), but How can I get/set it in a normal planning function?
    any proposal would be very appreciated.

    Hi,
    Call following functions 
    1. To get the current value of a planning variable call funtion
    API_SEMBPS_VARIABLE_GETDETAIL by passing Area and variable name
    2. To set the value of a variable call function
    API_SEMBPS_VARIABLE_SET  and pass planning area name and variable name.
    Award the points if thsi solves your purpose.
    Regards,
    Deepti

  • How do I programatically set the date and time of my FP-2000 in LabVIEW RT?

    I checked out the following knowledgebase document which has a tool for setting the system time, but I also need to set the date:
    http://zone.ni.com/devzone/explprog.nsf/ 6c163603265406328625682a006ed37d/ 37175dbc3696a1ac86256a850051097d?OpenDoc ument
    How can I do this?
    -Jim

    That is great, Steven. I also found a solution using GetSystemTime and SetSystemTime which are functions in kernel32.dll that get and set the system date-time. This function call worked on the FP-2000 that I have and should work on RT-Embeded systes, as well.
    -Jim
    Attachments:
    GetSystemTime.vi ‏16 KB
    SetSystemTime.vi ‏14 KB

  • How to get and set the column order in SharePoint list forms

    Hi,
    I want to read the column order of the SharePoint list forms in SharePoint 2003 sites using any of the available web services and need to set the same order
    in the newly created list in SharePoint 2010.
    I am able to read the fields from SharePoint 2003 and creating the list with same fields in SharePoint 2010, but the column order is not maintaining in
    list forms.
    Also, I need to created the views from 2003 site to 2010 site.
    Please help me...
    Thanks in advance...

    Hi,
    Please try to use the following code to programatically change the order.
    SPList list = web.Lists["Example List"];
    if (list.ContentTypes.Count > 0)
    SPContentType ct = list.ContentTypes[0];
    string[] names = {"Example_x0020_One", "Example_x0020_Two", "Example_x0020_Three"};
    ct.FieldLinks.Reorder(names);
    ct.Update();
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/ce66fd65-2882-4bda-8142-89e116d8b90f/how-to-set-the-order-of-the-fields-in-list-forms?forum=sharepointdevelopmentprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • PowerShell: How do I reliably set the IP address on an interface when the interface is not connected ?

    Hello all,
    I am in a bit of a bind - no pun intended.  I would like to know how to reliable set the persistent IP address of an interface that may be disconnected when the address is set.  I can set an address and it will be stored in the ActiveStore but
    that does not really help if I need it next time I reboot.  I have tried using netsh and WMI but they don't seem to create a persistent address on the disconnected interface.  Now if I us ncpa.cpl I can do it all day long so it must be possible.
     In fact if I do it that way the registry settings change. So, I figured I would go that route (modifying the registry) but, alas, that does not work either - upon reboot the address shown in the interface properties show a blank IP address, gateway,
    and netmask.  It is interesting that it is using a static address though. 
    Thanks for your help
    Robert
    Robert Thompson

    Look in the Gallery for numerous examples of setting a static address on an interface.
    http://gallery.technet.microsoft.com/site/search?query=static&f%5B2%5D.Value=static&f%5B2%5D.Type=SearchText&f%5B0%5D.Value=networking&f%5B0%5D.Type=RootCategory&f%5B0%5D.Text=Networking&f%5B1%5D.Value=clientside&f%5B1%5D.Type=SubCategory&f%5B1%5D.Text=Client-Side%20Management&ac=2
    ¯\_(ツ)_/¯

  • How to access and set the object attributes in a task flow?

    I have created a web service data control which has an operation having input as payload object. This payload object has two attributes min and max. I am calling a task flow in a dynamic region in which I want to display result of this operation for which i have to set the values for min and max. I want to set these values when I click the taskflow link. How to achieve this? I am new to adf.

    Hi Arun,
    Thanks for your reply.
    I have tried passing parameter to a task flow, but i cannot set the action to a task flow call because it already has action for a method in a dynamic region which renders the task flow at runtime. How do i set action to task flow call link? Also once i get the parameters into the page flow scope variables, i want to pass those to one of my data control operation which displays the result in that taskflow.(i dont want to create parameter form for this operation).

  • DSC Module: Alarms & Events: How can I programmatically set the 'set user'?

    How can I set the Alarm&Event 'set user'?  Right now, it is always '(Nobody)'

    Thanks for the info.  I had not discovered the Security dialog under the Options.  However, now that I have delivered the first version of the software and have more time to play around, I have discovered the Account Domain Manager under Tools->Security, and that seems to be what I need.  In the image below, I used the Example entitled 'DSC Dynamic Alarm Update'  (available in Example Finder).  But first, I created a local domain called 'Skelly', and logged in as a user named 'zimmer'.  When the alarm came in, you can see that the set user is no longer 'Nobody'.  So now, all I need to do is modify my startup VI, to have each operator log in (using the DSC Security VIs).  That way I will have a record of which operator adjusted the valves & pumps.  ( I write all commands going to control devices to a text shared variable which I log. I also have checked the option to Generate an event upon value change.)

Maybe you are looking for

  • E-mail group for multiple contacts

    I want to creat an e-mail group for multiple contacts so I only need to select the group and then send an e-mail to all the contacts in that group. How do i creat a distribution group in icloud from my Outlook Address book?

  • Can no longer digitally sign documents

    We have been using Active Directory based cetificates to digitally sign adobe pdfs for years.  All of sudden after some recent updates we can no longer sign documents.  When you click on a signature field and click "sign" on the pop up box, nothing h

  • Why is my app screen grayed out?

    When I have my updated (4.3) iTouch connected and I am looking at iTunes, why is my app screen gray and non-clickable? I can access every other page (music, tv shows, etc) but not apps? I must be doing something wrong, right?

  • Create application through Automator to have iPhone sync with iTunes

    Is there a way to create an Automator app so I can have an icon that when run, it syncs the iPhone with iTunes (basically choosing Sync iPhone under the File menu of iTunes)?

  • I have a problem with my Notification Center!

    I have a problem with my iPhone 4 and i want to see if anyone else has it...You see I recently updated my iPhone 4 to iOS 5.0.1 and my notification center stopped working!Well it works only in landscape mode.Before that itused to work perfectly-I was