Use a derived clock domain to effectively speed up or slow down the FPGA's 40-MHz clock for a selected portion of the FPGA block diagram.
Use cases
Operate a portion of FPGA code at a slower clock rate to eliminate cumbersome loop timers and delay mechanisms
Match a portion of FPGA code to the timing requirements of an external peripheral device
Speed up a portion of FPGA code
Features
Easy to define one or more derived clocks to be associated with single-cycle timed loops (SCTLs)
Enter the desired clock frequency and LabVIEW identifies the closest matching frequency that can be obtained as the ratio of two whole numbers times 40MHz
Derived clock frequencies can be defined up to 800MHz (20x speedup) and as low as 4.7 MHz
Keep in mind
Single-cycle timed loops (SCTLs) require the entire loop code to execute in one clock cycle; this is 25ns for the default 40MHz clock. Keep your code lean and eliminate nondeterministic structures, especially if you intend to use a higher-frequency clock domain.
LabVIEW block diagram elements
Locate these elements with "Quick Drop" (press Ctrl+Space and start typing the name); click on an icon to see more sample code that uses that element:
Example code
Connect your Academic RIO Device to your PC using USBLAN, Ethernet, or Wi-Fi. NOTE: Not all Academic RIO Devices have Ethernet and Wi-Fi connectivity options.
If using the NI myRIO 1950 or NI RIO Control Module start with the NI myRIO 1900 Archive.
Different IP address: Right-click on the "NI myRIO 1900" Device, choose "Properties", and then enter the new IP address
Different device:
Right-click on the top of the project hierarchy, select "New Targets and Devices", keep the "Existing target or device" option, and then find and select your particular device
Select all of the components under the "NI myRIO 1900" device: click the first one and then shift+click the last one
Drag the selected components to the new device
Right-click the "NI myRIO 1900" device and select "Remove from project"
Run the “FPGA Main” VI and observe the Academic RIO Device onboard LEDs. Each LED is driven by identical oscillators but located in three different clock domains: