LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT Connection manager mapping discrepancy

Hi.
 
I'm trying to map signals from a simulink model to controls/indicators within Labview thru the SIT Connection manager.
The problem is that if a double click on signal A, I can also see signal B listed, but when I double-click on signal B, the signal does shows anymore and I'm only able to see the subsystems of the model. However this doesn´t happen with all the signals I have, only some of them.
 
The model declared only parameters, but I already change to signals the ones I need to tuned up using SIT.
Any clue why this is happening?
 
 
0 Kudos
Message 1 of 8
(3,336 Views)
I just notice that the indicators contains the information but not the controls. This is, if I have a control A and an indicator B, I'm able to see A, only when double-click on B to map.
Does this have to do with the fact that I have a subsystem in the upper layer with inputs and outputs only in the model?
0 Kudos
Message 2 of 8
(3,319 Views)

Hi arsa,

I am looking in to this issue.  I will post my results shortly.

Kevin S.
Applications Engineer
National Instruments

0 Kudos
Message 3 of 8
(3,300 Views)

Hi arsa,

First off, what's the version of SIT that you have?  What's the version of your software as well?

Do you have mappings that go to and from a subsystem that you're trying to map through the SIT Connection Manager?  (From what I understand, SIT version 4.0 and previous cannot map to and from subsystems.  However, your subsystem would appear in the model tree when you modify mappings.  See this help file.)

For more information on models containing linked or masked subsystems, see the last 2 paragraphs in this help file.

I hope this helps,
Kevin S.
Applications Engineer
National Instruments

0 Kudos
Message 4 of 8
(3,286 Views)

Thanks for your answer.

For the SIT version where can I see the version? but I guess is the latest.  

Matlab is 7.5.0.342 (R2007b)

I do have subsystems, but they do contain inputs and output ports and all the parameters I want to connect are in the higher layer, where I insert the SIT block.  

I'm working with models that uses simulink, stateflow and RTW for automotive embedded applications. In the help file, it mention the simulink model needs to be converted into a dll, does that means I'm not able to just plug and play the simulink model and Labview running at the same time without converting it into a dll for this type of applications?

It may be important to mention that for this type of application we declare simulink.signals for variables and simulink.parameter for constants.

What is still odd to me is why I can see or not see the parameters, wheather I click on an indicator or control.....

 

0 Kudos
Message 5 of 8
(3,255 Views)

Hi arsa,

To find your Simulation Interface Toolkit (SIT) version, go to the Measurement and Automation Explorer.  Under the tree to the left, select My Computer » Software » LabVIEW x.x » Simulation Interface Toolkit.  When you select the Simulation Interface Toolkit, you can see the version number in the center screen.

There are two ways to use the LabVIEW Simulation Interface Toolkit.  First, if you have Simulink®, you can access the model you have open with the Simulation Interface Toolkit without creating a DLL.  (See the referenced article below.)  Second, you can create a DLL out of your Simulink® model and then use that DLL on a different computer that has the Simulation Interface Toolkit.  Both methods allow you to access the model in LabVIEW.

This article talks about some of the specifics in using the SIT Connection Manager.  Did you follow the same process yourself?

In order for me to reproduce what you are seeing, is there a way for you to post your code and the steps you use to reproduce the behavior?

I hope this helps,
Kevin S.
Applications Engineer
National Instruments

Note: Simulink® is a registered trademark of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.



Message Edited by Kevin_S on 07-07-2008 04:33 PM
0 Kudos
Message 6 of 8
(3,213 Views)

Kevin.

 

The SIT version I'm using is 4.0.0.

Find attached a zip file with a simple example. The images are what I'm seeing when try the mapping.

 

Regards.

 

Arlette



Mensaje editado por arsa
0 Kudos
Message 7 of 8
(3,196 Views)
Hello Arlette,

So are you trying to use subsystems within your model?  If this is the case, as Kevin has previously stated
SIT version 4.0 and previous cannot map to and from subsystems.  However, your subsystem would appear in the model tree when you modify mappings.  Here is some documentation that relates to using subsystems within your model that may be of use while I research this issue:

Models Containing Linked or Masked Subsystems

You can create mappings to parameters and signals of masked subsystems. However, if a subsystem is linked, or linked and masked, any mappings to parameters and signals of that subsystem appear invalid. Refer to the Simulink documentation for information about linked and masked subsystems.

Subsystems without Parameters or Signals

If a model contains a subsystem that does not have any parameters or signals, that subsystem appears in the model tree when you create mappings. However, you cannot create mappings to/from that subsystem.

<script type="text/javascript"> if (typeof(Print_Link)=="function") { Print_Link(); } </script>
I am also wondering if there are settings that you need to specify because I noticed on your images that for the control it is prompting for "Parameters" and for the indicator it is prompting for "Signals".  I know you were saying that you can only see certain "Signals"  within the manager.  Could it be that we are actually looking for Parameters for the control as opposed to Signals? 

If you have any further information on this issue or any further questions please just post back here and I will try to assist you to the best of my ability.



Thanks!
Bob H
Applications Engineer
National Instruments
0 Kudos
Message 8 of 8
(3,146 Views)