08-12-2014 05:05 AM
I'm creating a state space funktion in labview. Now i want to specify the entries of the matrices A,B,C and D. I have the entries in an excel table and i'm looking for a solution to import this entries into labview. I don't want to define them by hand because the matrices are of a wide structure.
08-12-2014
08:34 AM
- last edited on
06-09-2025
12:40 PM
by
Content Cleaner
Hi corleone13375,
if need to import it only once you can use this trick. If you need to copy data in each run, this VI can be useful.
Best regards,
CaravagGIO
08-12-2014 04:21 PM
First you need to convert the A,B,C,D matrices from 'string' to a State-Space model. You can use this example VIs as reference:
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Control Design\Model Construction\CDEx Creating SS Model from String Matrix.vi
Then if you create a Indicator out of the "CD Construct State-Space Model" like this:
Then you have the cluster that represents the state-space model, you can select the control, then use <CTRL-C> to copy into the 'clipboard'.
Then, open you State-Space function from simulation, select the 'state-space' parameter and use the 'Paste from clipboard' button. You should see your model parameters showing for you.
08-13-2014 07:28 AM
That works well, thank you!