LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems to read data with Simulation Interface Toolkit

I am using the Simulation Interface  Toolkit 3.0.3, along with Labview 8.2.1 and Matlab/Simulink 7.1. When I build this "sinewave" simple program to check if it works properly, I get a "segmentation violation" error in Matlab. When I modify the program so that I don´t use the output, then it works perfectly and I am able to change the values of the input. But when I try to get some information from the output, the "segmentation violation" error appears again. I tried to modify the data to "test only", and also the configuration parameters like signal storage reuse, or block reduction optimization (in help it was said that it could give problems), but the error is still there when I run it. I read the same problem appeared in another version. Is it possible to find a solution for this?
0 Kudos
Message 1 of 4
(2,804 Views)

Hey,

I have seen that you are allready in contact with the NI Germany support about this topic. A colleague of mine is currently working on this SRQ!

 

BR, Christian

0 Kudos
Message 2 of 4
(2,784 Views)
I believe, you already have an active SRQ with Marco Brauner at NIG, right?
Did you try to reinstall the SIT software?
Did you configure the Windows Firewall as well?

Further suggestions:
In the NISignalProbe block the following commands are used to access specific parameters and/or to modify simulation states -> set_param and get_param.
At first you should check whether Matlab is probably installed or configured.
Type in your matlab command window the following commands:
help get_param
help set_param

If both are found by Matlab, open a blank Simulink system and simply code a constant and a gain block.
Disable the block reduction attribute.
Afterwards save the MDL file into the active directory and switch back to the command window and use the following commands:

set_param ('ModelName','SimulationCommand','start');
set_param ('ModelName/Constant','Value','4');
set_param ('ModelName/Gain','Gain','2');
get_param (ModelName/Gain','Gain')
result = 2;
set_param ('ModelName','SimulationCommand','pause');
set_param ('ModelName','SimulationCommand','start');
set_param ('ModelName','SimulationCommand','stop');

If this is working, ensure that port 6011 isn't used twice and if you havn't reinstalled the SIT software, do it.
If the above quotet commands are not working, please refer to the support of Mathworks.

Thanks,
ThSa
0 Kudos
Message 3 of 4
(2,784 Views)
Thanks for the information. I think the problem was that I am not administrator in this computer, and you have to be when installing the SIT. I will try to install it from an administrator account and we will see. I will let you know if it works.
 
Thanks a lot,
 
Jose H. Gomez
 
0 Kudos
Message 4 of 4
(2,773 Views)