11-23-2010 11:41 AM
I've created a VI in LabView which plays a video file, and changes the size of the video screen and volume depending on the the received signal from a signal generator, which generates a sine wave. So if the sine wave has a value(amplitude) of 1 the screen is at maximum size and volume, if it's at -1 then it's at minimum screen size and volume. What I want to do now is to replace the signal generator in LabView by a signal produced in Matlab(Simulink). So I would generate a sine wave in Simulink which would control the screen size and volume in LabView. I have been using the Simulation Interface Toolkit (SIT) to interface the two programs, which results in an additional code being dropped into my block diagram. I've been trying to wire this part of the code to the part of the VI to control the video parameters, but am unable to make it work. Furthermore I've been experimenting with mapping VIs onto the Matlab signals. I'm unsure which part of the SIT block is responsible for sending the data that would be able to control the video size and volume and how I should connect that to the parts of the block diagram that I made. I've attached the VI without the SIT block to this email, and furthermore the one with the SIT block where I tried to attach it the video VI. Unfortunately it wont let me attach the Simulink file but it's just a simple Sine wave generating block diagram. I'm using Labview version 8.6 and Matlab 2009a.
Regards,
varkong