07-20-2017 08:26 AM
All, I have a very simple model where I am loading a Simulink dll into LabView to extract the values of the parameters used in the dll and the output value. The output in the Simulink model is connected through NiVeriStand Out1. I am not able to figure out the blocks I need to use to extract the values and display them in LabView. Any help is appreciated. I am uploading the VI and the dll
Solved! Go to Solution.
07-20-2017 01:05 PM
Anyone out there who knows how to display outport values in LabVIEW? I can display the outport name but not able to figure out how to display the value
07-21-2017 02:51 PM
Hi pk68,
Could you clarify the jump you're having trouble making? It looks like you've got the Get OutPort.vi, which should display the value of the outport. Are you having difficulty with getting the inputs to that VI?
07-24-2017 07:52 AM
Hi William,
I have updated the model to include "Take Model Timestep.vi" However I still have trouble displaying the outport value. The simulink model runs standalone and shows the correct output value. However I want to display that in LabView since that is the first step of my work. It may be an issue with getting the inputs to the VI but I am not sure. I am attaching the updated model along with the dll and a screen shot of the Simulink model here. Appreciate your help. The dll is a win32 dll built with Matlab 2015b
07-24-2017 12:15 PM
I solved this issue. Apparently I need to use the native Simulink output block in my Simulink model. I was using the NIVeristand Out1 block since I thought that is needed to make the Simulink model talk to LabVIEW. I really don't know why this is the case, but it works.