Jump to content

grizzzly

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Posts posted by grizzzly

  1. Thank you! This is exactly I want to do, maybe I just sometimes not write it exactly because of my english .... I will try this that you posted here, thanks .

    QUOTE (dblk22vball @ Dec 9 2008, 08:44 PM)

    Not 100 % on what exactly you are asking for, but here is my interpretation.

    1. You have a simulated (or real) waveform and you are looking to save values from it to a file for processing in Matlab.

    2. The values that you want to save are: the X and Y values, ie the relative time (x axis) and the amplitude of the signal (y axis).

    I attached a picture of my interpretation. I am sure there is a more elegant solution, but just what I though of real fast.

    Basically you pair up the X and Y values of the waveform using the Pair XY values vi, get the dt (time difference between each value), combine them into an array, and then save the data to a text file (last part not shown).

    Let me know if this is not what you are talking about.

  2. Hi guys, I found VI that is probably the best for I want to do , it is GET XY VALUE , can somebody please post a VI with exemple how to use it ? and writes these x and y to txt file? I dont know how to do it, I am newbie :) thanks , I am doing it like this

  3. Hi thanks for your post, I will try that get waweform component ... But I would like to have in that file not date... but time of simulation..for exemple: 0.1 value( in 0.1 s of simulation) . And these files I am reading in matlab and I would like to build graph from that values so I need time and function value in that time

    QUOTE (dblk22vball @ Dec 8 2008, 04:27 PM)

    The waveform is actually made up of 3 parts: Value, Timestamp and dt. You need to use the Get Waveform components vi to get the value and Timestamp out. Then you can combine those in an array and save it to the file.

    Also, if you want all of the data points saved to the text document, and not just the current data, you will need to set the Append to File? input to True (default is false).

    I would also convert the Timestamp and value to strings to save to the text file, otherwise the timestamp will be saved as the time since 1906 (or whatever that date is :blink: ) and not in a format such as mm/dd/yyyy hh:mm:ss. It depends on how you want it formatted.

  4. Hello I need to write my signal to TXT file - in one column should be time and in other value ... Every values can rewrite that txt file. I am able to do this m but I have only function value in that file I am not able to write time, How to do this? thanks guys

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.