Stop and reset data acquisition

I have a vi that takes raw vibration signals and filters, integrates and then displays.  The user watches the live display and then when ready clicks on the 'acquire' button.  The data is averaged and saved.  The user is then asked if they want to acquire more data.  My problem is when the 'live' screen comes back, there is a huge curved slope.  How do I reset the data acquisition?
Ron

Your problem is that your buffer han been filled up and overflowed while waiting for user to deside what to do. This problem can be solved if you do a "dummy read" with the number of samples per channel input unwired or set it to -1. If the task acquires samples continuously and you set this input to -1, this VI reads all the samples currently available in the buffer. Do the dummy read then you leave your saving routine. And you will start with a fresh buffer in the "live" screen. After all your application is a continuously reading type application 
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)

Similar Messages

  • Resetting Data Acquisition

    I have a data acquisition vi that uses the express DAQ assistant express vi. with data in 'continuous acquistion' mode.  The data looks fine.  The user can then choose to average the data and plot it or save it.  Once the save function is completed, the vi loops back to the 'live' mode.  Now, there is a large DC component in the fft, even though there is a 5Hz highpass filter on the data.
    I have seen past discussions on resets that are required to eliminate this 'step' discontinuity' but I can't seem to find it now that I need it.
    Thanks in advance,
    Ron

    Use the Queue functions to send the data to another VI that will save the data while the DAQ VI stays in live mode.
    Using VI's in parallel loops will allow the data collection VI and the data processing VI to run independently of each other.
    Here is a quick link to the Queue example that is included in LabVIEW.  You can also find it by using the "Find examples" under the Help Tab.
    CLD | CTD
    LabVIEW 2011 SP1 | TestStand 4.5
    Attachments:
    Queue Basics.vi ‏22 KB

  • 2003 15GB dock connector iPod unexpectedly stops and resets

    Sorry if I just couldn't find this on the forum, but...
    For the last 6 months, getting worse all the time, my iPod regularly stops in the middle of playing (I hear a small pop in the headphones) and goes dead. After a few minutes, I can press the touch wheel and get the menu; the battery indicator shows that I have no power and then starts slowly filling up. Sometimes I can play the iPod again for about 45 minutes (this happens during my workout), sometimes I can get a full hour and part of the next day's workout, and sometimes it dies right away. When the iPod dies, the date and time reset -- it's like the iPod thinks I've done the manual reset.
    This happens when my battery is full or partly full -- I've started leaving the iPod charging whenever I don't use it. I don't get the no battery sign, just the indicator looks empty. And, after its sudden death it never fills back up more than halfway, even if I've had it fully charged and it's been playing for less than 3 minutes.
    I started using shuffle songs a lot and noticed the problem started about the same time. I've stopped shuffling songs, but I still have this problem.
    I've reset many times, and did a restore last week. Since the restore, things seem worse.
    Do I need a new battery? Do I need a new iPod? I know it's an old one, but by now it has sentimental value!
    Thanks much --
    iBook G4 Mac OS X (10.4.7)

    If I were you, I will first have a battery replacement - 3 years is a time to have a battery replacement

  • ITouch turns off and resets date to 1 jan 2000 when it is turned back on.

    My iTouch turns itself off at random and when I turn it back on it has reset the date to 1 jan 2000. I have the latest OS. I have done all types of reset. I have deleted all Apps. I have searched the site but I can find no solutions posted.

    I think I have solved the problem so I will document what I did in case it is useful to others.
    1 I opened the case. The youtube videos make it look easy but it is not. Mine is one of the original so it is old and stiff to open. No plastic implement was strong enough, so I tried a modellers knife - not strong enough, so I tried a penknife but this twists out as it has a curved blade. Finally I managed it with a chisel and considerable force to keep the blade in the hairline joint between the front and back of the case while I twisted it. If you try this wear gloves and don't try to open it in one go. Work around the edge widening the crack and letting it spring back. The idea is to loosen the springs all round a bit before actually openning the case completey.
    2 I decided to close it up again before proceeding to see if I could and whether it still worked. It had the greatest difficulty booting up again. It kept resetting every minute or so. So I openned it up again and examined it.
    3 The back case has the on/off switch and aerial in it and these contact the motherboard in the front case by means of springy contacts. Since the device is neither airtight or dust proof it seems to me that these contacts can become faulty with time and humidity etc. I cleaned them up, straightened them a bit so that a better contact would be made and put the case carefully back together again. It seemed to work ok.
    4 I have now tested it for a week and it has worked perfectly. Previously the longest it went without resetting was 36hrs. I shall keep testing but I am hopeful that the problem is now solved particularly as I have tested the battery life as instructed elsewhere in the forum and found it to be 24hrs which is very good.

  • Iphone 2g shuts down and reset date to january 1, 2000

    Hi all,
    I have an iphone 2g 8gb, i actually bought it from a friend last year, been using it 7 months now with no problem or any issue. But just the other day January 5, 2011(Wednesday) while charging my phone, it shuts down then I opened it and saw the date as January 1, 2000. Edited the date to current then it shuts down again, i opened it and it was dated Jan 2000 again then shuts down..
    I was thinking maybe it is the alarm bug. I don't who to run to since the phone is kinda old.
    Please help.
    Thanks!

    Hmm. Not sure what is going on there.
    Try powering it completely off and then on by holding down button on top until it allows you to slide to power off.
    The restore as a new device if necessary(unplug at the new/from backup screen to test before setting up as new.
    Worst case scenario: ask for an out of warranty repair price, if it is out of warranty.
    Articles on how to do these things are on apple website, but my be easier found on Google.

  • JPSX with a number of buttons and resetting data

    Any help on the following would be appreciated:
    I have a simple JSPX file in an ADF Faces project.
    There are a number of input text items as well as a af:selectOneListbox which has a f:selectitems tag. Next to this item I have a button which on pressing populates an ArrayList which is then rendered through the f:selectItems. This works fine!
    However on pressing buttons below the selectOneListBox item on the page it empties the list box of the data entries. How do I prevent this from happening.
    What I want to happen is once the List box has been populated I do not want to empty the data from the box unless I press the button adjacent to the box. All other buttons should have a null effect.
    Thanks
    Chris

    Hi,
    seems to be related to
    Re: ADF Faces issue
    Frank

  • How to reduce reading and recording data time/ Visual C++, PCI 6024E and PCI-MIO-16E?

    Right now I am working on a data communication programme. The time of reading digital signal and recording data is more than I expected, which is about 100 microsecond. I need to reduce the time. The software I am using is Visual C++ 6.0. I use two DAQ boards, which are PCI-6024E and PCI-MIO-16E. I have set the priority of Visual C++ to be realtime by task manager. The operating systme is Windows XP.
    I am wondering how to set the interrupt of reading or writing data to be the highest and stop any other kind of interrupt.
    Thanks in advance!

    The primary limitation you will encounter when trying to do high speed
    digital I/O using your E-Series hardware is that the digital lines are
    all software timed.  This means that for each and every digital
    read it is necessary for your software to issue a command to your
    hardware, read a single point, then receive the response from the
    board.  This prevents you from performing digital operations at
    very high speed.  In general, I would say that 100 microseconds is
    a very good response using software-timed digital I/O on a Windows
    computer.
    It is difficult to make a good recommendation without more detail about
    what you are trying to do.  You may need to consider switching to
    a Real-Time operating system, or upgrading your DAQ hardware to a board
    that will allow you to time your digital acquisitions on the board
    itself.  These devices, such as the m-Series DAQ or the PCI-653x
    series, would allow you to use hardware triggers for your digital
    acquisitions, change detection, and buffered data acquisitions to
    reduce the software overhead involved in a rapid acquisition.

  • I2C interface (Sensor Data Acquisition) LabVIEW

    Hi all!
    Hope you are doing great!
    Well I have a question which is more about asking all you for an idea!
    The Situation:
    I have a circuit board which has an On-Off Valve, Digital pressure sensors (manufacturer AMD) and Humidity/Temperature Sensors (make- IST Hygrosens). On the board all the sensors communicate as I2C slave devices and all the data from the sensors is read into an I2C --> USB adapter chip which further connects to the PC via normal USB cable.
    Additional to this board, There is a Relay circuit with a simple 1-pole relay which controls an on-off valve on the above Circuit board. This valve is controlled totally separate via a coaxial cable from the relay directly to the Valve. But the relay board has a I2C interface and it also acts as a slave device. The relay board has the same I2C --> USB adapter chip.
    Both the Relay board and Sensor board connect via USB to the PC which I suppose is the Master device.
    The software code written for this arrangement and Sensor data acquisition is too old and there are a lot of problems coming. I have almost given up troubleshooting..
    I now want to translate this automation system onto LabVIEW. I searched the NI website where there is a DAC card called - USB8451 which supports I2C interface... I am a beginner in LabVIEW and cant really make sense out of how should I go about implementing this system on LabVIEW..
    If you guys can please help me out to atleast start (like what all hardware I would need etc..), to have a clear picture, it would be great help!!
    Looking forward to your inputs and Thank you so much in advance!
    Cheers!
    Pramit

    NI provides a LabVIEW API for the USB8451.  If you use the USB8451, you would use the provided API to write a program that controls the USB8451 and you would do all of the I2C communication in your program.  This would mean using functions / SubVI's to connect to the USB8451 and then perform I2C operations through it.
    If you use USB already on your device, then you would probably use NI-VISA as the driver and have to get / write your own API to talk to the specific device.  The manufacturer may have a LabVIEW (or other) API available for talking to the device that you could get.  If not, then you would have to understand the details of how to communicate with the device and then write an API using NI-VISA serial functions.  This would mean making NI-VISA be the assigned driver for the device and then using VISA Serial functions / SubVI's to send the messages and receive the responses.

  • Synchronizing data acquisition&waveform generation

    I'm attempting to synchronize analog waveform generation and analog data acquisition using an AT-MIO-16E-1 board. I've followed the instructions in the manual on how to do this but with no luck (maybe the VI I wrote is incorrect).
    Any suggestions?

    Have you taken a look at the Simultaneous AI/AO examples that ship with NI-DAQ? They can be found in Examples>>I/O Interfaces>>Data Acquisition>>Simultaneous AI/AO. They will give you some examples of how to program your board.
    Regards,
    Erin

  • While loop and data acquisition timing worries

    Hello everyone, 
    I apologize in advance if this is a silly question, but I could not find the answer around here. 
    I have made a VI to record continuously from 64 analog channels at a 5kHz sampling rate. I then stream this data to a tdms file. The data acquisition and write functions are in a while loop. 
    I the same loop, I have a bunch of other loops, that each run on their own wait timers to help limit the amount of memory they take up. I am now worried that this may somehow affect my data acquisition timing.
    If I put a bunch of timed loops within another loop, does the outer loop run at the same pace as the slowest of the inner loops? And could that mess up my sampling rate?
    I have attached my VI, in case what I just wrote makes no sense at all. 
    Thanks for any tips...
    Attachments:
    Record_M8viaDAQv3.vi ‏237 KB

    Well, looking at your code you will only write to your TDMS file one time. You have multiple infinite loops within the main/outer loop. That means that the main loop will only run a single iteration because it cannot complete an iteration until all code within it completes. With at least two infinite loops inside the loop it will never complete. Not too mention the only way to stop your code is to hit the stop/abort button. NOt a very good way to stop your code. As someone once said using the abort to stop your code is like using a tree to stop your car. It will work but not advised.
    As Ben mentioned try to understand data flow better. You have unnecessary sequence frames in your code where normal data flow will control the execution sequence.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • I can't make or take phone calls, but i can message and use data. Has this happened to anyone else? I've gone through three Samsung Galaxy S5's in the past three days, two of which have this problem and one just stopped working all together.

    My phone doesn't have any cellular phone functions...but it CAN send text messages and access data. Has this happened to anyone else? I've gone through three Samsung Galaxy S5's in the past three days, the last two have this problem and the first stopped working all together. I've had new sim cards put in, ive done hard resets on the phone, i've rebooted the phone, done battery pulls, and tech support has reset the signal to my phone. Nothing has worked. (I just "upgraded" <- lol.... and my old phone IS turned off.)

    Im in 79707. So to recap my whole case: I upgraded my device using the verizon wireless website. I received my phone and switched my old SIM card from my Droid Razr Maxx HD into the new Galaxy S5. Everything worked fine until the next morning (May 31st) when I woke up and the phone wouldn't turn on. I took the phone to the local Verizon store and they were also unable to turn it on. They issued me a new Galaxy S5 (referred to as phone 2) and switched my SIM card into that one.
    With PHONE 2 i was able to make calls and receive calls, along with text and data for approximately four hours. After that, i was unable to use the phone function of the device, but text and data were still functioning. I took PHONE 2 back to the Verizon store where they attempted to hard reset the phone twice, they also installed two new SIM cards at the store. After this they would get the same error, which is the phone just reading "Dialing..." after attempting to make a call. The Verizon associate declared the phone "DOA" and issued me another Galaxy S5 (referred to as PHONE 3).
    PHONE 3 worked well, with phone text and data featured intact from when I received it on the after noon of the 31st until approximately 2:30PM on June 1st. I contacted Verizon Tech Support via Gmail phone to attempt the correct the problem. They reset the connection, had me do a battery pull, had me close the "phone" application, and erase the data and catche, then restart the phone. All of which had no effect. My phone is still able to receive texts and use data (even with wifi off) it simply cannot make or take phone calls. all it says is "dialing..." when I attempt to make a call. When other phones call my device it rings once on their end and directs them to voicemail, PHONE 3 does not ring on my end.
    I have made sure my old phone is completely powered down.

  • Triggering a 6024E into data acquisition from start and end number of finite pulse generator from a 6602

    My motion control system is driven by a 6602 I wanted to acquire analog current (to a voltage via I/V converter) from a 6024 AI when:
    (1) At the start of the pulse generation
    (2) Stop at the end of the pulse generation
    (3) Read every possible data between and stream it on the harddisk
    (4) Option to skip at regular intervals to reduce amount of data accumulation
    Anyone have some suggestions? What I did try and attempted was to "loop an AI from a triggered intermediate Analog Input VIs" this is rather erratic!My question for the analog input software are:
    (1)Can you trigger an AI to start a continuous acquisition?
    (2) How do you do AI from a "start" p
    ulse train to "end" pulse train?
    (3) How do you manage time for File I/O meanwhile doing (1) and (2) above?
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]

    "(1)Can you trigger an AI to start a continuous acquisition?
    (2) How do you do AI from a "start" pulse train to "end" pulse train?
    (3) How do you manage time for File I/O meanwhile doing (1) and (2) above?"
    Answer 1 and 2)
    Yes you can, This VI is part of the search examples that ships with LV:
    "Continuous Acquisition & Graph Using Digital Triggering and External Scan Clock
    Demonstrates how to continuously retrieve data from one or more analog input channels using an external scan clock when a digital start trigger occurs."
    Go to Search Examples in the Help/Contents of LV. Then pick I/O Interfaces/Data Acquisition (DAQ)/Analog Input/Triggering an Acquisition/Triggering a Continuous Acquistion.
    This VI is appropriate ifs you want to clock the DAQ with some clock (external scan clock) other than the on board clock.
    The start trigger required by the DAQ card will be a TTL signal attached to the PFI0/TRIG1 pin of you DAQ card (via whatever signal conditioning you have).
    The external clock also needs to be TTL and is attached to the PFI7/STARTSCAN pin.
    You tell it which AI channel to use and wire that up appropriately.
    All of this stuff is in the context help for the VI.
    Answer 3)
    You have a misconception of how the acquisition makes its way into a file on the hard disk. You don't really "stream to disk." The VI above will run a buffered acquisition. The DAQ card sets up a buffer that fills with the data continously. When you use the VI you set up how the buffer is configured, you will see controls for buffer size, number of scans to read at a time, etc. The acquisition runs data into the buffer continously and reads from the buffer are a parallel process where chuncks of the buffer are extracted serially. You can end up with a scan backlog where the reads are falling behind the data. Making the buffer bigger helps. All of this is limited by the sampling capability of the DAQ card. 200kSamples/second is for one channel of AI. Divide by 2 for 2 channels. etc.
    The short answer is that the VI and DAQ card manage the file I/O for you.
    The VI above writes the scan out to the waveform chart on the front panel. You will want to wire that data out from the AI Read Sub VI to a spreadsheet file in tab delimited form or similar.
    Look inside the VI block diagram. There is a While loop containing the AI Read. Every time the loop runs (unless you hit STOP), the AI Read plucks the specified # of scans from the buffer (starting from the last unread datum). If you wire the double orange wire from AI Read out of the loop (and set the tunnel for Auto Indexing) the Vi will build another buffer in memory that is a series of AI Reads appended to each other, a sequencial record of the acquisition. Here you put in a Write to Spreadsheet VI. This is in the Functions Pallete, it is the first VI in the File I/O Pallette (icon looks like a 3 1/2 disckette).
    There is more to it than this. The spreadsheet Write is 1D or 2D only. By running the array out of the while loop with auto indexing enabled, you create a 3D array. (If you turn off auto indexing you will only get the last array performed by the AI Read.) You will need to create a new array withe the pages of the array placed serially into a 2d array. I don't think I want to get into that. It isn't that bad to do, but you should get some time messing with arrays on your own, then you will see how to do it yourself. One solution is to only run the While loop once with a buffer big enough to hold the whole acquisition, or in other words no loop at all. I don't know how many scans you want. The other thing is by wiring that AI Read out of the loop you are creating an array that must be dynamically resized as the loop runs. Kind of a no no. Better to know what you are acquiring size wise and letting the VI set up buffers and array space that does not need to be changed as the program runs.
    Caveat: I am fairly new to this and I could be wrong about the arrays and buffers and system resources stuff. However, I have done essentially what you are trying to do succesfully, but not "continuously." I limited the AI Read to one large read that gets what I need.
    "Continously" is usually reserved for screen writes as in the VI above. The computer is not required to continually allocate space for an ever expanding array to be written as a file later. Each time this VI runs the While Loop the data goes to the waveforn chart. Each new AI read overwrites the previous one. Sort of like if you turn the Auto Indexing off. When the VI stops, the waveform chart on screen would show the same data as was written to the spreadsheet.
    Feel free to email me directly: [email protected]. I will help as I can.
    Mike Ross

  • How to synchronize the data acquisition from both GPIB and DAQ card

    I want to begin/stop acquiring the data from GPIB and PCI6024E card into Labview at the same time. Since the acquisition from GPIB is quite slow comparing to the one from DAQ card, I can not put both of them in the same loop structure. Is it possible to synchronize them?
    Thank you!

    Hi,
    I wanted to save data acquired from NI-DAQ (for example, NI 9234) in a file using the DAQ-mx ANSI C Code. The response I got was as follows:-
    One way to do it is with TDMS logging. DAQmx comes with functions designed to log to a TDMS file. This is a special file type that is used for collecting data in a logical format. It can be displayed in a TDMS viewer where data is separated into groups and channels. NI-DAQmx provides examples for how to log to TDMS. Look at the TDMS examples in the C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage directory.
    However, now I want to know is there a way that using that same C code, can we save the data in a .txt file format (Text File) instead of a TDMS file? We actually want to access that file through MATLAB (that's why we want to save it in text format).
    Also on an other note, is there a way we can access & open TDMS files by MATLAB?
    Thanks,
    Sauvik Das Gupta

  • Automatic data acquisition roi and integration

    HI, ,
    we are running a study into the ROI, , benefits and
    costs of investing into an automatic data acquisition system.
    found this resource
    http://www.highjumpsoftware.com/adc/VertexeraORCL022504
    that helps with the process -- it does not though
    cover best practices for how to integrate this
    system(s) with the underlying Oracle Apps 11 platform.
    any info on that will be appreciated.
    Thanks
    joe

    One period two spaces.  Not multiple periods.
    You have an inner while loop around your Write function with a True wired to the Continue terminal.  That loop will run forever and the outer loop will only run the first time.  You are forced to abort your VI to get it to stop.
    Get rid of the inner while loop.
    I would recommend looking at the online LabVIEW tutorials
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours

  • Safari is stop and reopen suddenly, when I use double tap and input data on safari. Do you give me a solution?

    Safari is stop and reopen suddenly, when I use double tap and input data on safari. Do you give me a solution?

    Tap Settings > General > Reset > Reset All Settings
    Then restart the device.
    message edited by:  cs

Maybe you are looking for

  • Ipod icon no longer visible on iphone

    I updated my 3GS iphone and now I can no longer see the iPod icon. I can access it through the multitasking tool bar. How can I get the icon back?

  • How to disable cache for the Dashbaord Prompt in OBIEE11G

    Hi Friends, I have a write back table with column a,b,c,d in the OBIEE. I am using column c as dashboard prompt for this report. I want to by pass the cache for the report as well as Prompt. I followed the following blog http://tipsonobiee.blogspot.c

  • Problem of view Form Guide in Workspace

    Hi, I am having error below when try to view the Form Guide in Workspace. [8/19/10 10:25:19:336 CDT] 00000077 GACompiler    A com.adobe.livecycle.formsservice.logging.FormsLogger logMessage ALC-FRM-001-501: D:\Adobe\LiveCycle8.2\lc_temp\AdobeDocument

  • Error Code (16) Transport Monitor.

    I am having an error code (16) Transport monitor error come up when I turn on my MacBook and again when I try to download Hot Sync to communicate with my Palm. Can someone help me fix this problem. It has only recently started.

  • In firefox auroras new camera API I am only getting 320x240 resolution images. Is this configurable?

    While testing Firefox Aurora's new Camera API I found that I'm only receiving 320x240 png files. For our needs this would have to be a higher resolution image. Is this configurable? Or is this an issue with the device or something else? I'm using the