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

Similar Messages

  • What's The Best Way to Assign Keywords to Multiple Images?

    I'm finally starting to organize my photos with keywords, but something about the way it works in LR2 is driving me batty.
    I came back from a concert Saturday night with over 1,000 photos (double coverage by me and my wife).  I'm trying to use keywords to designate the 14 different performers who appeared on the stage at different times during the evening, when there could be anywhere from 1 to 7 performers on the stage at the same time.
    Now, it seems to me the easiest way to assign these keywords would be:
    1) select a series of photos in which one or more performers appear
    2) in either the "keyword suggestions" or "keyword set" panel, click on the keyword "buttons" I've already created from the performers names.
    But this doesn't always work.  I note that when I highlight a number of photos, ONE is more brightly highlighted than the others, and sometimes, that's the ONLY one that gets the keywords I just clicked on. Apparently, that one image is more "selected" than the others in the series I've highlighted.
    It would not be quite so infuriating if that approach didn't work at all, but the oddity seems to be that sometimes it works and sometimes it doesn't, and I don't know what I'm doing different when it does or doesn't work.
    What does work universally is to to the "Keyword List" panel and type in the name I need, and then right click when the name comes up and select "add keyword to selected photos."  That seems to work every time.
    Or, I can type "Click here to add keywords," type in the name I need, and hit return twice.  That assigns the keyword to all the selected images.  But then I have to do it again for every performer that appears in that series of frames.
    Like I say, the easiest scenario would be the 1-2 step I outlined above, but I cant seem to get that to work all the time.
    Anybody know the trick to getting that 1-2 scenario to work every time?
    Thanks,
    --PS

    Oh, wow.  I have exactly the same problem of LR not assigning keywords to all my selected images.
    I will try the grid, select the grid and not the filmstrip, and look for the current image metadata checkbox as well.
    BTW, Adobe told me to delete the preferences file, which I did.
    They told me to optomize the catalog, which I did.
    And, lastly they told me to create a new catalog and import all the data from my old catalog, which I did not do.
    Stand by ...
    Wow, that is it.  You folks solved my problem.
    Library Mode, select in the grid OR filmstrip (yep-but harder to see in the filmstrip anyway),
    COULD NOT FIND-look for the current image metadata checkbox as well.
    Michael

  • What is the best way to extend time capsule range?

    Hello there:
    I was wondering what kind of set up do people have in their house to ensure a good coverage all around the house? I've tried several options and none seems to work correctly. I've tried Time capsule + airport base, I've tried two time capsules, but didn't get too far.
    Thoughts?

    Do you get good coverage all around your house? how big is your house?
    The size of the house is not really the issue nearly as much as the obstructions in the signal path. For example, a wireless signal will easily travel 100 feet with no obstructions slowing down the signal.
    A "typical" wall of sheetrock and 2 x 4s in a home will on average, absorb about 15-20% of the signal. So, with 3-4 walls in the signal path, it is not hard to understand why a signal will likely be much weaker at the other end of the house, or at the point where you add an "extending" device.
    A ceiling is usually about twice the thickness of an average wall or more, so you'll have to take that into account as well if you have multiple stories.
    The "extending" device can only repeat the signal that it receives, so if it gets a weak signal, it "extends" a weak signal.
    The "best" way to extend is connect the two wireless devices using an Ethernet cable, which may not be easy depending on the construction of the home, but it is by far, the "best" way to provide more wireless coverage to remote areas that need it.

  • What is the best way to work with a large amount of data?

    Assume you have a big text file to work that you need to store and work with, what would be the best way to do that?
    I will be adding / removing a lot of elements so I really want to stay away from array resizing overhead.
    I don't want to step on any toes here, but would binary trees / linked lists in C++ be a better solution?

    Assume you have a big text file to work that you need
    to store and work with, what would be the best way to
    do that?Parse it into a database. Then use SQL to manipulate.

  • What is the best way to create a SSRS Report with Header Data and its associated child data

    So I have Member Information...Member ID...Member Addressing...etc.. I want to display this in the top part of the report like...
    Member Name:
    Member ID:
    Member Address Line 1:
    And then below I want to report on all the claims associated with a Member ID that is chosen by the Parameter. Obviously the Claim Data will be in Table format. Do I necessarily have to associate the Member Information with the Claim Information or simply
    use the same parameter? And what is the best Toolbox item to use to display the Member Information on top?
    Any help or guidance is greatly appreciated by this newbie.
    Thanks for your review and am hopeful for a reply.
    ITBobbyP

    Hi ITBobby,
    According to your description, you want to display all Claim Data for each Member. Right?
    In Reporting Services, we can use a table to display those Claim Data and make them group on Member ID. If you want to display the Member Information, we can put the data fields on parent group level. Then we can use create a parameter to filter the Member
    ID we need. We have tested this scenario in our local environment. Here are steps and screenshots for your reference:
    1. Create a DataSet(DataSet1) which contains the data fields of Member and Claim.
    2. Create a table and drag the Claim data into the table.
    3. In Row Group. Right click on Details and add a parent group.
    4. Select Member_ID in Group by.
    5. Right click on the textbox of Claim data. Select Insert Row->Outside of Group-Above. Drag the MemberName into the inserted row.
    6. In Report Data, right click on Parameter-> Add Parameter.
    7. Type Member_ID in Name and Prompt, select allow multiple values.
    8. In Available Values, select get data from a query. Choose DataSet1, select Member_ID in values and label. You can also set this in Default Values if you need.
    9. Save and preview.
    Reference:
    Understanding Groups (Report Builder and SSRS)
    Report Parameters (Report Builder and Report Designer)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • What is the best way to connect time capsule to bt infinity

    I have bt infinity and want to connect my time capsual to it does anybody know what configuration would get the best connection?

    I have just had Infinity installed and also have a time capsule.
    The way I have set it up is as follows:
    Get rid of the HomeHub they provide (to save electricity).
    Need to keep the VDSL2 modem (the other box that plugs into the phone socket).
    Plug the VDSL modem into the time capsule WAN port directly.
    Go into time capsule manual setup via the airport utility
    On the internet settings tab:
    Connect Using select PPPoE
    Account Name enter '[email protected]'
    Password and verify password enter a single space (as in press the space bar once). There is no password, but for some reason it will not accept no password at all, and won't negotiate properly.
    I don't have a service name set, and 'connection' is set to always on' with 'disconnect if idle' set to never.
    Works perfect, I then use the time capsule as the wifi hub and all my devices connect to this.

  • What's the best way to use Time Capsule through Extended Wireless Network?

    I am operating four computers, three Apples and a PC.  All the Apples use Snow Leopard.  I have a large house where the cable company's modem and internet access is located downstairs at the far back of the house.  That is where I have a 2Tb 802.11n Time Capsule (TC) connected to the modem by ethernet cable.  My iMac is there, connected to the TC by ethernet cable.  In the middle of the house, also downstairs, I have an Airport Extreme (802.11n) operating as a wireless bridge.  Upstairs in the front of the house (very far from the TC and closer but not very close to the AE) I have a home office.  That is where my other two Apples--a MacBook Pro and a MacBook Air--are usually located.  The PC is located in a bedroom directly above the TC and wirelessly connects to it.  At all locations, I get four radio signal strength bars.  However, I am not sure that the AE is doing anything, because I get four bars regardless of whether the AE is plugged in, or not.  When it is turned on, Airport Utility on all computers shows both the TC and the AE, but I have not been able to find which Airport ID I am actually connected to. 
    From my home office I do temporarily lose my internet connection from time to time each day, but the connection recovers usually within seconds.  I assume this reflects occasional interference or other loss of wireless signal in the distant home office, although I do not see the radio bars diminish to less than the four bars.
    All three Apples are set up to use the same TC for backup into Time Machine.  However, I have been getting errors on the laptops operating in the home office (a long way from the TC and perhaps connecting directly over wireless or perhaps wirelessly through the AE bridge.  Some messages are to the effect of being unable to backup, and others more recently report errors.  I think that either due to connection interruptions or merely by suspending or turning off the computer while in the middle of backing up, errors in the Time Machine files were created.  I have been unable to delete more than a few of the 8Mb sparsebundle bands so that I can completely get rid of one of the sparsebundles for the MacBook Pro.  I was able to get rid of the other sparsebundle for that computer and also the sparsebundle for the MacBook Air.  I am reluctant to erase the entire TC, because it has been working for the directly connected (by ethernet cable) iMac sitting right next to the TC.
    So, I am wondering what is the experience of others who are trying to use TC successfully from computers located a long distance from the TC with either a direct wireless connection or a bridged wireless connection through an AE or other bridge.
    And does anyone have good ideas about how to delete the sparsebundles effectively?  I read the various questions and answers in the support community, but so far nothing that I have tried based on those messages seems to work.  It seems that when all the Time Machines are set to "Off" and the sparsebundles are expanded to show the individual bands, we ought to be able to delete them fairly expeditiously.  Sometimes, I can delete one band fairly quickly, but then the second band will hang forever.  More often, I can't even delete the first band.

    Thank you, Bob.  I followed the procedure you stated.  My AE is working.  I did register its BSSID when I put my laptop next to it.  This is also the BBSID I am getting when in my home office at the far end of the house from the TC.  This means I am using the extended bridge AE when working and trying to use the automated backup feature in Time Machine.  Do you think I should turn off Time Machine on these laptops when they are in the home office, and bring them into the room with the TC occasionally to have a better connection (wireless to TC or by connecting an ethernet cable) when trying to make Time Machine backups for them?
    Interestingly (in contrast to the exact match of BBSID's for my AE), when I compared the BSSID for my TC in Airport Utility to the BBSID of the TC using the option key and the fan shaped Airport icon, the BBSID's matched except for the last two digits.  In Airport Utility, they are 2F.  In the fan shaped Airport icon they are 30. 
    Also, the AE signal, being centrally located on the first floor of the house, seems to be the one most in use.  When I walked my laptop away from the AE all the way back to the TC, the laptop automatically switched over to the TC only once.  Most of the time, the laptop is still connecting wirelessly with the AE.  To switch back to the TC, I have to turn Airport off, and then turn it back on again.
    I don't know how efficient or inefficient the Time Machine is when connecting to the TC indirectly through an AE bridge.

  • What is the best way to handle time zone calculations

    We have created production reports and the data is pulling from the AFRU table.  this data is stored in GMT time.  Currently the user has to adjust the time they enter to get the correct data.  For example if they are in CST they need to add 6 hours onto their time.
    We have a request to dynamically do this so the user doens't but we also have to look at the plant they are in and get the correct timezone and time difference. 
    to do this in a customer exit is not wise for performance and I am not sure this shuld be done at all in BW.
    Has anyone encountered this and what was the outcome.  My prior job the comapany decided the effort was not worth the benefit.

    What is a whit layout?

  • 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

  • The Best Way to Assign an Enum to the Corresponds value of a String?

    I am reading from and xml file configuration file. The data being returned is stored as a String and corresponds to a Enum value. My question is - What is the best way to assign the enum the value that corresponds to value of the string?
    public enum Names { BOB, FRED, JIM, SAM }
    String name = "FRED";   // This is the data retuned from the xml file.
    Names n =              // I want to assign n the value of Names.FREDI know I could do an "if" statement. However, this is a contrived example with only a few enum values. In the real world, this enum list could be quite large.
    I have looked into reflection, but I don't know whether there is an easier way to achieve my objective?
    Thank you for your time,
    Harold Clements

    dcminter wrote:
    But for looking up "how do I do X with a subclass of type Y", I think the API documentation should be able to answer that.I think I disagree when it's a language feature.That's definitely a point worth observing.
    By that reasoning you'd expect to populate the API docs with definitions for class (and this and super) all over the place.I think you're exaggerate, and you know it ;-)
    If those were to be mentioned in the JavaDoc, they should obviously go into the documentation of java.lang.Object only.
    I suppose you could have a "synthetics" section to the docs in much the same way that the inherited methods and fields are defined but it doesn't seem very useful.It's not useful if it's just clutter that's the same everywhere, of course.
    But in this particular case a simple "note that enum classes have a syntetic valueOf() method that does foo bar baz" in the body of the class documentation would have been a nice guesture (especially since that part is pretty small here anyway).
    And yes, I also think that the length field of arrays should find some mention in the JavaDoc. I don't know how and where, 'though.

  • I own a MacBook Pro laptop, an iPhone5 and an iPad mini with an itunes/apple account.  I just added an iphone5 for my wife. What is the best way to sync shared music, ical, etc.?

    I own a MacBook Pro laptop, an iPhone5 and an iPad mini with an itunes and apple account.  I just purchased another iphone5 for my wife.  What is the best way to sync and share iTunes music, iCal dates on her phone and my computer and devices? We don't need to sync and share contacts.

    Jordans374 wrote:
    Both are already synced to a windows laptop?
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • What's the best way to connect Cognos with SAP 4.6c on iseries V5R4

    We have SAP 4.6c on iseries V5r4.
    What's the best way to connect Cognos with SAP so that data could be extracted from SAP and create reports with Cognos.
    Thanks
    Joe

    DB2 Connect version 8.2 is no longer supported by IBM (support ended April 30, 2009, see http://www.ibm.com/software/data/support/lifecycle/). As far as I know, DB2 Connect is communicating through DRDA, which is a platform-independent protocol supported by all DB2 platforms, so any DB2 Connect client should be able to talk to any DB2 database. However, there may be limitations on the supported release combinations.
    Kind regards,
    Christian Bartels.
    Edited by: Christian Bartels on Sep 6, 2010 4:17 AM

  • I have two users on the same MAC and want to have separate ITunes libraries stored on my time capsule.  what's the best way to ensure that is done?

    I have 2 users on a MAC each with separate accounts (email, photo, ITunes) and I want to migrate my ITUnes Library over to a time capsule so that each usewr still has their own library bu don't want to duplicate songs.  What is the best way to have both Itunes pointed to separate libraries both stored on the Time Capsule?

    A bit of basics on iTunes.  iTunes does 99% of what you see through a library.itl file in the iTunes folder.  This file is a database and in it are references to the actual media files.  These files can be anywhere in theory, but if you have iTunes set to default then they are nicely organized in media folders in the iTunes folder.  You have probably moved them to some central shared location in the past, then built up two individual libraries around that central location.
    iTunes is very fussy about a person dragging files to a different location, and that goes double if the other location is on a different drive.  You can move files, but it is best to let iTunes do it so it can keep track.  If this was just for one person I'd say go into preferences, select the other drive for media location, then close preferences. My understanding (never done this before) is iTunes will then ask you if you want to move your media.  Say yes and iTunes will move it and keep track of it -- for your library.  Now when you go to the other person's library, it opens and you see loads of ! because their library is still looking for the media on the same  drive as the library is located on.  I don't think it will work (but you could always try) to re-assign the media location to the external drive because the reference in the database is to look for such-and-such a file on the internal drive.  iTunes did that for the first library as part of the move, but not for the second one.  Note that typically when you want to move a single user's collection from drive to drive we advise moving the whole iTunes folder, library files and all, to another drive, but you don't have that structure.
    So I'm not sure what to advise.  If it were me and I was absolutely gung-ho on doing this I would re-assign the media with one library.  Then edit the .xml version of the library file for the second library so it points to the new file locations and import this into a fresh iTunes library for the second user.  This isn't the perfect solution because nominally the .xml version does not 1005 replicate all the characteristics of the original .itl file (which cannot be edited).
    Or maybe some other user bas a better idea.

  • What is the best way to get a time capsule to work with a new network name?

    What is the best way to get a time capsule to work with a new network name?

    Well it seems that you did not explain to us the full story.  Did you change ISP's or something? Why would it not show up anymore?
    What colour is the light on the time-capsule? If it's blinking amber, then you probably need to do a factory-reset. That should get it to show up again in AirPort Utility.

  • What is the best way to create shared variable for multiple PXI(Real-Time) to GUI PC?

    What is the best way to create shared variable for multiple Real time (PXI) to GUI PC? I have 16 Nos of PXI system in network and 1 nos of GUI PC. I want to send command to all the PXI system with using single variable from GUI PC(Like Start Data acquisition, Stop data Acquisition) and I also want data from each PXI system to GUI PC display purpose. Can anybody suggest me best performance system configuration. Where to create variable?(Host PC or at  individual PXI system).

    Dear Ravens,
    I want to control real-time application from host(Command from GUI PC to PXI).Host PC should have access to all 16 sets PXI's variable. During communication failure with PXI, Host will stop data display for particular station.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.

Maybe you are looking for

  • ID CS3: Text Wrap stopped working!

    I suddenly have an odd problem: a text box that refuses to honor the text wrap setting on another box. The one that is supposed to force the wrap does have the wrap turned on. The box that is supposed to honor the wrap setting is not set to ignore th

  • [P67-A] DVD Drive not showing up?

    Hi all, I have a P67A i5 board and I'm baffled as to why the DVD drive isn't detected. It has worked in the past but doesn't now. I have 2 SATA HDD's connected to port 1 & 2 (the 6Gb/s ports) and I have a SATA DVD drive connected to port 8 but it doe

  • Is it possible to create starburst effects in LR5?

    I can see that there is a starburst possibility in PhotoShop but I can't find anything with Lightroom. Can anyone point me in the right direction, either in Lightroom or suggest any apps that I could use? Many thanks, Mike

  • Compressing 7.8MB newsletter for email

    I'm a Mac newby. I bought iWork 05 and tried to send my first newsletter out to family and friends, complete with pics. I'm not familiar enough with iPhoto yet to figure out how to compress each 1.5 MB photo, so I thought I'd try to resize the whole

  • How can I get roaming wifi on my ipad

    How can I get my ipad to connect to wifi networks automatically when I'm out and about without having to put in a password to connect