06-24-2024 05:09 PM
I am using LabVIEW 2021, a Stanford Research Systems SR850 Lock-in amplifier (LIA) communicating through a GPIB-NI488.2 bus, and an SR540 chopper. I currently have a laser with split beams, one going through the chopper to one detector (to the LIA as signal input A), the other going to a detector for normalization (to the LIA as Aux In 1 (AI1)). The SR540 is used as the external reference (to the LIA as Reference), and is selected for TTL Rising Edge.
I have downloaded the drivers through NI MAX, following the GPIB procedure I have talked to my instrument (the LIA), and opened SR850 examples through LabVIEW.
The sample VIs work fine, as in I do not get any errors, however I see none that use an external reference. When I input the "configure reference" .vi that I downloaded through NI with the drivers, I get an undefined error -1073999877, or #0XBFFC0FFB. I don't find much information on these searching the web for an explanation. At first I thought it was the location at which I was placing this .vi in the code, and I figured it has to come before my gain configuration, because my signal is entirely unstable without it, but I have tried placing the reference before and after other .vi's and it still errors and carries the error through. There is a picture of the code attached. This is the example code for generating a trace. It works fine until I add the configure reference vi which is circled. My chopper frequency is shown on the LIA so I know the reference is picking it up correctly, and I can read the voltage from the AUX In correctly.
Ultimately goal is to output the R/AI1 and Theta values of the chopped beam where the AI1 is the unchopped beam, using the chopper frequency as reference.
If anyone has any suggestions or advice, I would appreciate any help. I also added photos of the chopper frequency and that frequency being picked up by the lock in amplifier's "reference" input.
LabVIEW Snippet of example with added reference vi
Chopper frequency
frequency ~chopper's frequency picked up by lock in amplifier as an external reference