h_magVect,gh_magVect, cl_magVect |
Input |
Pointer to the array that stores the magnitude of H, GH and CL measurements by SFRA . Pass NULL if you do not want SFRA to save that vector. |
Pointer to 32 bit location, the location stores the value of the magnitude vectors in single precision (32-bit) floating point |
h_phaseVect,gh_phaseVect, cl_phaseVect |
Input |
Pointer to the array that stores the phase of H, GH and CL measurements by SFRA . Pass NULL if you do not want SFRA to save that vector. |
Pointer to 32 bit location, the location stores the value of the phase vectors in single precision (32-bit) floating point |
freqVect |
Input |
Pointer to array of frequency values at which SFRA is performed. |
Pointer to 32 bit location, the location stores the value of the frequency vectors in single precision (32-bit) floating point |
amplitude |
Input |
Amplitude of small signal injection in pu. |
Single precision (32-bit) floating point(-1,1) |
isrFreq |
Input |
Frequency at which SFRA routine is called. |
Single precision (32-bit) floating point |
freqStart |
Input |
Frequency of the first frequency sweep data point. |
Single precision (32-bit) floating point |
freqStep |
Input |
10^(1/(no of steps per decade)). |
Single precision (32-bit) floating point |
start |
Input |
Command to start SFRA. |
int16_t |
state |
Output |
SFRA state. Non zero when SFRA injection is in progress, '0' if SFRA injection is not active/ in progress. |
int16_t |
status |
Output |
SFRA status. '1' is SFRA injection is in progress, '0' if SFRA injection is not active/ in progress. |
int16_t |
vecLength |
Input |
No of points for which SFRA is performed. |
int16_t |
freqIndex |
Output |
Frequency index number of freqVect at which SFRA is being performed. |
int16_t (0-vecLength) |
storeH |
Output |
Reflects the SFRA configuration, If one, H vector is stored If zero, H vector is not stored this happens when a NULL vector is passed for H mag or phase vector during SFRA configuration. |
int16_t (0 or 1) |
storeGH |
Output |
Reflects the SFRA configuration, If one, GH vector is stored If zero, GH vector is not stored this happens when a NULL vector is passed for GH mag or phase vector during SFRA configuration. |
int16_t (0 or 1) |
storeCL |
Output |
Reflects the SFRA configuration, If one, CL vector is stored If zero, CL vector is not stored this happens when a NULL vector is passed for CL mag or phase vector during SFRA configuration. |
int16_t (0 or 1) |
speed |
Input |
Used to change the speed of the sweep, need to be greater than 1. With 1 the STB example template sweep takes ~58 seconds. Actual speed in the system will depend on the frequency point being measured and the ISR rate used for calling the SFRA module. Higher the speed number the slower the sweep. |
int16_t (Greater than 1) |