LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DSO1012A Agilent SCOPE

Need to measure time interval between CHAN1 and CHAN2.

When I am using ag1000ni_ReadDelayMeasurement (ag1000ni, "CHAN2", "CHAN1",
             AG1000NI_VAL_FALLING, 5000, val));

I have error in measurement.

Can I have an example of how to make this measurement?

Thanks

0 Kudos
Message 1 of 15
(3,897 Views)

Hello YGraphPopup,

 

Could you post information on the error you are seeing?

 

Regards,

 

Jeff L.

Message 2 of 15
(3,885 Views)

Hi Jeff,

I have error -1073807339

Both channels have a waveform signal

Thanks

0 Kudos
Message 3 of 15
(3,880 Views)

YGraphPopup,

 

Do either of these links (VISA Error 1073807339 or Why do I Receive Timeout Error -1073807339) pertain to the error message? Do you have a screen capture of the error message? Does the error message state something like: "Error -1073807339 occurred. Timeout expired before operation completed."?

 

Regards,

 

Jeff L.

0 Kudos
Message 4 of 15
(3,877 Views)

Hi Jeff,

please find screen capture

Thanks

0 Kudos
Message 5 of 15
(3,866 Views)

YGraphPopup,

 

Have you tried to change the attribute "VI_ATTR_TMO_VALUE"? The return value you are getting indicates that the Read/Write operation did not complete.

 

Jeff L.

0 Kudos
Message 6 of 15
(3,845 Views)

Hi Jeff,

changing VI_ATTR_TMO_VALUE into:

#define VI_ATTR_TMO_VALUE           (0x2FFF001AUL) 

or

#define VI_ATTR_TMO_VALUE           (0x4FFF001AUL) 

cause earlier error -1073807331

See attached snapshot

Thanks

0 Kudos
Message 7 of 15
(3,831 Views)

Hi,

 

you should not change the definition of a system wide constant, but the value of an attribute...

 

Try viSetAttribute ( session_handle, VI_ATTR_TMO_VALUE, timeout_value ); note that timeout_value is in milliseconds

0 Kudos
Message 8 of 15
(3,828 Views)

Hi Jeff,

I have tried following attributes: 1000,10000 and 15000, all with same error -1073807339

Thanks

0 Kudos
Message 9 of 15
(3,824 Views)

Hello YGraphPopup,

 

Have you attempted the same command string in a VISA Test Panel? If the result is different, it would be helpful to get an NI I/O Trace for the VISA Test Panel and the LabWindows/CVI execution. Also, are you interfacing with the device through USB or GPIB? What firmware version are you using?

 

Regards,

 

Jeff L.

0 Kudos
Message 10 of 15
(3,798 Views)