04-08-2008 09:50 AM
04-08-2008 10:31 AM
04-08-2008 10:53 AM
04-08-2008 11:08 AM
04-08-2008 11:27 AM
I unfortunately don't have the instrument and can't reproduce the problem directly. The VI description mentions that you need to call Configure Reference Levels VI and set the proper reference levels before trying to read. Please try to do that before the read and let's see if that helps.
04-09-2008 03:10 AM
04-09-2008 09:48 AM - edited 04-09-2008 09:51 AM
Hi Mike,
We have looked into the driver directly and it seems like there might be a bug in the code where the configuration function is also querying with wrong parameters instead of setting.
As a quick fix for now please use "Write Instrument Data" vi instead of the "Configure Delay & Phase" VI and type ":MEAS:_DEF DEL,-1,+1" (without the double quotes and the underscore) in the Write Buffer control. I placed an underscore because the forum is converting : and D to a smiley... We are planning to fix the issue however since we don't have the instrument we need some way of confirming that this works.
We derived this command from the constants you were using in the VI that you posted. In a nutshell, "-" means negative slope, "+" means positive slope, and "1" is the occurrence.
Please let us know if it works for you so that we can fix the issue and update the driver on the web with the correct command.
For more information on the command that you are passing through the "Write Instrument Data", you can look at the programmers manual here (page 8-8).
04-09-2008 10:27 AM
04-09-2008 12:19 PM
04-09-2008 01:47 PM - edited 04-09-2008 01:48 PM
Hi Mike,
That command doesn't state which channels should be used as the source for the rising or the falling edges specifies. It simply tells the instrument what kind of edges that the scope should use to start and finish the delay measurement.
The command that tells which channels to use is in the Read Delay & Phase Measurement VI and it looks correct to me. If you are passing CH1 for the first source and CH2 for the second source the measured delay should be the delay between a falling edge on CH1 and a rising edge on CH2.
The specific command to set the sources can be found on page 8-8 of the programming manual that I linked in my previous message and in your case it should be: "MEAS:_DEL CHAN1,CHAN2". I drilled down into the code and it seems like the driver is properly building this command.
One thing that I can suggest is to use the "Write Instrument Data" VI again and pass the above mentioned command manually after you specify the edges and before you read the measurement.
Also for the timeout issue you mentioned in the previous message, please try to increase the maximum time value in the Read VI and see if that helps at all.