LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SR400 with the VISA package

Hello, i am new to labview and i need to write a program that communicates with an SR400.
What i want to do is to measure a signal for a period of time, integrate it, plot it and save it to an array. This should then be repeated until i have a sufficient amount of data.

My main problem at the moment is that all i get back from the SR400 when i use the QA/QB command is either -1 (data not ready) or some constant natural number such as 0,1 or 2. I have ensured that the detector connected to it works, my guess is that it is my code that is not doing what i want it to do. My first step is simply to get a signal and plot it on a graph.

0 Kudos
Message 1 of 4
(3,004 Views)
0 Kudos
Message 2 of 4
(2,948 Views)

Did read that one. That thread is working without the visa package however. 
I may know what the issue is, working on a solution.

0 Kudos
Message 3 of 4
(2,940 Views)

The SR400 has a GPIB bus and I imagine that's how you are connected to it.  So if you want to use VISA in your code, the underlying transfer is still GPIB.  Its easy enough to just get the primary address from the VISA resource and use that with the driver that's been debugged years ago.

 

VISA_GPIB_address_string.png

 

 

0 Kudos
Message 4 of 4
(2,936 Views)