LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is GPIB timeout byte based

Is the GPIB timeout established with ibdev implemented on a byte basis or on a message basis?

 

If timeout is 10sec and I make an ibwrt call to send 10 byte message to a device that's been turned off, how long until I get a timeout return?  10 sec?  100 sec?

 

The gpib lib help implies that it's on a message basis but it's not perfectly clear to me.  I know rs-232 library timeout is on a character basis, not a message basis.

 

Thanks.

0 Kudos
Message 1 of 3
(3,094 Views)

According to the NI-488.2 Help, the ibdev command uses the input IbcTMO, which uses a v constant that specifies predefined timeout values. So if you make an ibwrt call to send 10 bytes to a disconnected or turned off device, you will wait whatever the v value of IbcTMO is.

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 2 of 3
(3,084 Views)

Thanks.

 

Yes, it uses a set of constants (apparently an enumeration of some kind, 13 => 10 seconds) for the timeout.

 

I know what the help says, it's just that it gave no examples, and I know that the NI serial library in a similar situation enforces the timeout on a character basis.  And it seems somehow counterintuitive that you'd want a timeout to fire if you're in fact successfully sending / receving bytes at the time.

 

Thanks again.

0 Kudos
Message 3 of 3
(3,082 Views)