11-28-2013 03:16 AM
Hi,
I have a question regarding the waveform graph. My prolbem is that the X-axis of waveform graph shows only up to x=0.1 and it does not show the graph more than that and when I increase the X-axix scale in its PROPERTIS (lets say to x=2), the maximum number on the X-axis increases (to x=2) but the graph is shown up to 0.1!! I have attached a very simple code that shows my problem.
Would you please help me? I need the graph to show me for all x-values, from x=0 to x=10.5.
Thanks,
Soran
Solved! Go to Solution.
11-28-2013 03:28 AM
11-28-2013 11:37 AM
Hello,
Thank you for your reply.
Unfortunately my problem is not solved
I am sorry but as I explained in the previous message I should have the graph for all X values from X=0 to X=10.
When I do the same that you suggested, the graph appears only from X=0 to X=0.1 and when I change the Minimum and Maximum of X axis, the graph does not change. I have provided a screenshot of the code. As you see, the Minimum and Maximum values are -0.1 and +0.18 but the graph shows from 0 to 0.1 !!!! How can I see the sine wave for all X values that I want?
Many thanks,
Soran
11-28-2013 12:01 PM
For both graphs, you are only generating 0.1 seconds worth of data. 100 samples at a rate of 1 kHz. So the graphs are showing exactly what you are giving them.
Now you have it in a while loop, which means you are just doing the same thing over and over again.
Are you getting your waveform graphs confused with waveform charts?
A waveform chart maintains a history of the data that was sent to it and will place later iterations of data in the while loop after the earlier ones.
Two other things.
1. Your Stop button should have the mechanical action of Latch when Released rather than Switch when Released which will cause it to reset and pop back up once it has been read.
2. Set your Simulate Signal Express VI's to simulate acquisition timing rather than run fast as possible.
11-28-2013 12:42 PM
Hi Soran,
Sorry, still ur question is unclear to me.
What do u mean all values till 10?? i've kept freq =0.1 and adjusted other values, don't know if that's what u're expecting.
11-28-2013 10:18 PM
Got it. Thank you