06-25-2014 01:51 PM
I'm trying to write to tdms file, my data is in 2d array 2 channels and 1000 samples each channel (no time column in my data), i'm able to create file and data is saving into it also i'm trying to read the same saved file and display it in graph and table. but i'm not able to get correct data on my graph. and how do i output data to tabular format. i'm using express vi's to write and read. any settings i have to do?
06-25-2014 01:55 PM
plz attach code
06-25-2014 02:12 PM
Hi abhishek.d,
See the examples in labview/Find Examples/Directory Structure/ File IO/TDMS/Express Read and Write you can check your settings with those expressVI's or you can put your code in those examples and only change the path in the settings to write and read the file
06-26-2014 02:01 PM
Thanks a lot for your information , examples helped me a lot now colud able to do write and read( i used Express VI's).
I have one more requirement while writing data to TDMS file i want write the data to TDMS file based on userdefined time.
Suppose if user enter 60 min it should only write data for 60 min and stop. Any Ideas how to do this..?
06-26-2014 02:31 PM
You can use the ElapsedTime.vi in order to stop the loop that is writing, just like the code in the link...in this example the program will stop after 10s
Hope it helps
06-29-2014 02:22 PM
06-30-2014 04:56 PM
Thanks a lot for your information.. right now i had implemented the TDMS reading using Read measurements file Express vi ,i have configured it to read the entire data ,, Then if the file which i'm trying to read consist of 2 channles then how do i provide an option for user on the front panel to select the Channles. suppose if he wish to see only one chanel data at a time. can you please tel me how to do this.
06-30-2014 09:42 PM
07-01-2014 12:03 PM
After facing lots of issues with the express vi's(basically memory full and all) i finally decided to use basic TDMS vi's..
I succesfully used TDMS Open , TDMS Write and TDMS Close. i only wanted to know that i need to provide an option to the user, if user click the button it should popup for the location in the system to name the file store it.
07-01-2014 12:33 PM
That can be a good idea, but it can also cause problems in that a user could save a file anywhere.
Sometiems you have to ballance the risks involved in giving users open-ended choices.
Mike...