LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Simulink model using Phasor PowerGUI to DLL file

Hi,

 

I'm currently working on Power System project, which aimming to designing Power System Stabalizer that will damped oscillations created when there is a small changes in load in the network. I got the model done in Simulink and now trying to convert it using SIT into LabVIEW.

 

I able to map all the data that I want to control and link the output graphs to LabVIEW using SIT. Now, I wanted to convert the Simulink model to DLL type file, but while I was trying to convert the model I build in Simulink into nidll type file using R-T Workshop an error popped out and it is said it causes by the "Phasor Type" in the PowerGUI block in Simulink. The error says in order for me to continue the conversion, I need to change the Phasor Type in the PowerGUI to other parameters, I tried it but the model no longer producing the similar result I wanted. I was wondering if anyone know any method to convert a Phasor PowerGUI block in Simulink to nidll type file?

 

 

Thanks

0 Kudos
Message 1 of 8
(7,276 Views)
You may want to post this on the design and simulation board.  It gets less trafic but- this isn't really a LabVIEW question

"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 8
(7,268 Views)
This is a LabVIEW question as I'm trying to convert the model in Simulink that has been connected to LabVIEW using Simulation Interface Toolkit (SIT). SIT provide a oppotunity to convert the model in nidll.trc file but I'm having problem converting my model because of the PowerGUI block in Simulink that I've used. Anyone could help me or experienced this problem before?
0 Kudos
Message 3 of 8
(7,238 Views)

Hi tebu,

 

I just wanted to clarify with you what you have tried already. You said earlier that you tried changing the simulation type. What exactly did you change to try to make this work? Was the simulation type set to 'phasor' and you changed it to something else? Any clarification would be helpful.

 

Also, we'll work from this thread instead of the other thread on Circuit Design Suite board.

 

Take care!

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 4 of 8
(7,199 Views)

Hi Tanya,

 

The model that I'm currently working with is the Performance of Three PSS for Interarea Oscillations model create by Kundur.This model is already existed in Simulink. In this model they use Phasor as measurements for obtaining the results. (The model is attached if you wanted to have a look at it).

 

 I actually could not run the model without using Phasor type in the PowerGUI.  I try to change from Phasor to Continuous but there is still error like this: "The 'power_PSS/System Data/Sequence Analyzer (Phasor Type)' Phasor block is not allowed with the Continuous or Discrete simulation method." The same goes if I changed it to Discrete.

 

 I tried delete 1 block (I'll attached the model with the deleted block too) that has able me to run the model in Continuous, but the result of Simulation is no longer the same which I assume due to the ODE function. With that 1 block deleted, if I use Phasor I could still get the result I desired but the same problemis I still could not convert the model to nidll.trc file.

 

My target is to be able to convert the model into nidll.trc type file by using Real Time Workshop with is available when I install Simualtion Interface Toolkit (SIT) in LabVIEW. The reason of this conversion is so that I could run this model and controlled it in LabVIEW independently without have to open the SIMULINK/MATLAB file.

0 Kudos
Message 5 of 8
(7,190 Views)

Hi tebu,

 

Could you copy and paste all the build information that shows up in your command window into a text file and post it to the forum? Also, did the model run using SIT if it was not built into a dll?

 

Thanks!

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 6 of 8
(7,169 Views)

Hi Tanya,

 

Text file for both simulation using Phasor and Continuous parameter are attached. Yes, the model could be run using SIT without changing into dll.

 

 

Thank you

0 Kudos
Message 7 of 8
(7,153 Views)

Hi tebu,

 

There error you seem to be getting in the build when using continuous mode seems to be 'This_file_can_be_used_only_during_simulation_inside_Simulink®'. This link describes a workaround for this error. Give the workaround a try, if possible, and let me know if it resolves the build error.

 

Take care!

 

 

MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies. 

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 8 of 8
(7,122 Views)