From: Jon Dufour on 17 Mar 2010 11:18 Hi all, I currently have a rather large, rather advanced, real-time DAQ model in simulink, which I control completely using a GUI that I designed in GUIDE. I have around 60 specific signals that I would like to view in real time using multiple simulink viewers, however, despite all efforts to optimize parameters like viewer refresh periods, sampling rates, data storage, downsampling values, etc., I am unable to display all 60 signals in real time in the viewers without seeing a considerable delay once the viewers start scrolling (i.e. the signal response on my viewer is delayed compared to the input i push through the DAQ board via, for example, EMG sensors). I do not have this problem if I am pushing less data to the viewers (i.e. viewing fewer signals). Here are my specific questions: Is there a way to edit the "Signal Selector" properties of each Viewer using my GUI dialog box (i.e. functions). For example, at one instant I would be viewing 10 of the signals in a given Viewer. I want to be able to stop my Simulink simulation, click a push button in my GUI that runs a function that changes the parameters of the "Signal Selector" for a Viewer (it seems like you should be able to designate the state of the check boxes in the Signal Selector with a function similar to set_param), re-start my simulation, and I would be viewing 10 different signals in the same viewers. It is really annoying to have to go into my block diagram, right click on the signal, select connect to an existing viewer, etc. It would also be nice to be able to display and undisplay viewers by running a function instead of going into the "signal & scope manager" and double clicking on which Viewer I want to open. Finally, are there any ways to decrease this real-time delay that I do not mention below? Here is a little more about my model: I am currently running Matlab R2008a under the Student Configuration, however, I should have access to the Matlab R2009b Faculty Configuration soon. I am using an Analog Input block from the DAQ toolbox as my source: -2000 hz sample rate -block size of 2 -SingleEnded Input Type -26 Channels -Sample based signal type -Double data type I have multiple viewers, some of which have multiple axis, all of which have multiple signals displaying in real-time. -.05 refresh period -scrolling checked -10 second time range -Limit data points to last 0 or 5000 samples (depending on the viewer) All of my signals going into the viewer are downsampled considerably using the downsample block to decrease the number of data points going to the viewers. Please let me know if you can help! Thanks, Jon
|
Pages: 1 Prev: Movie Player - Command-Line Next: Complicated vector operation! |