# Analyses Tag

### Afocal Optimization

The attached FRED example demonstrates how to optimize the inter-lens spacing of a Galilean beam reducer using geometric ray collimation as the optimization metric. Open the model and expand out the Geometry folder and the Collimator subassembly node.  Observe that there are three geometry elements...

### 2D Plotting in FRED

The purpose of this article is to describe two scripts which work together to demonstrate how to plot multiple data series in a custom FRED chart. The FRED file associated with this document contains two embedded scripts: chartLibraryExampleMaster – This script generates a user-specified number of Gaussian profiles...

### Direction Spot Diagram Statistics

As of version 14.40 there is no script command equivalent to the directions spot diagram analysis available in the GUI. This knowledge base article details a script utility which manually performs the equivalent directions spot diagram analysis in the scripting language. Download the PDF: Direction-Spot-Diagram-Statistics.pdf Download the FRED...

### Plotting in Excel using COM

The purpose of this document is to describe two scripts which demonstrate the generation of a Gaussian dataset and a data plotting routine that routes data from FRED to Excel directly via COM.  Although the primary intention of this article is to demonstrate how to...

### Animating FRED Results

Many FRED analysis tasks involve some sort of parameterized scan through a set of system configurations and I have found that compiling FRED results as an animated image set is particularly useful for conveying the dynamic behavior of the system output. At the time of...

### Compute Distance Between Objects

The attached FRED file contains an embedded script which shows how you can calculate the distance between two objects using the scripting language. The script works by using the TransformPosition command, which takes a starting coordinate system, a new coordinate system and a position vector...

### Analysis Surface Script Commands

This article is intended to clarify any confusion between several of the scripting commands that are commonly used for analysis surfaces. Analysis surfaces themselves have three defining parameters, their sampling grid, ray filters, and location in space. They can also be used to generate Analysis...

### Stepped Advanced Raytrace with Analyses

It is important to remember that Analysis Surfaces in FRED only post-process (filter) rays at the end of the raytrace when an analysis is requested.  They do not collect ray information during the raytrace, regardless of whether the ray trajectory passes through the analysis grid. ...

### Beam Footprint Analysis

It is important to remember that Analysis Surfaces in FRED only post-process (filter) rays at the end of the raytrace when an analysis is requested.  They do not collect ray information during the raytrace, regardless of whether the ray trajectory passes through the analysis grid. ...

### Looping Through Raypaths

FRED has many tools for helping the optical engineer determine the contribution and causes of stray light in an optical system including the Image Artifact Diagnostic Tool and the Stray Light Report. The Stray Light Report, for example, provides a detailed report of system scatter...