LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiplication error in DLLs created with SIT

I have a problem with a multiplication in a DLL created with the Mathwork's Matlab/Simulink and National Instruments SIT. When multiplying two values of different types (fixed point types) I get really strange and unexplainable results. When I run the simulation in Simulink only, I do not get the error. But when running the same program as DLL in Labview I get a result of 146.xxx instead of 235. Feel free to chck out the included files (.mdl, .dll, .vi).

I'm desperately looking for solutions.

Philip
Download All
0 Kudos
Message 1 of 3
(2,708 Views)
Go ahead and hook up your error clusters and attach them to an indicator. This way you can see if there is a labVIEW problem with your code.

I cannot run your code myself because of a lack of software but I opened the VI up and saw it was missing error handling.
0 Kudos
Message 2 of 3
(2,708 Views)
Meanwhile I found out, that the problem is in the Mathworks' Realtime Workshop. They're already working on a bug fix.
0 Kudos
Message 3 of 3
(2,708 Views)