LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Sending Boolean Signals to Simulink Model via SIT (Simulation interface toolkit)

Hi,

I am facing a problem with the Boolean instruments when working with SIT.
On my VI I have some boolean instruments (On/Off Switch). These are connected to the Simulink model Constant blocks. SIT works fine (creates diagram etc). I am also able to run the VI and establish connection with the model. But, when I change value of either of the switch the VI 'stops'.
Instead of Boolean instrument, if I use a normal numeric instrument, then everything works just fine.
Any ideas to work around the problem?

Regards,

Amit
Message 1 of 4
(2,619 Views)
Hey Amit,

SIT doesn't support Booleans. But there is a workaround. What you need to do is convert on both sides to numeric before going through the dll. Once you have the numbers on each side, then you can convert back to Boolean.
On both sides there are tools to convert to/from numeric to/from Boolean.
Hope this helps


Ricardo S.
National Instruments.
Message 2 of 4
(2,603 Views)
Hi Ricardo,

Thanks for your help. The issue has been resolved. One of your representatives was here with us this afternoon.
Apparently, there is a different workaround. The one you suggested will not work. We had tried out at our end. But your suggestion is inline with logic. There is something with the way the SIT makes connections.
Anyways, bottom line is the issue is resolved. I am attaching the solution that we came up with. This also might help some other users. Thanks for the help again.

Regards,

Amit
Message 3 of 4
(2,600 Views)
Hello,

I talked to your Sales Rep and the problem was that you were not using a DLL. I am glad it is working now.
Thank you for attaching your solution so that other people can work with it.

Ricardo S.
National Instruments
0 Kudos
Message 4 of 4
(2,592 Views)