05-26-2011 11:46 AM
Hi again! I'm desperated. I just want plot a good graph and it's impossible for me. I have a complex waveform (Y, t0, dt). In the context help we can read that dt specifies the time between values in the Y array. Well, this dt is good for my work (0.5 us) and I want to plot a graph value per value (so in the x-axis I want to see the data each 0.5 us). It should be an pulse graph that in each point of 0.5 us changes to 0-1 or 1-0. I don't know how to do that. Please, please!!
05-26-2011 11:59 AM
With a standard waveform datatype that you have (it's not at all complex), you simply wire it to a graph indicator. So, if you are having trouble, perhaps you don't have a waveform datatype, or perhaps you are wiring to a chart, or perhaps any number of other problems that no one can tell because you have not posted your VI or even a snippet.
05-26-2011 12:05 PM
Sorry. I attached some pics now. The output what I say is the pink output of the conitnuos BB-psk gen.vi. I need to measure the period between each pulse and with this graphs I cannot.
Thanks.
05-26-2011 01:07 PM - edited 05-26-2011 01:09 PM
Your figures indicate you are using a waveform chart for I and Q. Use a waveform graph instead. That pink wire is a cluster. I am assuming that subVI creates a cluster that's t0, deltaT, and Y as the cluster elements. If so, you can connect this directly to a waveform graph (there is also a minor inconvenience in that you have to first connect to a cluster in which Y is DBL instead of CDBL). The limitation is that if the data is complex, then only the real part will be shown. You can simply rebundle the real and imaginary arrays into separate clusters/waveforms to create the individual I and Q graphs. Something like the following, for example:
Note: You have 2 very bad no-nos in your code:
05-26-2011 01:27 PM
ok, thank you very much. I'm new in Labview and I don't know to program good. The problem is that my Y es 1-D array, so first I have to convert it into a DBL format??
05-26-2011 02:26 PM
Your Y array is complex DBL. While you can wire it to an araray indicator and see the complex values, if you wire it to a graph it will only graph the real part. You have to graph the real and imaginary separately if you want to use a waveform graph. You were already doing that in the code. All I showed you was the rebundling operation.
05-27-2011 02:13 AM
I did what you say but the graphs that I get are not good. I want to see each pulse every 0.5 us.
05-27-2011 09:02 AM
Well, what is your t0 and dt? Did you put a probe on there? Put a probe on the cluster wire going into that first unbundle operation.
If you still have problems, then right-click on that cluster wire going to that first unbundle operation. Run the VI. Then stop it. Right-click on the indicator that you just created and select Data Operations -> Make Current Value Default. Save the VI and then upload it. This will allow us to see the actual data.
Also, there is no need to unbundle, bundle, and then unbundle again to get to the individual t0, dt, and Y. One unbundle is enough.
05-27-2011 10:29 AM
Nothing changes... 😞
05-27-2011 01:50 PM
From your use if the "history" propety node in an earlier image, it seems you are using charts instead of graphs. Is that really want you want?