05-29-2024 05:19 AM - edited 05-29-2024 05:20 AM
I write the input array to my oscilloscope via visa.
I want to check if my send values are set by reading them back and a following comparison one by one.
What is your simplest approach to check equality on those 2 string arrays. Of course 1V and 1.00V should be treated as equals.
Attached as LV19
05-29-2024 05:52 AM
Hi Quiztus,
@Quiztus2 wrote:
I want to check if my send values are set by reading them back and a following comparison one by one.
What is your simplest approach to check equality on those 2 string arrays. Of course 1V and 1.00V should be treated as equals.
Compare the numeric and the string/unit parts on their own…
05-29-2024 07:02 AM - edited 05-29-2024 07:03 AM
Very valid points. Fortunately setting is either from a discrete set of interger + string e.g. (AC|10K|100K|1M|100mV)
or plain integer.
The responses are supposed to be integer based, but they are sometimes floats instead.
So the best so far I came up with is:
05-29-2024 09:07 PM
Since you know the formatting rules of the instrument, can't you just create a string from the value you send, then compare it with the returned string?