03-28-2022 12:34 PM
I have a 2D array and would like to populate data on the waveform chart. So basically, I need three horizontal lines for +, -, and x. I want cycle in red below on x-axis and the rest on y-axis. I have tried to pay with the waveform properties and still couldn't figure how to solve this problem. scale property has been deceiving me. I don't want the zig zag lines as shown below. I just 3 lines (1,2,3) going across and keep updating for every cycle. Can someone please help me with this?
This below is what I am getting and I don't want it. Another issue is that it keeps updating way faster than the cycle. I would like to update as the cycle updates.
03-28-2022 01:02 AM
So I want the circled data to be (updating) on the x-axis and the rest of the data on the y-axis, but I can't figure out the way to do it. I tried waveform properties, still can't figure out the solution.
03-28-2022 01:33 AM
Because your time step between data points is the same every time you don't need to give the chart you x axis data. It will increment the x axis by 1 every time you write a point to it. If you want it increment by something other than 1 see the scale and offset properties of the chart.
If your time steps were unequal I would suggest using an XY graph and keeping a buffer of all the data you want displaying.
03-28-2022 12:18 PM
Go to NI Learning center. It has all the informations that you need. Have you read the tutorials?
03-28-2022 12:20 PM - edited 03-28-2022 01:03 PM
Go to Ni learning center. Have you read tutorials? hahahah
HAHA... This is usually what I get from people.
03-28-2022 01:01 PM - edited 03-28-2022 01:07 PM
If you have explicit X values that are not equally spaced (or even duplicate, e.g. 0 occurs twice), you need an xy graph. If that first value is wrong and the x values are actually spaced equally, you can just use a waveform graph and set x0,dx of the x axis accordingly.
@GRCK5000 wrote:
Another issue is that it keeps updating way faster than the cycle. I would like to update as the cycle updates.
It updates once per second because that's your loop time. What's the "cycle time" and where does it come from?
Your entire code seems very convoluted. Can you explain in simpler words what you like to see, what the data represents, and how you interact?
03-28-2022 01:09 PM
03-28-2022 01:23 PM
Hi Mr. Altenbach
The reason I write a 2D of zeroes is because, I want to start from the first cycle everytime I re-run my block diagram.
Explanation of what I want to do:
I want (addition (+), subtraction (-), multiplication (x)) to change as the cycle changes as shown on the picture below. Notice I have three lines. For cycle 1. This is what I want to see, then for cycle 2 I would like to see these lines extend to 2 and so on.
03-28-2022 01:23 PM - edited 03-28-2022 01:31 PM
😁😂 I hear you. I was thinking the more accounts you have the more chance you get help. Hahaha.. I'll delete the other account then. But why didn't you answer asdgqwert. But you're here answering my question. You are targeting me Hahaha smh.
When you tell me go to NI learning center, it's not inappropriate. But when I say it, it becomes inappropriate. That's hypocrisy.
03-28-2022 01:36 PM - edited 03-28-2022 01:38 PM
Hi GRCK,
@GRCK5000 wrote:
When you tell me go to NI learning center, it's not inappropriate. But when I say it, it becomes inappropriate.
You wrote that in an appropriate way: there's no need to give Paul an answer like yours when he is giving free content to the community. When I told you to do the basic tutorials then there was a clear indication (from your own messages) to recommend them…
@GRCK5000 wrote:
I was thinking the more accounts you have the more chance you get help. … But why didn't you answer asdgqwert.
I don't know any public forum where duplicate questions given from several accounts of apparently the very same person is considered "accepted behaviour".
I didn't answer your other nickname because I also need to work to earn my living.
Keep in mind: nearly all people responding in this forum are volunteers!