LabWindows/CVI

取消
顯示結果 
搜尋替代 
您的意思是: 

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 積分
1 條訊息(共 15 條)
4,867 檢視

Hello YGraphPopup,

 

Could you post information on the error you are seeing?

 

Regards,

 

Jeff L.

2 條訊息(共 15 條)
4,855 檢視

Hi Jeff,

I have error -1073807339

Both channels have a waveform signal

Thanks

0 積分
3 條訊息(共 15 條)
4,850 檢視

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 積分
4 條訊息(共 15 條)
4,847 檢視

Hi Jeff,

please find screen capture

Thanks

0 積分
5 條訊息(共 15 條)
4,836 檢視

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 積分
6 條訊息(共 15 條)
4,815 檢視

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 積分
7 條訊息(共 15 條)
4,801 檢視

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 積分
8 條訊息(共 15 條)
4,798 檢視

Hi Jeff,

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

Thanks

0 積分
9 條訊息(共 15 條)
4,794 檢視

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 積分
10 條訊息(共 15 條)
4,768 檢視