Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting plot data from SR850

Hi,

I am using Lock-In Amplifier SR85. I am running a sweep for 10 seconds with 32Hz scan rate , so i get the waveform data  in the form of 320 points, and not voltage vs. time(i am writing the data to a spreadsheet with transpose and then saving it as .csv which opens in excel too). I am attaching the folder containing "SR850 Appplication Function.vi".

Kindly comment on it and tell me:

    how to get the data as voltage vs time?

   Thanx in advance

Zia 

 

0 Kudos
Message 1 of 2
(3,579 Views)

Hi Zia

 

Had a look at the driver you have. The code in the driver only supplies an array of doubles for the actual data, no timestamp information. You'll have to create the timing yourself by modifying the code. What you can do is change the code so that a timestamp is created when the acqusition starts (t0, start time). Get Date/time in seconds.vi is one option. You then already know how many samples and at which frequency you acquire data so you can calculate the time distance between samples (dt). You can then extract the array from the trace cluster (us Unbundle) and with the help of t0 and dt create a waveform, which will display your data against time.

 

Hope this helps

 

David

NISW

0 Kudos
Message 2 of 2
(3,559 Views)