LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A silly question about Gaph XY

"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!

MarcusP_0-1730485003968.png

 

0 Kudos
Message 1 of 24
(601 Views)

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.

0 Kudos
Message 2 of 24
(580 Views)

The only flaw I can see is that the colors are ugly.

Try using some non-ugly colors.

0 Kudos
Message 3 of 24
(544 Views)

@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.

0 Kudos
Message 4 of 24
(541 Views)

@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.

Message 5 of 24
(534 Views)

@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!


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 24
(486 Views)

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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 24
(440 Views)

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!

0 Kudos
Message 8 of 24
(405 Views)

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???

 

altenbach_0-1730734835822.png

 

 

 


@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:

 

altenbach_0-1730735895259.png

 

0 Kudos
Message 9 of 24
(389 Views)

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:

 

altenbach_0-1730735895259.png

 


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"

0 Kudos
Message 10 of 24
(358 Views)