CRIO write to measuremen​t file

I have been searching for a solution like mad but I have not found one yet.
I am using a cRIO-9002 with the cRIO-9215 card.
In regular labview one can create a signal generator and use the "write to measurment file"  function and a nice  file is created so that data points can be plotted versus time. 
Now once I try to do this in a Real Time VI for some reason the file never gets created.  I can not  figure out why. 
The whole point of this operation is to take accelorometer data from  an inflight RC helicopter but I am using a signal generator to simulate an input for the accelorometers.  I am including code just in case someone what to take a look. 
I am also open to any other solutions you might have. 
This should be a simple task but I can't seem to get it to work.
Thanks in advance,
Anthoney Pennington
Attachments:
cRIO data capture.zip ‏158 KB

Hi Carsale,
I tested out a really simple vi using Write to measurement file.
Double click on the express vi.
I simply directed the path to C: (root directory of the controller)
You can then FTP to it by specifying its IP address ex: ftp://10.0.35.160/
Hope this helps
Van L
NI Applications Engineer
Attachments:
Untitled 12.vi ‏77 KB

Similar Messages

  • Write to measuremen​t file help

    Hi,
    I am a beginner. I am working on a VI.
    But have some problems that I couldn't solve.
    Here is the VI attached, I get on the output the positive and negative peak values which I then write to a mesurement file.
    But now I just get my last values of positive and negative peak in the measurement file.
    But I there were different values before that last values also. I want to save all the values, or every time that values changes on postive and negative, I would like to save all values to a file.
    Would be great if someone can help me with it.
    Regards,
    Raj
    Attachments:
    VI_HELP.vi ‏103 KB

    If you did the TDMS file your self (not use the express VI).  Then you could specify the group to write into and the channels.  It sounds like you want to add new channels each time you acquire a set of samples.  Look in the example finder (Help->Find Examples) for TDMS Write Triggered Data.vi.  It looks like a decent example to get you started.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • System time in Write TO Measuremen​t File

    Hi, everyone. I'm Sorin.
    I use a DAQ 6210 in Labview 8.2 to aquire some analog data at 1 sec,and i have 2 questions, please:
    1. I need to record the data into a file .lvm, so i use "Write TO Measurement File" module with one column of time (X axe). But this time is relative, and i want to be system time instead. Is there any way to resolv that ?
    2. Also, in my Waveform Chart i put absolute time because i couldn't find system time, though i need it. How can i change that ? Although, once i played with charts, and i succeeded to see system time, but now i can't. And i'm sure it wasn't complicate. 

    Hi Sir
    I had similar problem. I tried to write to a measurement file with absolute time, instead of relative time here I got.
    Also, I want the format to be sth like this 13/09/25 18:16:01.
    Could you help me?
    Thanks
    LabVIEW Measurement
    Writer_Version 2
    Reader_Version 2
    Separator Tab
    Decimal_Separator .
    Multi_Headings No
    X_Columns Multi
    Time_Pref Absolute
    Operator FriedmanLab
    Date 2013/09/25
    Time 14:09:10.2151017189025878906
    ***End_of_Header***
    Channels 1
    Samples 1
    Date 2013/09/25
    Time 14:09:10.2151017189025878906
    X_Dimension Time
    X0 0.0000000000000000E+0
    Delta_X 1.000000
    ***End_of_Header***
    X_Value Untitled Comment
    0.000000 21.787387 Enter a description
    10.000572 21.847446 Enter a description
    20.001144 21.841562 Enter a description
    30.000716 21.908628 Enter a description
    40.001288 21.902826 Enter a description
    50.004860 21.963112 Enter a description
    60.035434 21.967730 Enter a description
    70.031005 21.968933 Enter a description
    80.011576 22.039718 Enter a description
    90.000148 22.065121 Enter a description
    wei shen
    Attachments:
    Untitled.jpg ‏74 KB

  • Improving Write to Measuremen​t File Rate

    Hello again everyone,
    I was wondering if I could once again get some help with my VI which is dealing with data aquisiton, display and logging. I'm attempting to display and record all the data that is incoming serially from some external ADC boards. The data is received at 500Hz and I am trying to currently record this through the use of Write to Measurement file, however i'm finding that I am not recording all the data that is captured into the file. When I tested this code I found I was only getting a recorded sample rate of about 3Hz... I'm looking to reach at least recording the data at 50Hz minimum, however i'm having trouble figuring out how.
    I currently have a global loop with a delay of 100ms, however reducing this increment did not noticeably increase the rate at which the data is recorded. I suspect it is due to the time taken to carry out everything within the loop, however I don't know how to improve this, using a different structure perhaps? If someone could take a look at my VI and give me some pointers on how to improve the cycle rate that would be awsome.
    Also, I find that the display is quite laggy in displaying the incoming data. Again this wasn't improved by changing the delay in between the loops or selecting the synchronous display option. The delay in inputing data at the ADC and seeing the result on the screen was somewhere around 1 second!
    Any help would be greatly appreciated as I don't know how to sort this problem out.
    Thanks in advance!
    Stirling
    Attachments:
    Serial read v2.2.vi ‏136 KB

    Hi Stirling,
    I don’t think it’s a problem with the Write to Measurement
    File.vi. You need to have a look at the VISA Read.vi. You are reading 5K at
    every iteration of the loop and that could probably be causing the delay. A
    great way to troubleshoot this would be to turn on highlight execution.
    Also, you should consider using the Array to Cluster.vi and
    the Convert to Dynamic Data.vi in the Write to Measurement File.vi block. This
    shouldn’t effect anything; just a suggestion to take advantage of LabVIEW functions.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Does write to measuremen​t file need a blank file?

    Do we need to supply a blank file to write to measurement file? I am supplying a file with some text headers in it to my Write to measurement file, and for some reason it generates Error 100, saying that it is "not a path". I am not sure, if I need to supply a blank file or not. Also, is it possible to get rid of the headers that write to measurement VI itself generates in the file, and supply my own headers instead?
    Thanks.

    Please stick to your original post, where you are already being helped on this issue.

  • How to name columns in "Write LabView Measuremen​t File" Express VI

    Hello, I am inputting two signals into the "Write LabView Measurement File" Express VI, and although the data is recorded correctly, there is no separate header for all the y-values (I only get the X-value column labeled: X_Value), and then there is a "Comment" field right next to it. How do I name these y-value columns so that the header appears alongside the X_Value tag? Thanks.

    I don't want to read from a LabView measurement file. I'm saving in a file; that's good enough. I just need to save it in headed columns. Any suggestions?
    Here's a test of the program with two random data inputs, and a picture of the output.Message Edited by Doagie on 06-13-2005 01:22 PM
    Message Edited by Doagie on 06-13-2005 01:22 PM
    Attachments:
    1.bmp ‏218 KB
    2.bmp ‏405 KB

  • Write to measuremen​t file

    Hi guys,
    i'm saving analogue data to write to measurement file in LVM format. When i open the file with word pad or with note, there is a gap in the beginning of every raw and then follows the number.
    Is there a way to delete this gap? 
    Thank you in advanace for your time
    BR,
    Elias

    Did you specify a width for the data?  If you did, there will be spaces to make the number string be have the width number of characters.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Write to measuremen​t file VI - every second, is that too fast ?

    I use the write to measurement file VI to save 5 values + a comment to a file. The VI is in a loop. The VI adds new values to the same file every time it is called. In one of the tutorials it is said "VIs can be more efficient if you avoid opening and closing the same files frequently". I understand that; the write to measurement file VI does open and close the same file every time it is called.
    I want the VI called every second to save new data. Tests I did with this rate did show problems. However, what is meant by frequently? Every second? Every millisecond? So my question is: is saving every 1 second, like I want, likely to cause problems, or isn't that time period hardly a problem? Or is there a better solution (although this VI gives me all possibilities I want, including saving a comment and saving to multiple files with nice filenames; I would really like to use this VI).
    -- flying dutchman --
    Attachments:
    write every second.jpg ‏25 KB

    The answer lies halfway between mine and Nukem's answers.  Instead of storing all values in a shift register until the end, you simply store them, for say 1 hour, and append to the file.  This also enables you to save some of your data in the event of a power failure or something.
    Use a nested for loop, the inner loop will run for say, 50 or 100 iterations, storing values in a shift register array.  Upon exiting this loop, the data is appended to your file.  The outer for loop will run for how many iterations out need.  
    For some simple examples, lets say you need 10,000 loops and you want to save every 100 iterations.  Have the inner loop run 100 times and the outer loop run 100 times.  

  • Write to measuremen​t file resets to 1904

    LV 2014
    Windows 7 Professional
    64 bit OS
    The first run of this vi creates an excel file that is time stamped correctly.
    The second and subsequent runs, the time stamp is reset to 1/1/1904 00:00:00.000.
    When I click the state 1 button, the USB DAQ's measure temp and voltage. Some calculations happen. 
    The data is sent to state 2 via local variables. 
    Write to Meas File makes an excel file. Settings as shown in picture. In advanced settings in Write to Meas File, absolute time is checked. 
    Can you help me get back to the future? 
    vi saved as Main 2014 and 2013 respectively. 
    Solved!
    Go to Solution.
    Attachments:
    write to meas file settings - reset to 1904.PNG ‏66 KB
    Main.vi ‏136 KB
    Main.vi ‏115 KB

    Open up your Convert To Dynamic Data node.  You have it set to the time to be "Zero".  You want it to be set to "Now".
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Extending decimal points on timestamp for write to measuremen​t file .vi

    Hello Everyone
    Currently I am collecting a bunch of Fieldpoint Channels in LabVIEW (about 190) which is a lot of instrumentation. Right now we want to be sure the computer can keep up and read all of the channels every second. To test this theory I want to use the WTMF to get a timestamp for every channel (seems to be the easiest way).
    While reading the file I get like 5.68 so two decimal places. I was wondering if there was a way to get a more accurate time reading down to the millisecond. I know this is three places after the decimal point, but I was hoping I could extend this to 5-6 places past the decimal point.
    Usually when saving data I use the write to spreadsheet with one time column and can just format the readings through that, but for some reason I cannot figure this out with the WTMF
    If there is any input to check these time differences besides doing the above, that would also be appreciated.
    Any input would be amazing.
    Thanks so much
    Tanya

    Hi vaib,
    as i said already here, http://forums.ni.com/ni/board/message?board.id=170​&view=by_date_ascending&message.id=332115#M332115 i think you can´t stop the writing process. If you start them, then you have to wait til the vi is ready. To measure the time you can use the "Tick count" function. See the attached picture.
    Mike
    Message Edited by MikeS81 on 06-17-2008 03:34 PM
    Attachments:
    Unbenannt1.PNG ‏12 KB

  • About "Write LabVIEW Measuremen​t File" Expres vi. I got problems with ENABLE function

    It is a traditional DAQ problem. I acquire some data and I want to write it on file only if voltage value is greater than a constant value (I used "Comparison" Express vi to do comparison). This mean that enable must depend on the result of comparison. I dont want to write unuseful data. What happens is that if the last scan is greater than the threshold, all data is written; if the last scan is smaller, all data is not written.No matter if intermediate scan result is zero or one.
    Attachments:
    My_Data_Processing2.vi ‏423 KB
    pulse.lvm ‏4 KB

    There may be a bug in the comparison VI. I experimented with simple waveforms (0,0,1,0,0) and (0,0,1,0,0,1). I used the greater than with a cut off of .5. I also set the VI to output one answer for the entire sample.
    I saw that the VI outputed 0 for both data sets. When I used the property page to invert the input, both sets outputed 1. I believe that if you just inverted the output of the comparison VI, you will be fine.

  • Attach labels for write to measuremen​t file and graphing

    I am currently having alot of problems with attaching labels to double type of wires and changing the label attached to the dynamic type of wires. I want the write to measurement file to have the correct headings but the current headings for the columns are displaying untitled or change the heading for the dynamic type of wire. I attached a picture of the program and I would be very grateful if anybody knew how to change these headings.

    Try this VI I made. It takes in a Double signal and a string, names your signal, and outputs it as a Dynamic Data.
    I used this with the Write to Measurement File without any issues!!!
    To name a Dynamic Data Signal, use the Set Dynamic Data Attributes VI found in Express > Signal Manipulation
    Hope this helps,
    Cheers
    Attachments:
    Name DBL Signal VI.png ‏59 KB
    Name DBL Signal for Measurement File.vi ‏35 KB

  • When I place a 'write to measuremen​t file' express I get an 'Error in prop page constructi​on: Control Label: Streaming' Using Labview 8 on XP. Any ideas?

    When I place express 'write to measurement file'  I get an error
     'Error in prop page construction:
    Control Label: Streaming
    Couldn't find control/constant on the instance.'
    Help!!!!!
    Please.
    Regards
    Derek

    The error happens as soon as I place the symbol.  The symbol is there and the properties are all accessible, but will not run.
     I enclose word doc with error messages on.
    Many thanks in anticipation
    Derek
    Attachments:
    LabviewA.doc ‏86 KB

  • Problems with write to measuremen​t file

    My VI doesn't seem to write my signal properly when writing is enables.. however, if i change the "Write to measurement file" Express VI to a Write to Spreadsheet function, the signal is written correctly. From what I understand in previous discussions, there is a bug associated with enabling a write to measurement file, so is there a way to enable write to spreadsheet instead of using the express VI or is there a way I can bypass this bug?
    Thanks,
    TFlax
    Attachments:
    Analog test and collection.vi ‏700 KB

    This is my second program ever written, first in matlab, so I am very new to the field. So why I choose one way over another I have no reasoning, all I know is that it works. I am collecting electromyography analog signals, with a range of +/-5V.. the "bad" writing with write to meas file is that I am getting a flat signal (range between -.01 to +0.01, give or take).. where when written with write to spreadsheet, the signal has proper voltage range and normal frquency and amplitude characteristics seen in EMGs.
    I tried using a case structure for the write to spreadsheet, however it only writes the buffer size during continuous sampling. I need it to write the entire time the boolean (enable button) is true, also the enable button is operated as switch when pressed.
    The discussion about the write to measurement file: http://forums.ni.com/ni/board/message?board.id=170​&message.id=454380
    Thanks again

  • Binary file is greyed out in Write Measuremen​t File express VI.

    I am running labview 8.2 on Fedora 7 Core.  I have also installed it on an earlier version of fedora that was in line with the supported red hat distribution.  The problem is that when I try to use the Write Measurement File express VI, the binary file option becomes greyed out after the dialog box opens up.  It is present for a second but it is impossible to select.  When I have tried bringing over a vi written in Windows (where the binary option was available), the option is also disabled.  I am trying to avoid writing the file out in lower level code since I want to use the auto file name generation available under the express VI.  If any body knows a workaround or has some sample code that writes out a new file for each measurement with the date and time in the filename let me know.
       Thanks

    Hi Ikiller,
    Is this still occurring?
    Could you please provide a screen shot to show the behavior?
    Thanks!!
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

Maybe you are looking for

  • Jobs not getting displayed in ECC

    Hi We implemented Redwood 8.0 and scheduled some jobs using that. The jobs ran successfully in  ECC server, but since then there is no jobs that we can view in SM37 All jobs are executing successfully, but there is no log in sm37. Alos the JOBLOG fil

  • Will Pages allow me to insert page numbers later in the document?

    I want to add the page number in my document and send electronically. But, I want page numbering to begin on the third page. When I add the page insert function, it doesn't (?) allow me to reset the page number. Certainly there is a way, please help.

  • IPhone using wrong apple ID and I can't change it

    I've had an Apple account for so long, way before iCloud or .me email accounts were around, so I have an old email address that is NOT a .me or .icloud ID. This whole transition to .me, and then .icloud has been nothing but confusing. I just noticed

  • Firefox 4 is being used and can't be uninstalled and will not open in XP

    Firefox 4 will not start when I click on the icon on the desk top, I was going to uninstall it and start again, but the uninstall says that Firefox is being used, it does not show up in the task manager though. This is in Windows XP. Is there a probl

  • PDF Portfolio - add web link to image

    The layout for my pdf portfolio is an image where i want to have links to.html pages over the image.  Is that possible? The only links that I see you can drag on the image are images or .pdfs. Thanks!