Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

TSA Random Sequence Generation VI

Owning Palette: Utilities VIs

Installed With: Advanced Signal Processing Toolkit

Generates a pseudorandom univariate or multivariate (vector) time series from different types of distribution.

Details  Examples

Use the pull-down menu to select an instance of this VI.

TSA Normal Distribution (waveform)

samples specifies the number of samples of the generated time series Xt. The value must be greater than or equal to 0. The default is 1024.
mean specifies the value of the center of the normal distribution. The default is 0.0.
standard deviation specifies the standard deviation value of the normal distribution. The default is 1.0.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
seed specifies the seed of the noise sample generator. Seeds with different values greater than 0 generate different noise sequences. Values less than 0 cause reseeding each time this VI runs. The default is –1.
Xt returns the random univariate time series.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

TSA Vector Normal Distribution (waveform)

samples specifies the number of samples of the generated time series Xt. The value must be greater than or equal to 0. The default is 1024.
mean specifies the mean values this VI uses to define the center of the multivariate normal distribution.
covariance specifies the covariance matrix this VI uses to define the multivariate (vector) normal distribution. This matrix must be symmetric.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
Xt returns the random multivariate (vector) time series.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

TSA Uniform Distribution (waveform)

samples specifies the number of samples of the generated time series Xt. The value must be greater than or equal to 0. The default is 1024.
lower endpoint specifies the minimum value for the uniform distribution.
upper endpoint specifies the maximum value for the uniform distribution.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
seed specifies the seed of the noise sample generator. Seeds with different values greater than 0 generate different noise sequences. Values less than 0 cause reseeding each time this VI runs. The default is –1.
Xt returns the random univariate time series.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

TSA Chi-Square Distribution (waveform)

samples specifies the number of samples of the generated time series Xt. The value must be greater than or equal to 0. The default is 1024.
degrees of freedom specifies the degrees of freedom this VI uses to define the chi-square distribution.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
Xt returns the random univariate time series.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

TSA T Distribution (waveform)

samples specifies the number of samples of the generated time series Xt. The value must be greater than or equal to 0. The default is 1024.
degrees of freedom specifies the degrees of freedom this VI uses to define the t distribution.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
Xt returns the random univariate time series.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

TSA F Distribution (waveform)

samples specifies the number of samples of the generated time series Xt. The value must be greater than or equal to 0. The default is 1024.
numerator degrees of freedom specifies the degrees of freedom of the numerator this VI uses to define the F distribution.
denominator degrees of freedom specifies the degrees of freedom of the denominator this VI uses to define the F distribution.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
Xt returns the random univariate time series.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

TSA Random Sequence Generation Details

This VI generates a pseudorandom sequence from different distributions, such as the normal, uniform, chi-square, t, and F distributions.

Normal distribution random series

Xt is a univariate time series from the normal distribution. Xt satisfies the following probability density function:

where m is mean, and s is standard deviation.

Xt is a multivariate (vector) random series with m channels from the joint normal distribution. Xt satisfies the following probability density function:

where m is mean, S is the m×m covariance matrix, and XT is the transpose vector of X.

Uniform distribution random series

Xt is a random univariate time series from the uniform distribution. Xt satisfies the following probability density function:

where a is lower endpoint, and b is upper endpoint.

Chi-square distribution random series

Xt is a random univariate time series from the chi-square distribution. Xt satisfies the probability density function f(Xt) as

where n is degrees of freedom, and G(x) is a gamma function defined as

T distribution random series

Xt is a random univariate time series from the t distribution. Xt satisfies the following probability density function:

where n is degrees of freedom.

F distribution random series

Xt is a random univariate time series from the F distribution. Xt satisfies the following probability density function:

where n1 is numerator degrees of freedom, and n2 is denominator degrees of freedom.

This VI computes the F distribution by dividing each independent chi-square distribution by n1 and n2 respectively, then calculating the ratio of the two divided chi-square distributions.

Examples

Refer to the following VIs for examples of using the TSA Random Sequence Generation VI:

  • Random Series Generate VI: labview\examples\Time Series Analysis\TSAGettingStarted.llb
  • Series Statistical Analysis VI: labview\examples\Time Series Analysis\TSAGettingStarted.llb

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit