08-28-2012 01:07 PM
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
08-29-2012 10:31 AM
Hello YGraphPopup,
Could you post information on the error you are seeing?
Regards,
Jeff L.
08-29-2012 11:16 AM
Hi Jeff,
I have error -1073807339
Both channels have a waveform signal
Thanks
08-29-2012 11:28 AM
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.
08-30-2012 12:21 AM
Hi Jeff,
please find screen capture
Thanks
08-30-2012 03:01 PM
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.
09-02-2012 02:18 AM
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
09-02-2012 03:10 AM
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
09-02-2012 03:25 AM
Hi Jeff,
I have tried following attributes: 1000,10000 and 15000, all with same error -1073807339
Thanks
09-04-2012 11:23 AM
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.