Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Code for FAST 2

I have read the manual,there are 2 commands ERRS,ESR.

 

There is a vi for ESR and one for ERRS.Both are used in my code.So now tell me what change is appropriate.

0 Kudos
Message 41 of 91
(3,358 Views)
If you want to read the error status register, it is ESR?
0 Kudos
Message 42 of 91
(3,351 Views)

I guess at this point I've lost track of what is and isn't working for you. So, here's a checklist, and if you could please indicate which steps worked and which didn't:

 

1) Send command over RS232 to instrument from MAX (no response required). Change the frequency or something like that.

2) Send query from MAX and receive response. *IDN? is the usual test string.

3) Send command to instrument from LabView. Instrument executes command. Again, change the oscillator frequency.

4) Send query from LabView and receive response. Again, send a *IDN? and look at the response string.

 

Have you successfully executed all four steps? If not, there's no point in trying to diagnose the details of why reading a particular status register byte isn't working. 

0 Kudos
Message 43 of 91
(3,347 Views)

As per the original driver SW from ni webpage,the Single Parameter vi has both ESR and ERRS.

 

I am taking it as such,as i feel there is no change required.

 

The only change which i suppose is making it compatible with serail comm.

 

Deleting a Vi(ESR/ERRS),whether this is required???If so,does it not give further error??

0 Kudos
Message 44 of 91
(3,345 Views)

I already Queried for IDN from MAx,Labview.I got the responsse too.

0 Kudos
Message 45 of 91
(3,343 Views)

If you send the string 'SNAP? 1,2', what comes back?

0 Kudos
Message 46 of 91
(3,341 Views)

Thanks for your response.They closed the lab just now.I can try with this command and let share the response here by tomorrow.

 

Thanks for your continued support.

0 Kudos
Message 47 of 91
(3,329 Views)

I tried with SNAP? 1,2,i was able to read X,Y values.

I tried with a Basic Serial Write and Read.vi.

 

 

May i know what exact changes in required in Stanford Research 830 Acquire Measurement - 1 Parameter.vi to get Serial data comm. with proper response for the commands??

 

0 Kudos
Message 48 of 91
(3,288 Views)

Please reply to me previous post and also to this.

 

Why there is always a TimeOut error when ESR is queried.20bytes are read,as mentioned in the driver.

I change it to Read bytes from Port,which also throws error.

 

Whats the issue here and how to fix??

0 Kudos
Message 49 of 91
(3,239 Views)

The most recent version of your error-query routine that you posted ('more_change.png' on July 13th) uses the Bytes At Port property. Did you follow Dennis's advice about eliminating that and using a proper termination character instead?

 

Similarly, if you use the Basic Serial Read Write command to query the status and error registers, do you get a sensible string back?

0 Kudos
Message 50 of 91
(3,228 Views)