LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SR830 Data Recording

Hi everyone,

 

I want to acquire data from Stanford Research 830 Lock-In Amplifier through GPIB 488.2 bus. I have downloaded the intrument driver from the following link. And I can read the data from the instrument buffer. The problem is that how to read and show data in real time, and how to generate the associated time signal which will be plotted in X-axis? And I don't know how to save the data into a file, like a spreadsheet.

 

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=240C113D3165071BE0440003BA7CCD...

0 Kudos
Message 1 of 11
(6,737 Views)

It seems like you require some training in LabVIEW before you program your application. Have you gone through the Getting Started with LabVIEW PDF document that is linked from the Getting Started window? Also, be sure to go through the 3-hour and 6-hour courses over here:

http://www.ni.com/academic/labview_training/

 

Also, be sure to go through the examples in LabVIEW (Help->Find Examples); all your queries have answers in there.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 11
(6,719 Views)

Hi Adnan,

 

Thanks for the reply, I have gone through the Getting Started With LabVIEW PDF. But still have no idea about the real time data display. The SR830 intrument drivers can be used to read one data point or multiple data points from the instrument buffer at one time. But that takes quite a long time. I am not sure it is because the time used to write data into the buffer.

 

Has anyone tried to acquire data from SR830 in real time?

 

Thanks,

 

 

0 Kudos
Message 3 of 11
(6,702 Views)
Since you're connecting to the device over GPIB, your data bandwidth will be limited by however fast the GPIB can communicate.  To get fast data in "Real Time" you will have to acquire data slower than it takes to transmit one piece of data over the GPIB controller.
0 Kudos
Message 4 of 11
(6,682 Views)

Hi David,

 

Thanks for the reply. I think the current transmission rate is far below the GPIB limit. Every time I acquire a few data points, e.g. 100, from the instrument data buffer, I have to wait for about 10 seconds for the LabVIEW to display them.

0 Kudos
Message 5 of 11
(6,677 Views)

What do you have your sampling rate set to and have you looked into the FAST command?

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 6 of 11
(6,670 Views)
The sampling rate is 512 Hz and it is defaulted to the FAST mode.
0 Kudos
Message 7 of 11
(6,662 Views)

Very good, just thought I'd check regarding rate and FAST mode.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 8 of 11
(6,649 Views)

Hello,

 

I am trying to acquire data at 521 Hz with Fast2 mode, but it is sending the data in floating point number and when I display them, I see weird characters. How did you achieve this.

 

If  could have the original data in binary format I would extract the value from this. I am using kusb 488b GPIB cable and in program, after sending the commands according to mauel, I put the recieve command in a while loop but it didn't work. Is it because labview taking the data in ASCII format so interpret the coming data in this way and turning them in to weird characters.

 

Regards,

Mustafa.

0 Kudos
Message 9 of 11
(5,594 Views)

Tahomançanzi

 

You resurrected a post that is four years old.  Also, this question is related to instrument control and should be posted to this forum instead.

http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/bd-p/140

 

Are you using the LabVIEW instrument driver for the SR830 (linked here)?

http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=1536

Wayne T. | Application Engineer | National Instruments
0 Kudos
Message 10 of 11
(5,541 Views)