LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Who do contact about a specific Labview Driver (Stanford Research SR785)

Hi,
I actually just came  back from MAX. I was able to find my  SR785 analyzer  there. Moreover I succesfully ran  several commands from MAX too.  So I guess that means tha the driver is installed properly and  my hardware can be seen from my PC. Please see the attached simple code.
The error tha I get is :


Error -1073807343 occurred at VISA Open in Instr_Read 3.vi






0 Kudos
Message 21 of 30
(1,628 Views)
If you are using that resource name, you have a syntax error. It is not INST. It should be INSTR and you should be able to select from a list of available resources. What do you see when you click on the arrow on the right side of the control?
0 Kudos
Message 22 of 30
(1,625 Views)
I see just number 10. 
When i fixed the resource number the error became:

Error -1073807194 occurred at VISA Open in Instr_Read 3.vi
0 Kudos
Message 23 of 30
(1,622 Views)
When I changed the constant to a control and clicked the refresh option in the combobox  then the list stays empty as if Labview does not see the analyzer at all.  I even tried to use GPIB Write on port 10 but it  did not work either.


Smiley Indifferent


Message Edited by RSibagatullin on 06-25-2008 08:09 PM
0 Kudos
Message 24 of 30
(1,619 Views)

I don't see how you can possibly see just '10' unless you changed the VISA Alias in MAX. I don't have nay GPIB connections here so I can see is my com and printer port. You should see something similar. You could check your versions of NI-GPIB and NI-VISA and upgrade to the latest.

per your last post, it does sound like something is corrupt with the NI-VISA installation.

Message Edited by Dennis Knutson on 06-25-2008 07:09 PM

Message Edited by Dennis Knutson on 06-25-2008 07:12 PM
Message 25 of 30
(1,618 Views)
Thanks Dennis. I am about to install the latest NI -VISA driver and I will let you know how it goes.

0 Kudos
Message 26 of 30
(1,608 Views)
Hi,
I just installed the VISA 4.3 driver and  the resource has appeared in the combo box immidiatelly. Thanks a lot! I am back in the game. Smiley Happy
0 Kudos
Message 27 of 30
(1,605 Views)
I have a new question about  the SR785. 
Does anyone know how to programmatically find out whether a  previous command has been executed and plotted? I am trying to use the DSPS? command but it does not provide consistent results for practical use.  I  looked through  the NI driver and  there is no such functionality implemented.  Thanks.

Ruslan S.
0 Kudos
Message 28 of 30
(1,570 Views)
Could someone please help me with my last question? I've been working on it for 16 hours now and I still can't solve my problem. I called Stanford Research but they refused to help. 


0 Kudos
Message 29 of 30
(1,556 Views)
Hi Ruslan,

I have not programmed the SRS785 before, but I took a look at the Operating Manual and Programming Reference for this device.

Quoted from page 5-122:
DSPS ? {i}
The DSPS? command queries the value of the Display status word. The value is returned as a decimal number from 0 to 65535. The DSPS? i command queries the value (0 or 1) of bit i (0-15). DSPS? clears the entire word while DSPS? i clears just bit i."

Shown below are Bit/Name/Set When for each of the 16 Display Status Word bits.
Quoted from page 5-127
0 / NEWA / New data is available for DisplayA
1 / AVGA / DisplayA linear average has completed
2 / STLA / New settled data is available for DisplayA
3 / LIMA / DisplayA has failed a limit test
4 / SSA / Swept Sine sweep has finished
5 / WFA / Display A 1-shot Waterfall has finished
6 / WFD / Display A Waterfall has finished drawing
7 / unused
8 / NEWB / New data is available for DisplayB
9 / AVGB / DisplayB linear average has completed
10 / STLB / New settled data is available for DisplayB
11 / LIMB / DisplayB has failed a limit test
12 / SSB / Swept Sine sweep has finished
13 / WFB / Display B 1-shot Waterfall has finished
14 / WFB / Display B Waterfall has finished drawing
15 / unused

The Display status bits stay set until read by DSPS?. They are also cleared by the *CLS command. Use DSPE to set bits in the Display status enable register.  The AVG, STL, LIM and SS bits are only updated when new data is available for the display (no faster than 8 Hz). Always test for NEWA or NEWB in the status word along with AVG, STL, LIM or SS.  The status updates for the two displays may not be exactly synchronous. Always test the DisplayA status bits separately from the DisplayB status bits. For example, to wait for both displays to finish averaging, do NOT test the Display status word for both AVGA and AVGB simultaneously. The AVGA and AVGB bits may not be set at the same time. Test for AVGA and AVGB separately and wait until both have occurred.

According to the manual, you should "test the DisplayA status bits separately from the DisplayB status bits...and wait until both have occurred."  If I understand correctly, I would look at bits 0 and/or 8 individually, with DSPS? 0 and DSPS? 8 and wait until they come back true.  You may have to look at other bits depending on the last operation you sent to the SRS785.  For example, if you told the analyzer to do a linear average, you should wait on bits 1 and/or 9 to go true.  I hope this helps.
0 Kudos
Message 30 of 30
(1,516 Views)