Rohde-Schwarz / Examples

Remote-control examples for our instruments. Here you find all ready-to-use example code scripts and projects.
MIT License
105 stars 32 forks source link

(C#) QueryInstrumentStatus cannot be set to False in the constructor. Causes crash. #3

Closed jrdnwrth closed 2 years ago

jrdnwrth commented 2 years ago

Great project, thank you!

There is one bug we can't get around. When we call the constructor new RsInstrument(...) it automatically calls CheckStatus().

This CheckStatus() function crashes because our instrument is old and responds incorrectly.

There is already a feature for setting QueryInstrumentStatus to False, which skips this check. However, it cannot be set to false in the RsInstrument() constructor.

Could this parameter be added to one of the RsInstrument() constructor overloads?

This would be a huge help to us, thank you.

(Alternatively, you could post the code on GitHub and I could submit a pull request)

image

image

image

image

image

image

image

Thank you for your time.

jrdnwrth commented 2 years ago

Actually, this feature exists. However, Visual Studio is truncating the documentation. Here is the full description for anyone who is interested.

image