LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the amplitude of the sine output of SR830

Hello!
 
I'm using SR830 for an experiment and I'm trying to set the amplitude of the sine output when the lock-in works in internal mode and I have the following problem: the lock-in doesn't understand the decimal point, it reads the first non-zero digit and sets the amplitude (e.g. 5 instead of 0.5). I've used the command slvl, as it is said in the manual. I've used the drivers for GPIB from the national instruments site and I've just made some changes because I'm using a serial port. I have also used the command for setting the frequency just before this one and I don't have a problem with it. It cannot be a problem from the lock-in, because everything is normal when I'm controlling the lock-in with other programmes.
 
Thanks!
Lia Michali
0 Kudos
Message 1 of 8
(3,743 Views)
Lia,

I don't have an SR830 to test, but the manual suggests that what you are trying to do should work. Some questions that may give some clues to the problem: Have you read the status bytes to see if the SR830 has generated any errors? Is it possible that the letter "o" was sent in place of the numeral "0"? Was the proper termination character (\n) or (\r) sent? Does the computer use a comma as a decimal separator? (Some parts of the world use commas and LV may or may not use the local settings, depending on how the preferences have been set.) Can you set the frequcny to 0.5 Hz? Can you send the command successfully from a terminal emulator?

Lynn
0 Kudos
Message 2 of 8
(3,731 Views)

Lynn,

First of all, thanks a lot for your advice. I have tried everything that you have suggested and it's still not working. I thought that the problem could result from the format of the number, but I'm not really sure. I have already tried all the possible combinations and the result is that when I change the format, new problems come up. Anyway, if I manage to make it work somehow, I'll let you know. Thanks again!

0 Kudos
Message 3 of 8
(3,715 Views)
The attached VI (lv v7.1.1) works for me.
0 Kudos
Message 4 of 8
(3,711 Views)
Unfortunately, I have the version 6.0 and I cannot see your VI. Could you post it as LV6.0 please? Thanks a lot!
0 Kudos
Message 5 of 8
(3,705 Views)

Sorry, I don't go back that far.

And, FWIW, it's not just one VI. It's all the VIs that work together to make it happen.

Message Edited by Warren Massey on 01-11-2006 09:05 AM

0 Kudos
Message 6 of 8
(3,698 Views)
Why don't you post the code you've written to set the amplitude. Someone can look at it and compare it to the 7.1.1 code and see if you've done something wrong.
0 Kudos
Message 7 of 8
(3,691 Views)
I have found a system that went back as far as v6.1 but that at least gave me the option of saving to 6.0 even though I cannot open it in 6.0.
You can give it a try. Hopefully the conversion process left it intact and functional.
0 Kudos
Message 8 of 8
(3,680 Views)