05-03-2019 03:50 AM - last edited on 11-05-2019 09:08 PM by Kristi_Martinez
Hi,
I am using R & S FSL Spectrum analyzer. I want to store the trace of each sweep in columns of an excel sheet.
I am using the write to measurement file VI. But I am unable to write new sweep data in next column.
Can you please help me in writing the multiple sweeps in multiple columns in an excel sheet.
Example:
sweep 1 ---> write to column 2
sweep 2 ---> write to column 3
''
''
''
sweep 1000---> write to column 1000
Solved! Go to Solution.
05-03-2019 05:50 AM
05-03-2019 07:38 AM
If you have the Report Generation Toolkit, you can write individual Excel columns one at a time (indeed, in any order), but it will be easiest to do as GerdW suggested and write a 2D Array "all at once".
Bob Schor
05-04-2019 07:18 AM
Thanks Mr GerdW, Its working.
Now I have a new problem.
I need to time stamp each sweep. I am trying to store the date and time string in first column.
Can you please go through the below attachments and help me.
Index for attachments
1. Required csv file time stamp information (excel data. PNG)
2. Time stamp block labview (time stamp labview.PNG)
3. Labview program.
05-04-2019 07:57 AM
It always helps to attach your code when you first post. Some comments:
Bob Schor
05-04-2019 09:47 AM
Thanks for the reply,
I am taking 1000 samples in each sweep which are stored in one column, the recording continuous in along the rows for 10000 sweeps.
Yes the sampling is continuous
I want to record the date time with seconds in the same excel sheet for every trace. I have tried spreadsheet string to array but I am unable to store the date time (only 5 is written when 5/4/2019 10:34:32 PM should be written).
Please find the attachments.
Can you send me an example program writing the time and date continuously in a spreadsheet pls.
05-06-2019 03:32 PM
You only get a "5" since Excel doesn't use the "/" in their date formats. I'm guessing that Excel checks if the first character to see if its numeric, and if so tries to force it to a default numeric or date/time format which your string doesn't fit, so it stops after the first character giving you a "5".
You can try..
1) Enclosing your date format in " ".
2) Formating your date and time to fit an existing Excel format (D-M-Y HH:MM).
3) Use an Excel template where you set the row/column cell format to accept your data/time format.
Craig