Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

What does NetworkVariableSubscriber.connect(timespan) really do?

Can anyone explain what NetworkVariableSubscriber.Connect(Timespan) does?  I'm not usre if this specifies how long the subscriber will wait before the connect command times out or if it will effect the timeout during the actual reading of the NV when it is updated.

More details would be very helpful.

Thanks,
-Steve
0 Kudos
Message 1 of 4
(3,464 Views)
Hi, Steve,

This method blocks and waits for the duration of timout until the connection is made with the server. If the connection cannot be made to the server after the duration of timeout expires, a TimeoutException is thrown.

Song D
Regards,

Song Du
Systems Software
National Instruments R&D
0 Kudos
Message 2 of 4
(3,445 Views)

Steve -

We are interested in improving our documentation such that you do not have to resort to posting to the forum to find information like this (although we do not mind that you did). I can see how the help for the timeout parameter is unclear or ambiguous, but it seems to me that it is sufficiently described in the Remarks section of the Connect method documentation.

Could you give us an idea of whether and how you tried to find this information out before posting?

For example,

  • Did you look at the full documentation for the Connect method before posting this question and find it to be inadequate (i.e. you disagree that the Remarks section is adequate)?
  • Did you look only at the Intellisense documentation?
  • Did you not find the documentation for this method at all (maybe you looked only in conceptual help and not in function reference)?
  • Did you post because that is your preferred method for finding information like this?

Any additional information you can give us will be appreciated.

David Rohacek
National Instruments

 

0 Kudos
Message 3 of 4
(3,438 Views)
In the Vstudio help I found this:
"The TimeSpan value specifying how long the connection waits."

The first thing I tought of when I read this was "waits for what?"  It didn't occur to me to scroll down and read the remark.

I then searched the NI web site but didn't find any info there.   Since I was on the site I simply posted the question.


-Steve

(p.s. The info in the remark section does answer my question.)
0 Kudos
Message 4 of 4
(3,433 Views)