Hi, I am trying to simulate aircraft equations. I need to solve 12 ODEs simultaneously using R-K 4th order. I have created a VI for the same. But when I close the VI file, all the data like initial conditions(X0), F(X) and Variable names(X) get lost. Everytime I open the file I need to feed all the values, equations again evenif I save the file before closing.
Please tell me how to save this data. I am using arrays (controls, indicators) to give the input to the ODE solver block. Kindly help me as I am spending most of my time in writing those big equations again and again.
Edit->Make Current Value Default and then save the file.
This is not the best way to deal with this. 1. Use ini-file to load you data into the controls at start. 2. Use constants to initialise the controls at first call.
I agree with André, you can from the front panel select the current data (after you've put in what you want) as the default. Or you could have all of this information in an external file (.ini, for example) and pull that in. Or you could use property nodes and set the values at the start of the program. Or lastly rather than having these be controls, have them be constants.
Regards,
Jared Boothe Staff Hardware Engineer National Instruments