Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

peak signal problem

hello ni forum,

i have something to ask about my signal,
i manage to done the programming with no error but i am confius why my signal for peak and valley
is not the same as other signal. with these i have attached the signal image and also
i have the programming i have made.
please correct me where i should change my programming in order
for me to have same signal for each tab.

regards.

mr. zull
Research Assistant
Tun Hussein Onn University
MALAYSIA
Download All
0 Kudos
Message 1 of 3
(2,763 Views)

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!



Message Edited by Brooks_C on 03-03-2008 04:55 PM
Brooks
Download All
0 Kudos
Message 2 of 3
(2,723 Views)
hello,
thanks for the flip signal correction,
i finally manage to display it correctly and i just need to
play with setting for now in order to get the
best signal.
by the way,
thanks so much for the advice

regards,
have a nice day,


zull azym
UTHM
Malaysia
0 Kudos
Message 3 of 3
(2,673 Views)