10-23-2017 08:44 AM
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.
10-24-2017 09:14 PM
10-25-2017 07:16 AM
Did read that one. That thread is working without the visa package however.
I may know what the issue is, working on a solution.
10-25-2017 08:04 AM
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.