Ejemplo n.º 1
0
 def test_wait_until_done(self):
     min_time = 4.2
     self.patched_library.niTClk_WaitUntilDone.side_effect = self.side_effects_helper.niTClk_WaitUntilDone
     nitclk.wait_until_done(multiple_session_references, min_time)
     self.patched_library.niTClk_WaitUntilDone.assert_called_once_with(
         _matchers.ViUInt32Matcher(len(multiple_sessions)),
         _matchers.ViSessionBufferMatcher(multiple_sessions),
         _matchers.ViReal64Matcher(min_time))
     return
Ejemplo n.º 2
0
def test_nitclk_wait_until_done(multiple_niscope_sessions):
    nitclk.configure_for_homogeneous_triggers(multiple_niscope_sessions)
    nitclk.synchronize(multiple_niscope_sessions, .001)
    nitclk.initiate(multiple_niscope_sessions)
    nitclk.wait_until_done(multiple_niscope_sessions, .001)