5-28
Remote Programming
void printOutIEEEResults(void)
{
/* prints the first 10 values of R transferred in IEEE floating point format by the SR830 */
int i;
printf("\n\n");
for (i=0;i<10;i++)
printf("%d
%e\n",i,rfBuf[i]);
/* this is simple since the values are already IEEE floats */
}
void printOutLIAResults(void)
{
/* calculates the first 10 values of R transferred in LIA float format by the SR830 */
int i,mant,exp;
int *ptr;
float val;
printf("\n\n");
ptr =(int *) rfBuf;
/* ptr points to integers in rfBuf, not floats! */
for (i=0;i<10;i++)
{
mant = *ptr++;
/* first comes the mantissa (16 bits) */
exp = *ptr++ - 124;
/* then the binary exponent (16 bits) offset by 124 */
val = (float) mant * (float) pow(2.0,(double) exp);
printf("%d
%e\n",i,val);
}
}
void initGpib(char *devName)
{
if ((lia=ibfind(devName))<0) {
printf("\nCannot Find SR830 \n\a");
exit(1);
}
}
void txLia(char *str)
{
char serPol;
ibwrt(lia,str,strlen(str));
do {
ibrsp(lia,&serPol);
/* now poll for IFC RDY */
}
while ((serPol&2)==0); /* until the command finishes executing */
}
void setupLia(void)
{
txLia("*RST");
/* initialize the lock-in */
Содержание SR830
Страница 5: ...1 4...
Страница 11: ...SR830 DSP Lock In Amplifier 1 10...
Страница 13: ...2 2 Getting Started...
Страница 17: ...2 6 The Basic Lock in...
Страница 23: ...2 12 Outputs Offsets and Expands...
Страница 25: ...2 14 Storing and Recalling Setups...
Страница 31: ...3 4 SR830 Basics...
Страница 33: ...3 6 SR830 Basics...
Страница 37: ...3 10 SR830 Basics...
Страница 53: ...3 26 SR830 Basics...
Страница 74: ......
Страница 83: ...4 30 Rear Panel...
Страница 107: ...5 24 Remote Programming...
Страница 113: ...5 30 Remote Programming...
Страница 117: ...5 34 Remote Programming...
Страница 121: ...6 4 Performance Tests...
Страница 123: ...6 6 Performance Tests...
Страница 125: ...6 8 Performance Tests...
Страница 129: ...6 12 Performance Tests...
Страница 131: ...6 14 Performance Tests...
Страница 133: ...6 16 Performance Tests...
Страница 139: ...6 22 Performance Tests...
Страница 145: ...7 2 Circuit Description...