| Parent Polymorphic VI: | HIL Write | 
| Requirements: | Quanser Rapid Control Prototyping Toolkit, LabVIEW 2020 or newer | 
Writes to PWN output channels of a HIL board.
                        All required inputs must be wired. They appear in bold text in the context help window for the VI.
                    
                         
                     | 
                    
                                 board in is a reference to a HIL Board instance that represents the open HIL board. This input must be wired to a valid HIL Board signal, as generated by a HIL Initialize VI.  | 
                
                        Recommended inputs need not be wired. They appear as simple text in the context help window for the VI.
                    
                         
                     | 
                    
                                 PWM channels is an array of channel numbers indicating the PWM output channels to be written. The values written are those at the PWM duty cycles or frequencies input.  | 
                
                         
                     | 
                    
                                 PWM duty cycles or frequencies is the duty cycles (as a fraction between 0 and 1) or frequencies (in Hertz) to write to the specified PWM channels..  | 
                
                         
                     | 
                    
                                 board out is a copy of the HIL Board instance passed to the board in input.  | 
                
                
             
           
          This VI only writes PWM outputs. When writing to mixed signal types, it is more efficient to use the
          
All input/output pairs of this function have direct feedthrough behaviour.
| RCP CL HIL Analog Loopback Example | This example is a simple analog loopback test, but it demonstrates a number of important features of RCP. | |
| RCP CL HIL Position Control Example | This example demonstrates how to use a PID controller to control Quanser's SRV02 experiment. | 
| HIL Read |          Reads from analog, digital, encoder and/or other channels of a HIL board.  | 
| 
                     Target  | 
                
                     Supported  | 
                
                
                     Comments  | 
            
|---|---|---|
| 
                     Yes  | 
                
                     Fully supported.  | 
            
                
            
Copyright © Quanser Inc. This page was generated 2021-09-24. Submit feedback to Quanser about this page.
Link to this page.