04-09-2014 06:47 AM
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
04-09-2014 07:28 AM
can you share snapshot of your vi as i cannot open in my LV. some queries i want oyu to answer
are you measure you data by reading it form serial port or it is an analog signal and you are sampling through ADC card.
do you use while loop and read data (from serial or else) inside while loop
are you using array for storing and data and then save it in afile after your read operation complete
04-09-2014 07:53 AM
Your Write To Measurement File is set to overwrite the file if it already exists. Change that to append to the file.
04-09-2014 08:32 AM - edited 04-09-2014 08:35 AM
I tried with the option Append to File but then all the values are coming in different tabs on Excel sheets. I would like them to come on the same same excel sheet one after the other. in a coloum/rows
Here is a Vi snippet also attached.
04-09-2014 09:11 AM
Well, each acquisition should be a new group, so it is doing exactly what TDMS is meant to do.
04-09-2014 09:26 AM
I agree with you.
But is it possible to get the values in the same group ?
Thanks
04-09-2014 10:06 AM
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.
04-10-2014 02:06 AM - edited 04-10-2014 02:17 AM
Thanks for your reply.
In the project, the analog input voltage is changing each time I acquire set of samples. So thats why I was interested to log all the values of peak of the analog input (1 channel).
Kind Regards,
04-11-2014 03:31 AM - edited 04-11-2014 03:36 AM
Hello,
I am trying to save the data from my 6 analog input channels to a Excel file in 6 coloums, 1 coloum for each channel.
But there is an error in the connection.
Can someone help me with correcting it. I dont know how to do it,
Kind Regards,
Thanks
04-11-2014 03:37 AM - edited 04-11-2014 03:39 AM
here