Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Stanford Research Systems SIM960 Read Error

Hello!

 

I am using the drivers that are available online for a PID system, SIM960 from Stanford Research Systems. I made the VI attached here and am using the default subVIs "Configure Setpoint" and "Read Measurements" inside two loops. The issue is that whenever the number of the loops is sufficiently large, while the VI would function as intended for maybe >100 iterations, after which Read Measurements would suddenly throw an error: Scan from String(arg1) error 85 and the VI would stop working.

 

Now I am finding this extremely hard to debug as I have to run the code for quite some time before such an error occurs.

 

I am using the sub-VIs as intended and while they do work well, it's really puzzling as to what may cause them to suddenly start throwing an error out of nowhere.

0 Kudos
Message 1 of 3
(1,163 Views)

I didn't look at the VI but what I understand from the error is that there is scan from string function used within the read APIs. For one of the reads the instrument didnot return a data or as expected, now with a empty string or inappropriate string, the scan from string could not decode the expected format.

 

So, simple answer is that your instrument did not respond or responded incorrectly after some time, this could happen when you read too fast that the instrument could not keep up. Easy way to figure out is to add a fixed delay between your reads, like 10ms or so.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(1,150 Views)

Thank you for your reply. However, there is at least 3 seconds of delay between each measurement, which should  be more than enough time. 

0 Kudos
Message 3 of 3
(1,117 Views)