11-01-2024 01:14 PM - edited 11-01-2024 01:16 PM
"Okay, so I was plotting a graph, and I noticed this issue with the graph. What can I do to solve this?"
Let me know if you need any additional help with the graph issue!
11-01-2024 03:08 PM - edited 11-01-2024 03:16 PM
You don't have a problem with the graph, but a problem with the data or how it is wired to the graph terminal.
A graph displays data. It does not modify data!
What is the datatype of the xy data (array of points? cluster of two arrays? Complex array? dynamic? etc. etc.) and where does it come from (read from file? read form measurement device? simulated?)
Since you did not attach any data or VI, there is currently no way to help you.
11-02-2024 04:00 PM
The only flaw I can see is that the colors are ugly.
Try using some non-ugly colors.
11-02-2024 04:10 PM - edited 11-02-2024 04:12 PM
@paul_a_cardinale wrote:
The only flaw I can see is that the colors are ugly.
Try using some non-ugly colors.
All colors are near default, (white trace on black background with green grid and yellow cursor.). The green grid almost hints that this is not an xy graph, because that would have a yellowish grid by default. Who knows? We don't even know what "issue" the OP had in mind.
I any case, we need to primarily fix the code (and maybe the data). We can worry about cosmetics at the very end.
11-02-2024 04:26 PM
@altenbach wrote:
@paul_a_cardinale wrote:
The only flaw I can see is that the colors are ugly.
Try using some non-ugly colors.
All colors are near default, (white trace on black background with green grid and yellow cursor.). The green grid almost hints that this is not an xy graph, because that would have a yellowish grid by default. Who knows? We don't even know what "issue" the OP had in mind.
I any case, we need to primarily fix the code (and maybe the data). We can worry about cosmetics at the very end.
I was just being silly because the OP gave us virtually nothing to go on.
11-03-2024 09:04 AM - edited 11-03-2024 09:08 AM
@altenbach wrote:
@paul_a_cardinale wrote:
The only flaw I can see is that the colors are ugly.
Try using some non-ugly colors.
All colors are near default, (white trace on black background with green grid and yellow cursor.). The green grid almost hints that this is not an xy graph, because that would have a yellowish grid by default. Who knows? We don't even know what "issue" the OP had in mind.
I any case, we need to primarily fix the code (and maybe the data). We can worry about cosmetics at the very end.
Replace the Chart with a Graph control! Nice catch C! And I think that might be a sweep line if the Chart is set to update that way. 🤔 the silly part is not posting the code!
11-04-2024 02:04 AM
It looks like you've merged 3 plots into one. For multi-plot each should be a cluster and you send in an array of clusters. Check the help.
11-04-2024 08:34 AM
Hello everyone,
I'm really sorry for the late update; I had a busy weekend with university deadlines and couldn’t work on this project until now. Here’s the latest filtered version of my project to help clarify what I’ve been working on.
Syntax and Function Overview:
Indicator: This is the VI I'm using to generate an array of results from a traction machine. There are two indicators—one receiving data from COM port 3 and the other from COM port 4, representing force and distance respectively.
Greater than 0: A conditional check to set any incoming value less than 0 to return as 0.
Lalit (a helper function): This function creates a new array based on the first 30 results and continues generating data in that sequence. The results then pass through a threshold. If there’s a collision (threshold met), the experiment halts, and all data is logged in the Reserved section. At this point, the graph becomes visible.
I know there are many areas for improvement, but I've been using LabVIEW for less than six months, and this is the best I've managed so far.
Thanks again to everyone who’s taken the time to comment and offer help. Sorry again for the delay!
11-04-2024 09:37 AM - edited 11-04-2024 09:58 AM
It seems the "download all" button here is broken, so please create a single zip file before attaching. Downloading a pile if VIs is tedious.
Also make sure that you tell us the name of the toplevel VI that contains the "graph" so we don't need to dig around. Also don't use special characters such as "%" in file names.
Don't you think it overcomplicates things if you replace a simple divide with a subVI? Why-o--why-o-why???
@MarcusP. wrote:
Greater than 0: A conditional check to set any incoming value less than 0 to return as 0.
You forgot to attach that subVI.
To replace all negative values with zero, all you probably need is the following:
11-04-2024 10:46 AM
Sorry about that! I think when there are more than 10 files, it blocks the "Download All" option.
@altenbach escreveu:
It seems the "download all" button here is broken, so please create a single zip file before attaching. Downloading a pile if VIs is tedious.
Also make sure that you tell us the name of the toplevel VI that contains the "graph" so we don't need to dig around. Also don't use special characters such as "%" in file names.
As for the names with "%", that’s just me saving test files with random names. I know it looks a bit messy—and it really is, to be honest.
Don't you think it overcomplicates things if you replace a simple divide with a subVI? Why-o--why-o-why???
The reason I use a VI for this is that I wanted to use it in multiple places and needed a way to differentiate them, so I created a VI to help keep things organized for myself.
To replace all negative values with zero, all you probably need is the following:
For this topic, I couldn’t find an existing solution while I was working on it, so I just ended up making it myself.
A and the Gaph is in the "apresentavel.vi"