08-15-2019 02:01 AM
I have created the attached vi using the Agilent MXA series instrument driver's.
If I change the configure trace from "Clear Write" to "Average" the MXA then sets an Avg/Hold num of 100... by the time it reaches 100 my vi has finished execution and captures no data, with the trace set to "Clear Write" it captures the data, but with no averaging. So a couple of questions, 1) how do I make the vi wait until the 100 averages to capture data? I did try inserting a "Wait for acquisition" but that did not work, 2) how do I change the number of averages "Avg/hold num"? I don't seem to be able to find a driver for this.
TIA
08-15-2019 02:31 AM
Hi Jimbo,
by the time it reaches 100 my vi has finished execution and captures no data,
But you should get an error instead, most probably something like TimeOut…
1) how do I make the vi wait until the 100 averages to capture data?
Have you tried to increase the timeout?
2) how do I change the number of averages "Avg/hold num"? I don't seem to be able to find a driver for this.
Have you read the (programming) manual for your device to look for the needed SCPI commands? Did you verify your driver VIs use the correct command with correct parameter formatting?
08-15-2019 03:37 AM
Hi GerdW tanks for your response.
I was in fact receiving the following error message "Maximum Time has been exceeded.", so I have increased the timeout as you suggest which has resolved issue 1, just to work out have to change the number of averages now 🙂
08-15-2019 04:05 AM
Also resolved the issue with number of averages "Avg/hold num"... had to move the Configure Averaging vi earlier in my sequence.
Attached final vi