#NEWLINE# def read_scalar( self , timeout = 10.0 ) : #NEWLINE# #INDENT# 'Read a single floating-point sample from a counter task. Use\n        this function when the counter sample is scaled to a\n        floating-point value, such as for frequency and period\n        measurement.\n\n        :param float:\n          The amount of time, in seconds, to wait for the function to\n          read the sample(s). The default value is 10.0 seconds. To\n          specify an infinite wait, pass -1\n          (DAQmx_Val_WaitInfinitely). This function returns an error if\n          the timeout elapses.\n\n          A value of 0 indicates to try once to read the requested\n          samples. If all the requested samples are read, the function\n          is successful. Otherwise, the function returns a timeout error\n          and returns the samples that were actually read.\n\n        :return: The sample read from the task.\n        ' #NEWLINE# ( err , value ) = self . lib . ReadCounterScalarF64 ( timeout , RetValue ( 'f64' ) , None ) #NEWLINE# return value