d_to_c (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
d_to_c (MathScript RT Module Function)
Owning Class: convert
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysCon = d_to_c(SysDis)
SysCon = d_to_c(SysDis, method)
SysCon = d_to_c(SysDis, 'prewarp', w)
Legacy Name: d2c
Description
Converts a discrete system model to a continuous model using the method you specify. Refer to the LabVIEW Control Design User Manual for information about these conversion methods.
Inputs
| Name | Description | ||||||
|---|---|---|---|---|---|---|---|
| SysDis | Specifies a discrete model in transfer function, zero-pole-gain, or state-space form. | ||||||
| method | Specifies the method this function uses to convert the SysDis model to the SysCon model. method is a string that can take the following values:
|
||||||
| w | Specifies the prewarp frequency, in radians/second. The default value is 4. w is a real scalar. |
Outputs
| Name | Description |
|---|---|
| SysCon | Returns a continuous model in transfer function, zero-pole-gain, or state-space form. |
Details
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | Yes |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Not characterized |
Examples
A = [0.5, 0.25; 0, 0.1]
B = [1, 0]'
C = [-1, 0]
SysDis = ss(A, B, C, 0, 0.1)
SysCon = d_to_c(SysDis, 'prewarp', 2)