Navigation: Scripting Reference Manual > Functions & Subroutines > LuminousIntensityToFileDAE

 

LuminousIntensityToFileDAE

 

Contact Us: fredsupport@photonengr.com

 

Description

Computes the Luminous Intensity and stores the results in a file.  Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long.  Please see Multi-threaded Raytracing for more information.

 

 

Syntax

numRays = LuminousIntensityToFileDAE( daeNode, outputUnits, detRespSpect, detRespScale, fileName )

 

 

Parameters

numRays (Long or Huge_)

Number of rays included in the calculation.

 

daeNode As Long

Node number of the DAE being used in the calculation.

 

outputUnits As Long

Long value indicating the units to be used.  Valid values are:

0: Candela

1: Arbitrary Units

If the user has specified to use a detector response, then the units are automatically set to Arbitrary Units.  If the user does not wish to specify a detector response, then set detRespSpect = -1.

 

detRespSpect As Long

Node number of the spectra to be used as the detector response function.

 

detRespScale As Double

Scale factor to be applied to the detector response function.

 

fileName As String

Name of the file being created.

 

 

Remarks

The following example calculates the Luminous Intensity for an existing rayset using Arbitrary Units and stores the results in an file named "test_file".

 

Dim fname As String

Dim daeNode As Long

Dim numRays As Long

 

daeNode = FindFullName( "Analysis Surface(s).DAE 1" )

fname = GetDocDir() & "\test_file.fgd"

 

numRays = LuminousIntensityToFileDAE( daeNode, 1, -1, 1, fname )

 

 

See Also

IntensityAtSpecifiedDirections

LuminousIntensityToARN

 

 

 

 

 

Copyright © Photon Engineering, LLC