02-29-2008 09:25 PM
03-03-2008 04:53 PM - edited 03-03-2008 04:55 PM
Hello Mr. Zull,
After reading your comments on the block diagram I think I've identified a couple things you’ll want to change. I believe that if you look at the top input to the "Peak Plot" graph you'll find that the x and y inputs are reversed. Switching this should plot the intended (x,y) graph. The second issue is the x-scale of your three graphs. In your for loop below the number "4" comment on your block diagram you scale the x input to be on the time scale rather than just an index. The problem with this is that the x axis of your other two plots is an index, not a time. I believe this is why you're graph isn't displaying correctly. Once you change the x and y inputs to the top graph you should see your data plotted at the far left of your plot. I would put a graph on each of the 3 graphs that go into the "Peak Plot" so that you can do some debugging. This is what I did and it made it evident that they x-axis of the first plot was different than the other two. I’ve also attached an image of my graph after I made the above changes so you can see if it’s what you want or not. In my example I just changed the axis to be sample number rather than time, but in your case you may want it to be time so you’ll need to scale the other two scales.
Here is the result I think you want:
Here are the things I changed to get the above result:
I hope this helps get you started. Have a great day!
03-14-2008 08:01 PM