LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulink interface!

Hi group,
I am currently working in a visual robotic control project,We have
developed the control algorithm in LabVIEW and plan to simulate the
robot with a robotic toolbox from Simulink/Real time
workshop.(Robotic toolbox vber 7.0
http://www.cat.csiro.au/cmst/staff/pic/robot/) .We have used
Simulation interface toolkit to get a dll from matlab and port this
thing on to LabVIEW.The problem is that S function doesnt get
exported to the dll!.IS there any way we can get around this!!!
Help!!A lot of time has gone into developing the code for LabVIEW so I
cant reprogram in MAtlab!!
Are there any other robotic tool box for LabVIEW itself similar to the
above toolbox...? Thanx in advance

Badhri
0 Kudos
Message 1 of 3
(2,957 Views)
In order to have S-Functions work in Simulink and the Real time workshop generated code, refer to the section "Writing S-Functions: Writing S-Functions for Real-Time Workshop" in Simulink documentation. In general placing the C source file of the S-Function in the same directory as the model will allow it to be included in the DLL.

Another option is to compile the C source (of S function) into a DLL and call it using the Call Library Node in LabVIEW. though it may require you to reengineer the model a bit.

Thanks
SumitG
NI R&D
0 Kudos
Message 2 of 3
(2,957 Views)
Dear Badhri,

I came across your support request and realized that I've seen a similar circumstance occur in the past. A customer was having problems building a MatLAB simulink DLL using a LabVIEW toolkit.

http://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/0e0740a80c80af3286256ae300735efd?OpenDocument

I hope this helps. Please feel free to contact me if you need further support. Have a great day!

Kind Regards,

Joe Des Rosier
National Instruments
0 Kudos
Message 3 of 3
(2,957 Views)