LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I map Simulink input port to Labview boolean control?

What I would like is a simple on/off switch in labview to control the input of a system in Simulink. I would like to map this to the "In 1" port in Simulink using SIT, but it does not show up to be mapped?! I am a new user and I have a feeling that this is a simple question, so any suggestions on better methods to get what I want are appreciated. I have used the Sinewave example in the past to get used to the software, but I don't want to sum the "In1" port with another input signal to get my results as is done in this example. Anyone know my solution?
-Derek
0 Kudos
Message 1 of 5
(3,286 Views)

Hello Derek,

I have looked in the help files and found an article titled "Creating Mappings."  Take a look at it and let us know if it helps you.

Happy Holidays!

Janell R | Applications Engineer

0 Kudos
Message 2 of 5
(3,270 Views)
I have read the help file on creating mappings, but it still does not help me understand how to fix my issue. It seems that I am trying to map a boolean to a string, but is there some way to fix this?? It does not seem correct to just map the input string to some DAQ port with the value zero just to satisfy the requirement of having it on the model. I need to input a boolean signal to the simulink model. Is there no way to map this to "In 1"? I can map the input to a constant block on the simulink model and make it work, but then I have to put the input port elsewhere on the model where i do not need an input.
0 Kudos
Message 3 of 5
(3,261 Views)

Oops...I posted on a friend's account, but the previous post was from me. Do you understand my issue? I have a support request opened about this, but I haven't been able to get it resolved.

 

-Derek

-Derek
0 Kudos
Message 4 of 5
(3,255 Views)
Hello Derek,
 
What datatype is In 1?  It seems you can only map datatype to datatype, so you would not be able to map a boolean to anything but a boolean.
 
Happy Holidays!
 
Janell R | Applications Engineer
0 Kudos
Message 5 of 5
(3,243 Views)