Trying to sample a sensor voltage and record location (with delay)

Hi all, 
Wondering if someone could help me here, i'm still quite a Labview novice... Basically I have a sub vi which I created that is feeding in analogue sensor values into my main vi in parallel with another sub vi, which is feeding in gps location in a combined latitude and longitude string. What I am looking to do is to record the locations in a visible array on the front panel when the acceleration is over a set amount (1g).
The issue I have is that I only wish to take down one location string for each time the acceleration is exceeded, so I would like to implement some sort of delay so that when the acceleration increases beyond 1g, the location is recorded and then the program waits for a given time before taking the next location (I only want one location recorded per event). But I cannot work out how to do this. The only way I can think of achieving it will give me several position values each time the acceleration passes the limit.
Any help would be greatly appreciated.
Thanks
Solved!
Go to Solution.

Ok, sorry about that. I have attached the vi and hopefully you will understand what is going on. Essentially the while loop to the right hand side is what I have been given and the part I have worked on is in the left hand while loop. So I have the latitude and longitude string which is called "concatenated string" and my accelerometer readings come from the sub vi called Accelerometer. I currently have boolean greater than set for if>1.
The really hard part that I am struggling with is getting the latitude and longitude string to write accross to the array on the right hand while loop called "Marker location array" as a new indexed value and to do this only when the acceleration is above my set value.
Thanks again for any help and hopefully I have uploaded it properly!
Attachments:
acceleration_gps.vi ‏416 KB

Similar Messages

  • Use two streams to manager client video/audio,Can i combine streams and record it with server AS API

    Use two streams to manager client video/audio,Can i combine streams and record it with server AS API
    I tried Stream.play()
    var s=Stream.get("combine");
    s.play("video");
    s.play("audio",null,null,false);
    s.record("append");
    it's don't work!!

    Thanks, that's what I had thought. Our domain.com zone is sourced internally and replicated to our advertisers for external users, so there's no way to change the result for internal vs external users.
    This is a rudimentary question that I should already know but I sort of inherited this after it was built: Can I have users sign in with their email address ([email protected]) but under the hood, their SIP address is [email protected]? This would let users
    sign in with an address they expect, but it would take advantage of the the local lyncdiscoverinternal record.
    Thanks,
    Matt

  • HT1379 Guys please help? My MacBook Pro won't start up. I have tried the resetting Mac's PRAM and NVRAM procedure with no success. All I see is just the black or grey screen although I hear the drive running.

    Guys please help? My MacBook Pro won't start up. I have tried the resetting Mac's PRAM and NVRAM procedure with no success. All I see is just the black or grey screen although I hear the drive running.

    Hold shift key down while booting should get you in
    go through this list and get back with me
    Step by Step to fix your Mac

  • Error connecting integrator and record store with fetching the metadata

    I am trying to fetch crawled data from record store in integrator and then upload them in a data domain. I am encountering an error regarding the connection between integrator and record store (error while generating metadata), It says "Exception encountered connecting to the record store and writing the metadata with the following message: Transport error: 404 error: Not Found". Please suggest the required action. 

    I found a installer for Quicktime that was not connected to iTunes and installed quicktime again.
    Everything is now working.

  • Wallet and Cert location with OHS in front of B2B

    Hi,
    I am trying to figure out how many and what types of Certs are needed as well as where the wallet should reside in the following scenario. We have a stand alone OHS in a public DMZ which is forwarding our inbound trading partner messages to the MidTier server which contains B2B. We have also configured B2B to use the public DMZ OHS as a proxy when sending outbound messages to the trading partners. The RosettaNet PIPs that we will be implementing require signing (non-repudiation), encryption and SSL.
    I assume that SSL must be enabled on the public DMZ OHS, but does it have to be enabled on the MidTier server as well? I believe that if we had to enable it on both servers, then different certs would be required for the different servers, but I am not sure.
    Also, we have to configure the outbound messages from our B2B with all of this (signing, encryption and SSL). Does this require a cert and wallet on the B2B server or on the OHS or both? I know that when configuring the trading partner within B2B, the cert must be accessed, but I am completely confused on if this is the cert that we use on OHS or something different.
    Thanks so much for any help you can provide!
    Darrin

    Hi Darrin,
    Certificates will be used at both OHS and Midtier. At OHS you are receiving incoming traffic so your server certificate should be there (in PKCS 12 format). From midtier, you are sending messages to your TP's (your Outbound), so your client certificate should be at Midtier at following location-
    Oracle_Home/Apache/Apache/conf/ssl.wlt/default
    At above location three files should be there-
    1. cwallet.sso
    2. ewallet.p12 (Your Client cert with all trading partners server cert public key in base 64 format including CA's cert as well)
    3 ewallet.txt (export of whole ewallet.p12 in ".txt" format)
    Give path of ewallet.txt in your tip.properties file.
    SSL would be enabled at both midtier and OHS, but if OHS is sending messages to midtier at HTTP port then do not enable transport security in your host tp's delivery channel.
    You have to upload certificates which will be used for siging and encryption at resepective tp's delivery channel.
    Wallets are used for client and server authentication and signing and encryption in outbound where as certs uploaded at tp's delivery channel are used for decrypting the incoming message as well as verifying the tp's signature in message.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi on Feb 11, 2009 12:28 PM

  • Csv file reading and voltage and current plotting with respect to time samples XY plotting

    Hallo,
             I've been struggling with reading  a comma separated value (csv) file from another instrument (attached). I need to plot this data for analysis. I have 5 column of data with numbers of rows, the first three row is the information of the measurement. I want to read 4th row as string and rest of the row as numbers. I want to plot 2nd column (i1)  with respect to TIMESTAMP; 4th column(u2) wrt TIMESTAMP. And finally plotting i1 (x-axis) vs.. u2 (y-axis) in labview. Could anyone help me.
    In excel its so easy to plot  but I don't know how its done in labview.
    Attachments:
    labview forum test.csv ‏30 KB
    excel plot.jpg ‏88 KB

    Start by opening the file.  Then use the Read Text File function.  You can right-click on it and configure it to read lines.  First make it read 3 lines (this is your extra header data).  Then make it read a single line.  That will give you your channel names.  Then read the rest of the file (disable the read by line and wire a -1 into the number of bytes to read).  Then use the Spreadsheet String to Array function to give you your data.
    I would recommend going through the LabVIEW tutorials if you are really new at this.
    LabVIEW Basics
    LabVIEW 101
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Need help getting a voltage and current reading with myDAQ

    I have set up a VI using the DAQ assistant with the myDAQ, I am using the ai0 port for a voltage reading and using the DMM for my current reading, the circuit is working as I am measuring the voltage on a resistor after the ammeter but I am unable to get a current reading in order for it to work. If I have something wired wrong please let me know, thank you. My circuit is a 12VAC power supply, going through a potentiometer to drop the voltage to 8VAC, which passes through a resistor, ammeter is in series after this and attached to another resistor to complete my loop, the AI0 for my volt meter is connected across the second resistor, I have the proper voltage reading when I run the VI, but am unable to get a current reading to display. Thanks for the help.
    Attachments:
    Mikes Project2.vi ‏134 KB

    I mean I can't get a proper current reading as a numeric value, I have my power supply going to a potentiometer to change my voltage level and then have 2 resistors, I am measuring the current between the 2 resistors. By doing so I am getting a value but not the same value I am getting on my multimeter, I am also having trouble with the calculation using the formula R=V/I in my formula node. If I use input controls I can get the formula to work properly, as soon as I connect it to the outputs of what I am trying to read, the formula node doesn't work.

  • Monitoring and recording problem with midi vs audio firewire

    I'm trying to record my Roland synth via Inspire firewire box into Logic express. I'm able to record and monitor thru the output of the inspire box. However If I'm using firewire, I can't hear other midi file tracks and vice versa. I keep switching input and output sources in the control settings but it seems like I either have to use all midi tracks or all audio tracks. Same situation with playback. I know this is wrong but am totally stumped. Any advice would by awesome.

    Dave, You might need an external DAW to do this, I got it working and I'm an idiot. There is only one I/O for logic and if you use it for the audio recording it's not available for the sounds you want to have coming out of logic. I have Roland Edirol UA-25USB2 and it works like a charm, If I understand what I did correctly, the sound and MIDI messages are routed via an Aggregate Device in the audio/MIDI set-up [you configure the device in the audio half] to the Edirol, and there are many extra functions to choose from-I avoid the 3.5mm audio out headphone plug by routing audio out through the DAW Edirol-much better sound quality than the mini stereo jack.

  • Sending pictures through text and recording videos with the Iphone

    so yea i know its not out and idk if apple is working on it but i think it would be really cool. I'm 14 years old and i own an iphone and its like i could do more with my lame verizon phone. another thing is u cant record videos... all the money they are putting into the iphone and it can't even do some of the standard camera phone abilities. i'm just suggesting so don't think i'm like ranting about how the iphone ***** because its really cool i love it! not everybody has an iphone so not everybody's email is going to there phone and some times there are pictures id really like to send to my friends like the other day i was riding my bike listening to music and it started pouring then it let up and i saw a rainbow so i pulled out my iPhone and i took pictures and i really wanted to send them to a friend but there email doesn't go directly to there phone.
    and off topic what would be really sweet would is wireless head phones lol like ugh the wires always getting in my way and id really like to just listen to music in school hehe. not like the phone thingy but and actual ear bud thingy like the white apple headphones but cut the wire off and it just sends the audio wirelessly to the head phones
    thanks,
    Bradley S. F.

    You may see apps in the new App Store that will accomplish what you're looking for.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Sample Questions  Logistics Execution and Warehouse Management with SAP ERP

    Hi all,
    I am studying the above (C_TSCM66_65) and need some sample exam questions. Anyone know where to find some?
    Thanks.
    JJ

    SAMPLE questions you can find here: http://www.sap.com/services/education/certification/schedule/CTSCM6665.epx
    Best regards + good luck
    Juergen

  • I am trying to update my ipad 2 and saying error with back up, if I continue I will lose all content. What do I do?

    Does anybody know what I can do to update my ipad without losing all my data. I am trying to update my current version to the 5.1 version and it keeps giving a error message stating that "an error has occured with the back up and if I continue I will lose all content. Will I be able to get my stuff back such as games, music, aps, etc back after I finish or will they be lost forever. Can somebody please help me I am lost and not sure where to get support on this issue.
    Thank you so much
    Alicia

    If you continue and you lose everything, you will be able to download most of the content again for free as long as you use the same Apple ID. You can read this about downloading past purchases.
    http://support.apple.com/kb/HT2519
    But before you continue and lose everything, try this.
    Eject your iPad, quit iTunes and restart your computer. Then launch iTunes and go to Edit>Preferences>Devices. See if you have mutliple iPad backups showing in there. If you have multiple backups, delete all but one of them. Also check the box at the bottom that turns off auto sync .... Prevent iPods ......Click OK and Then quit iTunes.
    Connect the iPad again and launch iTunes. Right click on your iPad name on the left side of iTunes and select backup. See if the iTunes will create a backup. If it does, after it finishes, click on the Summary Pane on the right and click on check for update. Try to update again.
    If it all goes OK, after you update the iOS you can back to Edit>Preferences>Devices and turn on atuo sync again - assuming that is how you want to sync.

  • When exporting to epub, only about 1/3 of my chapters are getting the page breaks. Each chapter is in its own doc, and I've tried splitting it apart by doc. and by H1, with no luck. HELP

    All my paragraph styles seem to jive, and no matter what I do, most of my chapters seem to miss their page breaks. I've heard of others having this issue with older versions of Indesign, but I'm on CC2014, and I thought that should be fixed by now. I really don't want to have to learn HTML code and go break open the epub doc to fix it manually, because that doesn't always work across all devices either.  I know others have to of  run into this problem before. What am I doing wrong?

    Make sure the paragraph style applied to the chapter title (if that's the first line of each chapter) is tagged. Open the paragraph style and go to Export Tagging and check Split Document (epub only). Then when you export (assuming you are using reflowable) under General>Split Document check Based on Paragraph Style Export Tags. Try it and let us know if this helps.

  • HT4623 I am trying to create an itunes account and sync it with my iphone

    How  do I sync my Iphone to computer Itunes so i can use i tunes on my phone

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

  • BizTalkServer 2010 SFTP Adapter from CodePlex - Configuring send and receive locations with SSH public and private keys

    Hi there,
    I am looking for step by step instrcutions on how to configure SFTP Codeplex adapter for both receive and send ports.
    Out business partner with whom we push/poll the files from wants us to use SSH encryption/decryption etc.
    Just wondering if the following functionality is supported in Codeplex SFTP adatper without having to write any code.
    Appreciate if there is manaul to do this for SFTP. BTW I do have all the our public and private keys and business partners Public key for configuring.
    For Send port: 1. we would need to encrypt the file with our business partners public key
                          2. sign the file with our private key.
                          3. Send the file through to SSH client which eventually transfers to Remote server.
    Receive port:   1. Connect to SSH Server with SSH-2 key and receive the file
                          2. Verify the file's digital signature agaisnt the Business partners PGP public key
                          3. Decrypt the file using our PGP Public key
    Thanks in advance

    Yes it is supported.
    You can find its documentation in this link 
    You can find section X.509 Certificate Identity Keys
    You can set public and private key in property SSH Identity thumbprint  of send and receive port
    I prefer to test it using client tool like
    FileZilla or WinSCP then test it using sftp adapter
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

  • PCI-4461 - Generate and Record Tone

    Hello,
    I am trying to play a tone (1K for Example) and record the tone using a microphone.  I am using a PCI-4461 to generate and record the tone.  I managed to make a somewhat functional program but there are some issues I would like to clear up:
    1)  I had to make a start and check time function to determine if the tone plays and is recorded for the appropriate amount of time.  If I remove the while loop the tone does not play.  I tried using the DAQmx wait until done function but it does not seem to make a difference.  Is there anyway I can play and record the tone without monitoring the time?
    2) The recorded waveform always has a delay which seems dependent upon the sample rate.  Ex: 10000 Samples/Sec results in 83 sample delay, 20000 Samp/Sec results in 114 sample delay.  I read in some other articles that samples are stored in the buffer and that reading 60ish samples before the actual measurement would clear up the problem.  I tried reading samples before the tone is generated but the delay is still present.  Currently I am using post processing to remove the delay, is there anyway to only record the tone that is played.  Am I triggering the read properly?
    Let me know if I should post the VI.  Also incase anyone is familiar with acoustics how do I convert a waveform of Voltage vs time to dBV/Pa
    Thanks,
    E
    Attachments:
    Play and Record Waveform.PNG ‏86 KB

    Hi Plexonite,
    The first thing that comes to mind is Pre-trigger Acquisition which could help you retrieve missing data. Further details about this can be found under:
    http://www.ni.com/white-paper/4329/en/
    Let us know if this helps you move forward.
    MJ
    Application Engineer
    National Instruments

Maybe you are looking for

  • Transfer video

    How do i transfer video from Iphone 4 to PC without Itunes?

  • Error on minValue selection in af:inputDate

    I am using JDeveloper  11.1.1.4.0. I have a af:inputDate in my form with both minValue and maxValue populated from the managed bean as shown below. <af:inputDate value="#{bindings.AllowedDate.inputValue}"    label="#{bindings.AllowedDate.hints.label}

  • ITunes and iPod Classic issues

    I have a 120gb classic iPod. About a week ago, I got the red x. So I restored my it. Then anytime my iPod was plugged in, iTunes froze until I unplugged my ipod and then it went back to normal. I've read forum after forum and here's what I've done. -

  • Print:Panel To PostScript Method

    I´m using labview 2011 and I want to use the method "Print : Panel To PostScript Method" and I can´t find it, I can only the others print methods. Can someone upload an example with this method, so I can copy it? I really need it. Thank you guys!

  • Multiple discounts are given at different levels of sales cycle

    I have a requirement, Multiple discounts are given at different levels of sales cycle(like opportunity, quotation etc), interlinked with document flows. It must be assured that all the matchings must be taken into accounts and are displayed underneat