What is the easiest way to get time stamped wvm data with AI samp Ch Vi?

The AI sample channel VI only outputs single point waveform data which is making it a beast for me to get my input data into XY graphs. I have been trying to combine the data with a elapsed time clcok so I can synchronize all my inputs but it isnt working too great. All this stuff is in a while loop also, so that gives me trouble. Basically I just want to make an XY graph from both AI inputs.
Attachments:
PID_Control_LoopII.vi ‏326 KB

Tim, no problem. I have attached the modified code that displays the readings from both devices on the same plot. I used a chart instead of an XY graph since it is much easier to use (it keeps track of elapsed time for you if you know the amount of time in between data points - and since the loop time is fixed we do know that). If this time were to change, then we would have to re-create the X-axis (time) and the XY graph would be necessary. One other note - the code that reads the values from the DAQ cards will not execute at exactly the same time, therefore the data will not be acquired at exactly the same time, though it will be close. Therefore, if your application requires these readings to be dead on together in time down to the mi
crosecond for example, then you would have to synch the two devices via hardware. Let me know if you intend to do that and I can steer you in the right direction. Hope this helps.
Attachments:
PID_Control_LoopII_rev_2.vi ‏89 KB

Similar Messages

  • What is the easiest way to get scanned photos from MP Navigator to iPhoto?  I thought last time I did this I could highlight and drag into iPhoto?

    What is the easiest way to get scanned photos from MP Navigator into IPhoto?  I cannot highlight and drag/drop.

    Contact the manufacturer (Canon?). 

  • What is the easiest way to get the data from the mailmerge to form Pages files that can be saved separately?

    Using Iwork 09 I have spent several hours setting up a mail merge from a spread sheet in Numbers to create receipts for my customers from a Pages template.
    After the merge I am left with one long Pages document that will not save as separate files; one per customer, it will only save the whole document of several receipts.
    What is the easiest way to get the data from the mailmerge to form Pages files that can be saved separately?
    Many thanks in advance.
    Richard

    Mr. Clark,
    You will probably be more pleased with the iWork apps when you begin to learn your way around. Until you learn such basic things as how to print only one page of a document, you will probably continue to be disappointed.
    Does your Print dialog look like this:
    Or like this:
    If it looks like the first one, then you will want to click this expander control:
    Regards,
    Jerry

  • What is the easiest way to get music into itunes library?

    Hey everyone, what is the easiest way to get my songs into itunes without importing them one by one. For example, if you download several songs with Limewire is there a way to make them automatically download into Itunes or do you have to add file or import them manually. I tried to be slick and change the folder that the limewire was saving songs into to make it the same as the itunes library folder. I didn't do something right apparently cause I still have to either add file or import to get the songs. I wish there was a way to just auto download them into the itunes or scan the computer for new songs.

    Does this software do what you want?
    (31108)

  • What's the easiest way to get the music I bought for the past 7 years on this computer

    What's the easiest way to get the music I bought for the past 7 years on this computer even though I do not have the old computer

    See also Recover your iTunes library from your iPod or iOS device if you have media on any devices.
    tt2

  • HT4260 I have an AirPort Extreme and a linksys router. What is the best way to get 6-8 wired connections with ac speeds?

    I have an AirPort Extreme and a linksys router. What is the best way to get 6-8 wired connections with ac speeds?
    Appreciate your assistance.

    The answer depends on whether the AirPort Extreme is your main router....or...the Linksys device is your main router.
    In either case, the two devices must connect together using a wired Ethernet connection using CAT5e or CAT6 cabling.
    Any version of the AirPort Extreme produced within the last 5 years will have Gigabit Ethernet ports. In order to get the same speeds from the Linksys router, it will also need to be Gigabit Ethernet capable.
    If you need additional Ethernet ports, you will need to add a Gigabit Ethernet switch to either the AirPort Extreme or Linksys router.
    It is assumed that your other devices connecting to the AirPort Extreme and Linksys router will also have Gigabit Ethernet capability.
    Not sure why you mention "ac" speeds in your post. This relates to wireless connections, not wired.

  • What is the easiest way to make a slide presentation DVD with music that can be played on PC or DVD player using MacBook Pro?

    What is the easiest way to make a slide presentation DVD with music that can be played on a PC or DVD player?  I'm using a MacBook Pro since that's the computer that has all the photos (in an album) and music.  Thanks.

    I would suggest that you post this to the Adobe Encore>Menus & Buttons forum. What you want to do, if I read correctly, is pretty simple. There will probalby be links available to step you though it. I'll look for this there, and start gathering some links.
    Good luck,
    Hunt

  • What is the best way to assign time stamps to counter input data?

    Compact DAQ
    NI 9411
      Hi Everyone,
      I am creating a chart recorder for collecting various engine data.  I need to plot engine speed, crank angle, and various analog data on an XY graph.  I am using a counter and a mag pickup to continuously measure the frequency of the flywheel teeth.  From this data I create an array of timestamps based on accumulated periods for each frequency measurement.  My problem is, how do I determine the absolute timestamp for the first frequency of the buffered data?  I need to sync the frequency data with the analog data so I can plot it all vs time on an XY graph.  The flywheel has 201 teeth and the engine runs at 600 RPM.
      I am using a second mag pickup and counter to measure a single index pulse on the flywheel.  This will be used to determine the crank angle.  I also need to create a timestamp for each index pulse.  What is the best way to do this?
      Is it possible to treat the two mag pickups as an encoder and not use the B phase (direction) pulse? 
      I am fairly new to LabView and any help would be greatly appreciated.
      Thanks in advance,
      Kris

    Hi Kris,
    With analog and digital input tasks in DAQmx, it is possible to acquire data of the type 'waveform'.This includes timestamp information for the acquired data. This example is a good one to reference to understand how this is done: http://decibel.ni.com/content/docs/DOC-3749 . 
    With counter tasks in DAQmx, however, your best bet would be to use the 'Get Date/Time in Seconds' VI to obtain the absolute time. You can set this up so that the absolute time value is obtained right before the DAQmx read function is called, as shown below:
    Are you trying to use the 9411 to read from the mag pickup? What type of data does it output?
    For information on programming with NI-DAQmx, please refer to the following webpage: http://zone.ni.com/devzone/cda/tut/p/id/5438 . It is a very useful resource to get started on DAQmx applications! I hope this helps. 
    Vivek Nath
    National Instruments
    Applications Engineer
    Machine Vision

  • What is the easiest way to sync Google Cal and Contacts with an iMac?

    iTunes will sync Google Contacts, but not calendar. Weird. Why? What's the best fix?

    There must a better way to do this. The problem is, YOU CAN'T UNCHECK IPHOTO in the installer. You pretty much need all the support files which you can't see in the installer, but you usually don't want iphoto.
    1 way to get around this is: Quit the installer if you launched it. Open the install disc > search = (any ilife app) > make visibility option 'invisible'. (if you don't know how, search invisible files in apple's help menu). run through the stuff to find a 'packages' (or some similar name) folder. Inside of that, I install everything except for what I don't want, which for me is the iphoto and imovie stuff.
    Still there must a better way, maybe you can create your own installer from the packages w/ package maker or something and burn that image... Worth trying...
    Please be assured that you will not get full integration between the current apps and the iLife apps in 10.9.x; Mavericks.  The apps don't have all the expected hooks to each other due end of product development. This seems to be the crux of the problems I've had testing to make an idvd dvd.
    If you're running 10.9, I recommend moving on to current replacements that will work as expected. That way you won't be wasting time running down project problems.

  • What's the easiest way to have datagrid including renderers disabled, with loading spinner?

    I understand how to fire my start loading / end loading events when a datagrid is being populated from external data. What I do not know how to do effecitively (and have been googling) is what's the best practice for making the datagrid appear as modal with a loading spinner on top of it?
    My train of thought of the approach is - onLoading,  Make existing datagrid not clickable, then set alpha to dim the current datagrid. Show a loading spinner on top of  the grid.
    I can set the alpha which gives it the modal appearance, but how to make it so the user can't click anything in the existing grid? Setting the grid to enabled=false sort of works, but there are some icons in an item renderer in the grid that at are still clickable. Do I have to manually disable all of them as well?
    Sadly, I'm suprised that googling for this hasn't turned up much. I know this must be a basic problem.

    hi,
    I would place the grid in a container and have 2 states when you want to load data you set the state to locked once data is loaded set state to normal, in locked state it will show a custom spinner, blur the container and disable the container which effectively blocks the Grid. I just included the button event so you could test the effect.
    David
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Script>
    <![CDATA[
    protected function button1_clickHandler(event:MouseEvent):void
    if (this.currentState == 'normal')
    currentState = "locked"
    else
    currentState = "normal";
    ]]>
    </fx:Script>
    <s:states>
    <s:State name="normal"/>
    <s:State name="locked"/>
    </s:states>
    <fx:Declarations>
    <s:BlurFilter id="lockGrid" blurX="4" blurY="4"/>
    </fx:Declarations>
    <s:Group x="199" y="131" width="655" height="381" enabled.locked="false" filters.locked="{[lockGrid]}">
    <mx:DataGrid right="0" left="0" top="0" bottom="0">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
    <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
    <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
    </mx:columns>
    </mx:DataGrid>
    </s:Group>
    <!--<mx:SWFLoader id="myspinner" source="spinner.swf" includeIn="locked" verticalCenter="0" horizontalCenter="0/>-->
    <s:Button x="199" y="538" label.normal="Disable Grid" label.locked="Enable Grid" click="button1_clickHandler(event)"/>
    </s:Application>

  • What's the easiest way to get PDFs into iPad?

    A friend has a jail broken iPad.  He can drag-and-drop PDF files right into his iPad with the same ease that we can when copying a PDF file from one Mac to another (Does not use, or need iTunes).
    I do NOT want to jailbreak my iPad.  Is there some similar way to transfer PDFs to iPad without going through iTunes (which I find to be a hassle).

    You can either use iTunes (which you've already said that you don;t want to do)
    I find transferring files using iTunes difficult and tedious (compared to the drag-and-drop methods used by jail broken iPads).  I put in several hours trying to transfer PDF files using iTunes and never could get it to work. Perhaps I did not have the right App on my iPad.
    use a PDF app on the iPad that supports wifi transfer
    Can you suggest an App that does this?
    I did view the DropBox video.  (The video urges one to simply download it, and never discloses the cost prior.)  Also, I would never put my personal files on the cloud where they can be hacked.  I want something I can simply transfer on my own network without using the Internet.

  • Mac Os x 10.2 used came without a browser or mail or restore disks. What's the easiest way to get IE or safari back on?

    It's a power Mac g4

    Contrary to the above post, IE for Mac does exist. As a matter of fact, it was the default browser for Mac OS 8, 9, and X up until Safari's release in 2003. It was discontinued not long after that. However, you can still download it here: http://mac.oldapps.com/internet_explorer.php?old_internet_explorer=9. As for downloading Safari, if you're running an earlier version of Jaguar (10.2), you should be able to install it by going into Software Update and downloading all the updates available (provided the Mac is connected to the internet, of course). As for getting Mail back, I don't see how it's gone; seeing as it's a pre-installed Apple program, I doubt someone would remove it, and I'm not even sure it can be removed. Try doing a search in Finder for it. Finally, as for no restore discs, there's really no other way around it unless you get a set of restore discs (which are probably difficult to find considering their age) or get someone to put the restore disc data on a USB drive.
    On a side note, I don't recommend using Safari or IE for internet browsing on 10.2. They're so outdated that most sites don't display properly on them. I recommend using the latest version of Opera for 10.2, which you can find here: http://mac.oldapps.com/opera.php?old_opera=15. I have personally tried this on an eMac running 10.2 and though slow (as it is also a very outdated browser version, over 5 years old), most sites seem to display properly (at least, for the most part). Or, as another alternative, I would recommend maxing out your Mac's memory and installing Mac OS X Tiger (10.4) and the TenFourFox browser (link: http://www.floodgap.com/software/tenfourfox/). Do that, and you'd have a rather usable internet browsing machine.

  • What's the easiest way to resize/optimize an image size with the iPhone SDK?

    hi.......every one.
    I developed one APP in XCode4.6.3 ,it's working perfectly in ipad.
    After update my xocde 4.6.3 to 5.0 it is not working, it is crashes.
    How to Set an iamge for both ,ipad & ipad retina

    Hi Srikanth,
    if chitram.png is your image file for 1024 resolution iPad, then [email protected] will become image for retina iPad.
    Please have double resolution image ready for that.

  • What's the easiest way to do this?

    hey, my music videos are included in the lists of songs, which usually cause my iPod to freeze. what's the easiest way to get them out of my songs lists so that they only show up when i go to Videos. should I just change the names of the music video artists so they don't get mixed in with songs, or is there an easier way to do this that i am missing?

    why restore it? does this not happen to everyone? i thought it was just my fault for giving the same artist names for songs and videos...

  • What is the easiest way to delete a song or album?  Also, how do I get rid of the tunes it cannot convert or find?

    What is the easiest way to delete a song or album directly off the iPod?  Also, how do I get rid of the tunes it cannot convert so it does'nt run through them every time I upload an album or song?

    Right click the song you want to get rid of and there should be a delete button.

Maybe you are looking for

  • Problem in uploading data for the Tcode CA02

    Hi, I am trying to upload the data for the Tcode ca02  and i am facing a problem i.e. the uploading for the for the 18th  inspection characterstic is not able to being uploaded. I had checked the code of it  and the logic is there. It was previously

  • Javadocs...urgent!!

    Is there anyway to create Javadocs without using dos?? i.e. by including code in my application classes to create Javadocs automatically?? I've never created Javadocs before and all the code examples on the site seem to use commands in dos to create

  • How to move all clips over

    Is it possible to move all audio/video clips over to insert a new clip for example.  Right now, I'm highlighting all the clips and dragging them. For the above, is there a way to get more precise by using the keyboard?

  • Change the sort order (ascending/descending) based on parameter field

    I have created a formula on a subreport to change sorting based on variables. select {?Pm-@Sorting} case "property_type_desc ASC" : {owned_property.property_type_desc} case "property_type_desc DESC" : {owned_property.property_type_desc} default: ({ow

  • Dynamic ip and your own domain name (how-to)

    Not sure what the usability of it is for other people, but here is how I did it..more or less. http://wiki2.archlinux.org/index.php/Zo - namic%20IP *shrug* Maybe it will help someone out there.