Difference between revisions of "Counter (COUNTER)"

From LogicBox
Jump to: navigation, search
(Created page with "= LogicPool (COUNTER) = A counter can be implemented using the GATEGEN VHDL module, due to this the address and register map is the same as by the GATEGEN == LabVIEW Vi == ...")
 
(Example VIs)
 
Line 52: Line 52:
 
=== Example VIs ===
 
=== Example VIs ===
  
LP_CLOCK_test.vi
+
LP_Counter_test.vi

Latest revision as of 10:49, 10 May 2016

LogicPool (COUNTER)

A counter can be implemented using the GATEGEN VHDL module, due to this the address and register map is the same as by the GATEGEN

LabVIEW Vi

COUNTER.vi

Counter module with threshold output also used as Time Counter


COUNTERc.png


The meaning of almost inputs and outputs of this Vi depends on the input "Function". The global inputs and outputs does not depend on the "function" input:

Glogal Inputs

GATEGEN#: number of gate generator to be configured as counter (1..255).

USB In: Handle to the LogicBox (create by open.vi), if not connected will take a global. parameter, this only works with one LogicBox at a time.

error in: error handling input

Global Outputs

USB out: Handle to the LogicBox.

error out: error handling output

Functions

 Connect: enable, configurate and set the trigger driver signal.
   Inputs:
        "Freq" set the clock frequency
        "Enable" enable/disbale Clock (synchronous)
        "Width" specifies lenght of High state in 10 ns (=0 generates 50% duty cycle!)
          
 Outputs:
        "CLK" signal number in which the clock is generated  
 Get CLK: 	
   Outputs: "CLK" return output state of CLK
 Set ENABLE:
   Input: "ENABLE" enable/disbale Clock (synchronous)
 Gen/Hz: 
   Output: "Gen" current generated frequency in Hz   

Example VIs

LP_Counter_test.vi