Capturing data instantane​ously after condition is met using 2 DAQ cards

Hi all,
I am wanting to sample a pulse and a sine wave at a low frequency of 1 kHz point by point sampling and upon a condition being met - the leading edge of the pulse being greater than a certain value - I the want to take a certain number (here 270) of samples of the sine wave at 50 kHz, multiple samples. I am doing this within a case structure and using a separate DAQ card. 
The problem is that when the conditon is met is does not capture the data at the higher frequency straight away. It misses part of the sine wave before commencing capturing the 'window' of the 270 samples of the sine wave at 50 kHz. I want to know if there is any way of speeding this up? I am aware that using an FPGA could help but I don't have access to one. 
The other solution would to advance the condition, i.e advance the pulse train by a certain amount so that I compensate for the delay in activating the high freq capture. I would need to set up this advance of the pulse train so that, after the delay in activation, it captures the data exactly where it is required to. What would be the best way to do this? I could delay the pulse train by a certain number of samples/ or delay the sine wave, or I have read that you can use the sample timer/counter within the DAQ card to change the 'trigger of the pulse train'. How would I implement this?
Attached is my vi. I would be very appreciative if you could help. 
Attachments:
2 DAQ cards Low and High Freq Sampling.vi ‏29 KB

I do not have DAQmx or any suitable DAQ devices so I have not tested this.
This is a start on cleaning and speeding things up. Note that writing to the front panel indicators at 1 kHz will not work because the screen update rate is on the order of 50-100 Hz. Also charts take a considerable amount of computation beacuse they need to (1) store data in the internal buffer, (2) erase old data if the buffer is full, and (3) (slowest) recalculate all the pixels in the display for the updated data. The cart should be moved to the parallel loop. The condition True boolean will only be true for about 5 ms out of each 100.  Look at the 5 ms boolean.vi  attached. It runs close to 1 ms per iteration. The boolean is true about 5% of the time but I never see it change. Remove that boolean from your VI.
With continuous sampling on the pulse channel and reading 1 sample every millisecond (assuming you get that fast) when the high speed sampling occurs it takes 5.4 ms to acquire the 270 high speed samples. So, ten times per second the loop takes >= 6.4 ms for an iteration. The next sample it reads from the pulse channel is the one which was measured (acquired) at 1 ms after the previous sample. Thus, this data point is read ~5.4 ms after it actually occurred. The next time you detect a pulse, it will be 5.4 ms late. The second one will be 10.8 ms late. Eventually you will get a buffer overflow, but your data will be useless long before the error occurs.
The Dual Sampler Simulator.vi shows a possible approach to the issue. It simulates sampling both channels at high speed.  I generate both a sine wave and a square wave and sample both at 50 kHz. It simulates reading 4000 samples at a time (equivalent to reading 12.5 times per second or every 80 ms). The square samples are then processed for the transition using the boolean Implies function. I do not recall whether the Conditional terminal was available in LV2012. I did not get an error when saving for previous version so I think it will be OK. The same thing can be done with a while loop with some extra logic.  This does not handle the case where the transition occurs at the boundaries of the 4000 sample segment. To handle those cases use a shift register on the outer loop to pass the needed samples to the next iteration. The 800 ms Wait makes it run slower than "real" time but allows you to see what is happening.
Lynn
Attachments:
2 DAQ cards Low and High Freq Sampling.2.vi ‏26 KB
5 ms boolean.vi ‏10 KB
Dual sampler simulator.vi ‏15 KB

Similar Messages

  • Standalone application for data acquisition using NI DAQ card

    I have made a standalone application in labview GUI for data acquisition and signal processing. if i have to run this application in any other computer what all softwares should be installed other than labview runtime engine...NI DEVICE DRIVER CD alone is to be installed or do i have to install any other software for data acquisition using NI daq card??
      thanks and regards
    Solved!
    Go to Solution.

    You should only need the run time engine, The device drivers for the device, maybe need VISA drivers if you are doing serial or something of that nature, You may need the channels or tasks created in NI measurements and automation if you created them there.
    There may be other things that you will need depending on what you include in your code and what tool kits that you have installed.
    Tim
    Johnson Controls
    Holland Michigan

  • Capturing data acquisition frames reliably at 100 hz using serial, how?

    Hi All,
    I am completing development of a 14 channel, 10 bit resolution, pic based data acquisition circuit. It transmits frames of 41 bytes (currently) at 100hz using serial. The embedded code functions satisfactorily. I can see data ok using hyperterminal. I am unsure how to optimise labview to get complete frames without hogging lots of cpu/system resource etc. eg. do I simply set the frame size (num of bytes) to retrieve and set this looping as fast as possible , and/or set the rate to fetch frames at the rate frames are transmitted by the pic? This may allow drift in available buffered bytes to finally overflow the buffer.
    I tend to lose 1 byte in 100 typically doing nothing but this increase
    s to chunks of bytes if I interact with windows.
    I have the feeling a number of decisions need making when setting up a serial link like this but I am unsure which settings best suit my application.
    Thanks in advance,
    Regards
    Chris

    Hi Lynn, Tristan,
    Please find the current llb attached. This has my last serial run and shows how the data gets glitchy after a number of seconds (toward end of the text box).
    I have spent time building the suggestions into code. I am not yet trying to strip out individual channels. At the moment I just want to get frames in reliably before moving on.
    It certainly looks a lot more reliable now but a few more questions have been raised. I think the idea of getting data in using 1 loop then immediately passing it for processing by another parrallel loop seems important for reliability.
    You will notice I grab a frame and it then goes into a que where it will be processed but this needs doing quickly as frames will be used in realti
    me.
    I have set up the code to trim the delay for both the get data from serial port loop and get 1 entry from the que loop.
    I am using 2 identical circuits in my product, 1 captures data from a leg harness, the other controls movements of a biped robot (servos) this occurs in "real time". I need to remove as much latency due to processing as possible.
    click on "video 3" on the right of the page for a prototype demo:
    http://www.robotic-systems.co.uk/products/full_system.htm
    I noticed that some of text embedded within text boxes used in subvi's can tend to float thro to the top level vi. I proved this by adding a bit of text and noticed it kept cropping up occasionally on the top level text box. I found this peculiar but cured it by deleting all chars in the subvi text box. Now I am concerned, could this be somthing to do with why I get glitches in text occasionally?
    Is there some labview feature to say flush all text, numbers and bools prior to running from the top leve
    l?
    I'd be gratefull if you have a look thro my llb and sanity check the flow of code and let me know what you think.
    Best Regards
    Chris
    Attachments:
    Monitor.llb ‏722 KB

  • Can you use an itunes gift card to purchase your monthly data plan?  For example, if I want to turn on verizon data for $20 this month could I use a gift card?

    I have this question too

    No, that would not work.
    Verizon would not accept an Apple iTunes Gift Card for payment on your data plan and Apple would not accept a Verizon Gift Card for payment in the App Store or iTunes.
    They are two different vendors that only accept their own gift cards in their own stores.

  • 1 Analog Input using a DAQ card and would like to save the data into an excel file

    As you may have realized, I am very new at using Labview 6.1. I have an analog voltage input that I would like to save in an Excel file as a 2D array (time, voltage). I was wondering if anyone knew a very simple way of doing this and could help me out. Thanks

    There are a couple example program online and in LabVIEW that I think you’ll find useful. You might want to consider just writing out a tab-delimited spreadsheet file that Excel can read rather than writing it out to Excel directly as this requires learning ActiveX and Microsoft’s Common Object Model.
    In LabVIEW, see the Write to Text File.vi in C:\Program Files\National Instruments\LabVIEW 7.1\examples\file\smplfile.llb. Writes simulated, timestamped data to a text file in ASCII format that can be read by spreadsheet applications.
    Online, you can look at:
    Stream Scaled Data (Voltages) to a Spreadsheet File
    Chart Analog Data from File, Using the Cont Acq to Spreadsheet.vi Example
    Hope this helps. Best of luck!
    Kileen

  • How to acquire data from 2 chs of the same DAQ card at different sampling rate

    I am using single DAQ card (either 6013 or 6014) in my system i want to acquire data from 2 (or more) channels with following requirements
    1. sampling rate of each channel should be independant of each other (say one is 20 Hz and other is 15 kHz)
    2. data from all the channels should be acquired simultaneously.
    3. coding must be done using DAQmx VIs
    I have tried out following things
    1. I created separate task for each channel: i found out that two tasks can not run simultaneously even though the channels are different
    2. I tried out single task with two channels included in it. and i used 'channels to Read' property to determine from which ch. i want to acquire data: this method works fine if the sampling rates are same. but if i change the sampling rate of one channel it gets reflected in other channels as well.
    can somebody help me out to solve this problem.
    i will appreciate if somebody can post the sample code as my deadline is approaching
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    Hi Dennis Knutson
    Thanks for your suggestion.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • For Agilent LCR Meter (E4980), which DAQ can be used for pc interfacing?

    hi, I have Agilent LCR Meter (E4980), I would like to interface with pc by using LabView program. My problem is how to use it and which DAQ card/system suitable for interfacing. Please advice. Thanks.

    My suggestion is that you do some research in Instrument Control. You certainly do no want to use a DAQ card for this. The Instrument Manual chapter 8 gives you your options for control. There is a LabVIEW driver located here.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Writing a file for prescribed amount of time in a while loop after the triggering condition is met

    Hello Guys,
    I am trying to program an application in which if the trigger condition is met it should start to write the file.
    I was able to do that, but if I want it to be written for certain amount of time, and once the trigger condition is met, it should continue to write the files for prescribed amount of time. I was not able to do this. The file name should also be updated accordingly.
    I tried to with some options by keeping the creation of the file outside of the loop, if I do that then if the trigger condition is not met it will stop writing and I dont want that, as once the trigger condition is met it should be true thereafter.
    So I cant keep any thing outside the while loop, bcaz then it checks the condition of the shift register for the trigger and I have it as a false constant.
    I am attaching my application which is kind of mess and I have written in the application where I am having problems. For every iteration of while loop it makes a new file, and i dont want that, I want to write specific amount of time data to the each file.
    Please take a look at my code and help me in solving the problem. Any insights and examples on how to do this thing will be a relief to me.
    Thanks in advance.
    Regards,
    Nitin
    Attachments:
    PXI_4462_Sync_and_Stream_trigger.zip ‏192 KB

    what i am saying is to keep track of how much data you have written and whenever you need to make a new file you make 1.
    here is a vi that i just made that should show you. let me know if you need any help understanding it.
    Attachments:
    new file exemple.vi.zip ‏21 KB

  • Retrieve raw captured data after report generation crash

    Hi everyone
    Yesterday we were performing load tests on a server. During which I created and I scheduled a User defined data collector set based on the system performance collector set. The data capture ran for 2 hours. It then proceeded with the process of generating
    the report. During this process I observed the Tracerpt.exe was slowly and consistently consumed memory. The generate report process was taking a while, so I came back to it 15 minutes later, to discover the process has ended, but no report could be found. 
    I'm assuming the process crashed.
    Is there a way to retrieve the raw capture data and attempt to regenerate a report? Where is the raw data temporarily stored?
    Is there any why to retrieve the missing information?
    Any help is appreciated.
    Ernie Prescott

    Suppressing Result Rows can be done in Query designer itself for one time. You need not to do after you get the report every time.
    If you always expect some 10 free chars constantly, i suggest you to insert them in Rows pane in Query designer but not in Analyzer. So that your report layout will be taking care with all settings what you want to do after the report generates in Excel. I mean you will get desired layout when you run the report first time itself.
    Suppress repeated key values also can be done in Query designer itself one time.
    By doing above, your report execution will not be tedious and it will be minimizing your efforts.
    Over all, What I have understood is, you are doing all sorts of settings in Analyzer after getting such huge volume of data, by which it gives you crash error.
    With all above steps, you can run your report with all pre-defined settings.

  • IMovie06HD Import Preserving Capture Date?

    Hi,
    I am importing iMovie06HD footage in to iMovie09. I understand that it only takes over raw footage which is fine. However, I would like the Event Date to be the Capture Date from "Command I" on a clip in iMovie06. The iMovie 09 import seems to use last modified date of the file which doesn't accurately reflect the date of the footage.
    I know I can manually adjust every clip but this would require me to go back and forth between programs and I have over 30 hours of video! I am also trying to avoid re-importing from my master miniDV tapes which I guess would work as well.
    Is the original meta data stored somewhere after the import? Any thoughts or suggestions are appreciated.
    Thanks in advance,
    Alan

    Yes. Just make a template in the File Renaming box of the Import window.  If you use YYYYMMDD or YYMMDD you'll get the capture date on the fly when you import.  Here's what I use. Hope this helps.

  • Importing from iMovie 06, lose capture dates

    When I import old iMovie 06 movies, the capture dates gets lost. Here is one of the original clips in iMovie 06:
    However, after importing in iMovie 11, the capture dates are lost.  I tried many variations, like import the iMovie 06 project, or cd to the *.iMovieProject directory and import the actual clips, etc.
    Now, good iMovie11 clips have the capture date imbedded in the file name (as in clip-2010-03-14 hh;mm;ss.dv).  However, the ones imported from iMovie 06 end up in iMovie 11 with simple names such as clip55.dv.  So it's not surprising I cannot see the capture dates in iMovie 11.
    So I looked inside the *.iMovieProject directory hoping to find the capture dates either in the file name or in a plist, but I couldn't (nothing in the plists below)
    ... Jan 23  2010 Cache/Thumbnails.plist
    ... Jan 23  2010 Cache/Timeline Movie Data.plist
    ... Jan 23  2010 Cache/Timeline Movie.mov
    ... Nov  8  2009 Media/Clip55.dv
    etc
    Finally, I opened Clip55.dv in QuickTime and looked at MovieInspector, but I could not see any capture date (similar to exif in jpegs).
    So obviously I missed them. My question is where in the iMovie 06 project can I find them?   If accessible, I can write a script to fix the clips imported in iMovie11 by changing their names. I tried it manually, and it worked.
    Thanks in advance

    Hi - Couple of things.
    Click on the offending clip that you imported from iMovie in your FCP Bin and type Command + 9 to see the item properties. Either report those item properties, or if easier, take a screen shot of the item properties and post that.
    Then click any where on the timeline you are having trouble with and type Command + 0 (Zero) to see the sequence settings. Either report those settings or take a screen shot of the Sequence Settings window and post that.
    In order for FCP to use the video without rendering, both the items properties of the source clip, and the sequence settings must match - and both must be within standard production parameters.
    Also, you can click on the source clip in the FCP Bin, then control-click on the clip and select Reveal in Finder from the drop down menu. Once that file is revealed, open it in Quicktime 7 and see if if plays correctly there.
    Hope this helps.
    MtD

  • Imported iMovie HD project clips have incorrect capture date - add-on info

    People converting their .dv files from the iMovie HD style into iMovie 09 style report some frustration at having to rename their clips to view them properly. For discussion, see:
    http://discussions.apple.com/thread.jspa?threadID=1344628
    Fortunately, within the thread, a kind soul has posted a solution - many thanks. This posting is an add-on to that thread, posted here because that thread is archived.
    Unfortunately, I could not understand the instructions fully, so I spent some time working out how to make it go, since the solution requires something beyond the usual drag-and-drop to work.
    *To Convert the Dates and Names of DV Files from iMovie HD to the Event-Date Format of iMovie 09*
    1. Download and Unzip the DVRecordingDate file. It produces a folder with four items: COPYING.txt, DVRecordingDate.class, README.txt and DVRecordingDate.java. None of these should be double clicked.
    2. Identify the folder that has your iMovie 6 .dv files. These files will be entirely renamed, so if they are used in any other projects, only work on a copy of them.
    3. Launch the program Terminal - it's in the Utilities folder of the Applications folder
    4. When you see a prompt ending in a $, type +cd /Users/yourname/Downloads/DVrecordingDate-1-1.0+,
    where /Users/yourname/Downloads/DVrecordingDate-1-1.0 is the folder containing the downloaded DVRecordingDate file. This will change the prompt that appears on every line, but it will still end with a $.
    (HINT: you can get the path name of this folder by selecting it in the Finder, and choosing copy. All you then need do is type cd in Terminal, and paste the rest in.)
    Now is when we rename the files - as stated elsewhere, the Finder creation date is NOT changed - it is only the file name that changes. However, this is enough for iMovie 09 to understand when the file was recorded, and where it should be stored within the events system.
    5. At the $ prompt, type +java DVRecordingDate -rename /Users/yourname/Movies/iMovie\ Events.localized/myholiday/Clip\ *.dv+, where +/Users/yourname/Movies/iMovie\ myholiday/+ is the name of the the folder that has your iMovie 6 .dv files. Again, this can be copied from the Finder, and pasted in after typing java DVRecordingDate -rename. The *.dv part os to ensure the program coverts all your files in the folder.
    A list appears:
    Renaming file(s) from, to:
    /Users/yourname/Movies/myholiday/Clip 01.dv clip-2003-08-31 20;37;41.dv
    /Users/yourname/Movies/myholiday/Clip 02.dv clip-2003-09-04 18;43;26.dv
    /Users/yourname/Movies/imyholiday/Clip 03.dv clip-2003-09-04 19;00;50.dv
    etc
    and in the Finder all the files are renamed.
    And that's it. You can now import the .dv files into iMovie 09 and it will give the files their proper dates within the system.
    Hope this saves someone some time...

    No, I mean that when I import old iMovie projects into iMovie 08 the 'capture date' of footage is not correctly imported (the .dv file creation date is read in instead). Sorry to confuse the issue with the comment about the camera: I just meant to say that all the equipment I used in my setup is fairly standard yet there is a glaring bug in this fundamental functionality.
    Regarding re-import: it took me ages to originally import my dv tapes to the computer & not really practical to go through that again.
    FWIW, I've not yet imported anything from dv directly into 08

  • Issue with Using Replacement path to pass values after condition in BI 7.0

    Hi All,
    I am using a replacement path variable in a query (Query 2) which is populated from another query (Query 1).
    Query 1 has a condition based on formula variables which works fine when I run Query 1 separately. It filters to display only entries that satisfy the condition (from 6 entries to 5 after condition).
    But the replacement path variable in Query 2 is getting populated with all the 6 values from Query 1 irrespective of the condition. I need only the filtered/valid records (5 records) to be passed..
    Does anyone have this issue? System seems to ignore the condition altogether.
    As a test, I changed the condition in Query 1 to TOP 2 entries. Only 2 entries showed up in Query 1. However, Query 2 contained 6 entries (initial list before condition).
    My condition setting in Query1 is set to "Most Detailed Characteristic Along the Rows".
    I am on BI 7.0 Support Pack 20. Is this a BI 7.0 issue?

    Hi,
    Your 1st query brings all the rows and just applies condition on front end / Analyzer for display purpose.
    If you check Over All Result it will show data for all 6 rows even.
    If you want to see proper result on analyzer you must have to set the properties -Calculations-Calculate Result As- Summation or Sum.
    I donu2019t think condition will help you to filter the number of rows and use as input query. It will work on analyzer only. Try to apply the condition on your final query (2nd query).
    Regards,
    Jd

  • Capture Date/Time - clobbered by LR 1.1

    Oh No!
    It appears that LR 1.1 has clobbered the Capture Date/Time after writing out the metadata.
    To try to be clearer, I've been using Elements 5.0 which organizes my photos (all jpg) by date. The date the photo was taken (which is also the date the file was created) are important to me. Those fields are respected by other Adobe products (Album, Elements 5.0 and Bridge CS2). Somehow LR 1.1 treats this date differently and with less importance than other Adobe and non-Adobe applications.
    I am not too concerned about the date that the metadata was changed, which LR shows. I want to see the date the picture was taken.
    The only way I managed to see that in LR was to customize the display using
    Jeffrey's Lightroom Metadata Viewer Preset Builder (for Lightroom 1.1). (Why I had to use a 3rd party add template creator to see the Capture Date/Time I don't know - it should be right there in LR - but leave that aside for the moment) .
    Anyhow, I manipulate the metadata by adding keywords and then tell LR to write that to the files. In this process the creation date/time vanished on a number of photos. The only way I could get it back was to use a backup of the original files (losing keywords and other data in the process)or to use Exifier to set the date/time, remove the collection from LR and reimport.
    Something as important as the date and time the photo was taken (file creation) is a key bit of data that should be readily available and visible in the metadata display and should not be clobbered or lost when writing out metadata to the files. I see there are other complaints about this and some expressing horror that Adobe didn't fix it in LR 1.1.
    My point is simple - for my purposes I cannot fully utilize LR 1.1 if the Creation Date/Time cannot be readily seen, or is in danger of being lost, I would have to use other software.
    Geeze, and I was beginning to get comfortable with LR...
    Maybe the good folks at Adobe have some comment and might be able to rectify this?
    In the alternative, is there something I'm missing about the way Capture Date/Time is supposed to be treated by LR users?
    Advice and pointers would be appreciated.

    Christopher wrote:
    "I hear ya, but if someone could just say, this is how dates are supposed to work ... that would be helpful. In particular, what fields or fields does the Metadata Browser use to sort an image into a date bin? If I knew that, I might be able to determine why so many of my images are put into the Unknown Date heading."
    Here we go:
    1. None DateTime tag defined in exif (or DateTime tags corrupted)
    -in Metadata Browser (left panel) Date will be seen as Unknown Date.
    -Thumbnail show no DateTime value,
    -in Matadata (right) panel, there will be no DateTime caption visible
    2. Only ModifyDate defined in exif
    -in Matadata Browser value of ModifyDate will be shown,
    -Thumbnail show no DateTime value,
    -in Matadata panel, ModifyDate will be shown as Time
    3. Only CreateDate defined in exif
    -in Metadata Browser value of CreateDate will be shown,
    -Thumbnail show no DateTime value,
    -in Metadata panel, CreateDate will be shown as DateTimeDigitized
    4. Only DateTimeOriginal defined in exif
    -in Metadata Browser value of DateTimeOriginal will be shown,
    -Thumbnail shows value of DateTimeOriginal,
    -in Metadata panel, DateTimeOriginal will be shown as Capture Time
    +in Medatada panel, DateTimeOriginal will be shown as Time
    5. All three DateTime values defined in exif
    -in Metadata Browser value of DateTimeOriginal will be shown,
    -Thumbnail shows value of DateTimeOriginal,
    -Metadata panel shows CreateDate as DateTimeDigitized,
    +Metadata panel shows DateTimeOriginal as CaptureTime,
    +Metadata panel shows ModifyDate as Time
    That's it. Now... why are we confused in LR when speaking of DateTime?
    In Metadata Browser any of exif's DateTime value can be shown. That is, looking at this panel only, we never know what Date is being used! Anyway, DateTimeOriginal has priority: if DateTimeOriginal exist, it will be used for Metadata Browser -otherwise any other existing exif DateTime tag will be used.
    But if only DateTimeOriginal is missing (so both, CreateDate and ModifyDate exist), then CreateDate has priority over ModifyDate: CreateDate will be shown.
    Priority in short: DateTimeOriginal, CreateDate, ModifyDate.
    Thumbnails: only if DateTimeOriginal exists, thumbnail will contain DateTime value -otherwise thumbnail's DateTime will be blank.
    Sorting of thumbnails per CaptureTime (hence by exif DateTimeOriginal) is another story and can be quite confusing at first sight... because DateTime priorities seems to be the same as for Metadata Browser:
    If exif DateTimeOriginal exist (=CaptureTime in LR), then this value will be used for sorting. But if this value is missing, LR will try to use exif CreateDate and if this is missing too, ModifyDate will be used. OK, there's some logic... except, why I'm repeating "if this tag is missing..."?
    Because when you modify/rewrite some image, then some tool may damage DateTime in exif -remember: damaged DateTime tag is the same as tag doesn't exist!
    In short: if there's exif DateTime corruption involved, you can't be sure which of three DateTime tags is being used for sorting. For some images DateTimeOriginal will be used, for those that are missing that tag, CreateDate will be used instead.
    Images missing exif DateTime tags (or these are corrupted), will be shown as first (sort A-Z).
    Bogdan

  • How to save captured data to a log file to prevent lag?

    Here is my VI.
    I read in an string of this format (the channels number are now 32 only but will like to increase up to more than 10000 later)
    Time\sStamp\tChannel:00\tChannel:01\tChannel:02\tC​hannel:03\tChannel:04\tChannel:05\tChannel:06\tCha​nnel:07\tChannel:10\tChannel:11\tChannel:12\tChann​el:13\tChannel:14\tChannel:15\tChannel:16\tChannel​:17\tChannel:20\tChannel:21\tChannel:22\tChannel:2​3\tChannel:24\tChannel:25\tChannel:26\tChannel:27\​tChannel:30\tChannel:31\tChannel:32\tChannel:33\tC​hannel:34\tChannel:35\tChannel:36\tChannel:37\tIP\​sAddress\t\n
    The problem I am now having is that, the data is through UDP sending in, the program start off normal capturing all data, but when data are captured and saved to the .log file after an hour or more, some of the data will start to be missed.
    I guess this is beause the .log file is becoming larger, and in the rate of 10Hz (now), the file open and close can't chase up? so some data are missed?
    Anyone could advice or amend the VI so that I could have a better way to save the captured data? making a buffer? or what so ever? Hope someone could help =]
    Thanks.
    Attachments:
    myVI.zip ‏32 KB

    milkbottlec wrote:
    Just found some error when the data are saved.
    At some point, there data just copy this whole thing and save in the middle of the excel
    ""Time\sStamp\tChannel:00\tChannel:01\tChannel:02\​tChannel:03\tChannel:04\tChannel:05\tChannel:06\tC​hannel:07\tChannel:10\tChannel:11\tChannel:12\tCha​nnel:13\tChannel:14\tChannel:15\tChannel:16\tChann​el:17\tChannel:20\tChannel:21\tChannel:22\tChannel​:23\tChannel:24\tChannel:25\tChannel:26\tChannel:2​7\tChannel:30\tChannel:31\tChannel:32\tChannel:33\​tChannel:34\tChannel:35\tChannel:36\tChannel:37\tI​P\sAddress\t\n""
    I don't know which part handling the error is wrong.
    If possible, maybe could you help me delete the whole auto naming function (move it aside) and just add in a promt user for saving directory thing ok?
    Thanks!
    Here is the file and i added the excel in.
    Hi milkbottlec,
          Regarding the headings in the middle of your file, I imagine the filename changed temporarily.  When the name changed BACK to an exisiting name, the headings were added (anticipating a new file.)  I'm more curious about the "lost" data problem.  Do you still see holes in the data?  If so, were any bad filenames recorded?
    Sure! Why not present a file-dialog instead of automatically generating filenames,  Looks like you've mastered the "True/False" case, why not build on what you know?  Experiment with the File Dialog express VI on the FILE\Advanced File Functions palette.  Personally, I'm a fan of auto-generated filenames, though, not necessarily built from the data. 
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Maybe you are looking for

  • How do I import a photo from the internet or my own photo on my computer into illustrator?

    how can I use photos from the internet or photos of my own in my computer as jpg files in illustrator?

  • Coumputer Shutdowned During Bootcamp Disk Partitioning

    Hello All. I have a major problem here, hope for solution ASAP. I am installing windows on mac, and suddenly, my macbook pro(mid 2012) had shutdown. When i restarted it, my hardrive is in a partitioned form, but i cannot find my bootcamp drive. So no

  • Asset PO Storage location

    Hi All,         we have created a Asset PO with meterial code. Material Type for Material is FHMI (Tools). & At Plant level price & quanlity updated is avilabe for this metarial type. Now i am not able to enter Storage location while doing G.R. what

  • Query does not uses indices

    I am using 10.2.0.1 database instance and wrote a SQL query which involves several tables but I had made sure all columns in where clause has got proper indexes. The query is fairly simple does not use any function etc. in where clause but inner join

  • UCCX CAD in VDI

    Can anybody point me at documentation for, or otherwise have experience of, support for CAD in UCCX v10.x in a VDI environment. I am specifically looking at VDI on Wyse terminals but any comments on VDI generally would be appreciated.