The whole VI seems to reasonably work if there is no
Write Instrument.vi used.
As soon as I include the
Write Instrument.vi and give it any command string, the
Read Delay & Measurement.vi at the end stops working.
It times out after 5secs. I increased its timeout to 10s to no effect.
Also when the
Write Instrument.vi with ':MEAS:_DEL CHAN1, CHAN2' is ran ( without the underscore), the scope reverts back to measuring on the rising edge of CHAN1 even though the previous
Write Instrument.vi configured it for falling slope. If i place a ? after the DEL in the command the scope configures correctly.
If I set up the scope manually and use both configure and read delay & phase vi's, a result is returned.
Worringly though the returned value when compared to the value on the scope is always a few milliseconds out for some reason. For example the scope reads 40ms but returns 38.5ms. I dont know why this is.
If I use the write insrument.vi and configure each step, the scope configures correctly ( falling edge chan1, rising edge chan2), but it never returns a result. I tried the Read Instrument.vi command but there are no bytes in the buffer to return, A timeout occurs on this vi also.
I'm not sure where to go with this from here but this function would be really useful to have if it could be got to work.
Here is my current VI with the write instrument.vi function included.