File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed 
examples/nidaqmx/nidaqmx_continuous_analog_input Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 66import  nidaqmx 
77from  nidaqmx .constants  import  (
88    AcquisitionType ,
9+     TerminalConfiguration ,
910    CJCSource ,
10-     LoggingMode ,
11-     LoggingOperation ,
1211    TemperatureUnits ,
13-     TerminalConfiguration ,
1412    ThermocoupleType ,
13+     LoggingMode ,
14+     LoggingOperation ,
1515)
16- from  nidaqmx .errors  import  DaqError 
1716
1817import  nipanel 
1918
2019panel_script_path  =  Path (__file__ ).with_name ("nidaqmx_continuous_analog_input_panel.py" )
2120panel  =  nipanel .create_streamlit_panel (panel_script_path )
2221
2322try :
24-     panel .set_value ("daq_error" , "" )
25- 
2623    print (f"Panel URL: { panel .panel_url }  )
2724    print (f"Waiting for the 'Run' button to be pressed..." )
2825    print (f"(Press Ctrl + C to quit)" )
8279                task .stop ()
8380                panel .set_value ("is_running" , False )
8481
85- except  DaqError  as  e :
86-     daq_error  =  str (e )
87-     print (daq_error )
88-     panel .set_value ("daq_error" , daq_error )
8982except  KeyboardInterrupt :
9083    pass 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments