LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SR830 Help Please

Once again, I need to ask for help... I promise though that once I learn enough about labview to be able to give quality feedback and answers, I will!
 
So I'm using the SR830 Lock-In Amplifier.  One of the commands { TRCL?i,j,k } can be used to quickly transfer the buffered data from the lockin to the computer in a non-normalized floating point format.  The data is as such, 4 bytes per data point, [ byte3=MSB,0] [byte2=exp] [byte1 & byte0 = mantissa, byte0=LSB], so that VALUE = mantissa X 2^(exp-124).  EOI is sent with the final byte.
 
The manual reads that it is necessary to use a binary transfer to read the data. 

How do I use a 'binary transfer' to read the data?  I am guessing this means having a .VI that reads each byte and reforms the value, but I'm not so sure how to do this or what .VI for that matter will read the individual bytes being sent across the bus.
 
Oh, to give an idea on why I am trying to use this specific command.... I am building a defect imaging system.  By optimizing the system to take thousands upon thousands of data points per pixel and averaging them out, I can actually detect defects that are much much smaller than the spot size... (and I'm also still trying to work out the bugs of a 2D deconvolution system, but that's another story!)
 
One more question if anyone has insight into this...  How do I stop the onset of carpal tunnel syndrome?  20 Billion dollars to anyone whom can answer this one! 🙂
 
Thanks so much,
 
Jonathan
0 Kudos
Message 1 of 6
(3,355 Views)

Hi Jonathan,

Use your TRCL? command to obtain the binary data, then feed the string to the attached VI.  I think the byte ordering is right - it shoudn't be hard to fix if not.

Beware any leading garbage characters that may offset the expected byte ordering (the fourth byte should always be zero).

Cheers
(Good luck with CT, good ergonomics, very important!)
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 6
(3,331 Views)

Hey now you got an answer to your main question, I'd like a shot at the 20 billion dollars.

Here it is:-

Stop using your computer, I'll give you 10 billion dollars, cos I know this guy who is gonna give me 20 billion dollars and you can retire and do nothing.Smiley Very Happy

0 Kudos
Message 3 of 6
(3,329 Views)

Dear Dynamik,

Could you tell me what is for in the (array length+floor of 4) part?

how control the buffer size in SR-830?

How fast I can transfer the data using TRCL comparing to OUTR?

Thank you.

 

메시지가 09-11-2005 01:20 AM에 labmaster에 의해 편집되었음

0 Kudos
Message 4 of 6
(3,324 Views)

Could you tell me what is for in the (array length+floor of 4) part?


do you mean ( bytes DIV 4 ) = # of samples

?


how control the buffer size in SR-830?

How fast I can transfer the data using TRCL comparing to OUTR?


I'm sorry labmaster, I only looked at the manuel briefly (found PDF on the web.)  Will try to follow-up later...

Cheers 


 

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 5 of 6
(3,306 Views)
Dynamik, thanks for the .VI... I haven't put it into use yet but it sure answers the 'how to' part of my main question and gives me a good insight into byte manipulation. 
 
Thanks,
 
jonathan
0 Kudos
Message 6 of 6
(3,295 Views)