02-17-2010 02:00 PM
This is going to be a little difficult to explain but I am going to do the best that I can. I have attached two pictures to help explain what I want and what I have done.
I have a Matlab Simulink model that I am running on a LabVIEW RT ETS machine through NI's SIT connection manager in LabVIEW 2009. I currently have data from that Simulink model being displayed on a waveform chart in the host VI and that works correctly. I have also modified the Driver VI for this SIT project to manipulate outputs from the Simulink model. I also want to send a copy of that data to the host VI to include it in the same chart. Right now instead of graphing on the SIT controlled chart, I added a VI in the driver project that graphs the variables. This requires running twi VI's at the same time to plot variables. So in order to have less windows open and less deployment time (considering anytime I have to make a change I have to deploy two VI's) I want to combine these two VI's into one.
I have run into a problem already. On the second attached picture is something that I have tried. Every time that the SIT Connection Manager window is open and closed it rewrites the information on the wire diagram of the host VI, so I have to rewrite some of the code that I have written. I realize this, but for right now it is something that I am willing to deal with.
03-08-2010 02:56 PM
MegaWatts,
I'm not sure if you are still having this issue or not, but you should make sure that in the Hardware I/O tab of the SIT Connection Manager that "Force Rebuild of Driver VI" is unchecked. That would cause the behavior that you are seeing.
03-11-2010 02:08 PM
I am still having the issue, but my main concern was not having to rewrite the driver VI. I am mostly concerned with trying to plot on a chart that is being used by the SIT connection manager.
Michael
03-11-2010 02:58 PM
Are you wondering what the possible issues are, or are you currently running into issues? It may affect the determinism of your code, but you would probably have to try it and test it.
Sorry if I missed the real question again, but I would like to help.
03-12-2010 09:39 AM
What I want to be able to do is to take a chart that is already having points plotted on it from a MATLAB Simulink model through NI's SIT and be able to directly write other data to that same chart that is not in the Simulink Model. So when you place a chart on the front panel and then go into SIT to select the model paramters to plot on that chart, LabVIEW will take that chart and move it into a set of case statements and while loops on the host VI. I want to be able to plot other data on that chart as well as the data from the Simulink file. It is easy to get to the chart, but adding a signal to the chart is not as easy as it sounds.
Refer to my pictures and previous post for a more detailed description. Thank you for the help.
Michael
03-15-2010 05:50 PM
Hi Michael,
Do you have any code showing the implementation of the pictures you posted before. I think that the concept from the pictures should would work and would like to take a look at the code that you have so far.