LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a better way to Rename XYZ Graph Axes?

I have two XYZ graphs that I rename the XY and Z axes based on the data that is being shown on the graph using the code shown below.Capture.PNG

 

Although it works, I can't help but think there has to be a better way. If anyone has a solution please let me know.

0 Kudos
Message 1 of 4
(2,949 Views)

Hello GentlemanS,

 

You can do the same with a for loop wit 3 itérations. It'll avoid code duplication.

GentlemanS.PNG

Regards

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
Message 2 of 4
(2,930 Views)

Another thing to emphesize: if you use often Flat Sequence structures in your codes, then you are likely doing wrong. Whenever I see codes with Flat Sequence Structures, 99% of the times it is a strong sign of a bad coding style (1% of the codes have a valid usage case of sequence structures, like benchmarking, etc...). Think of data flow, and whenever it is possible use error wires to determine execution order.

This is a good read to have a look:

 

http://www.ni.com/newsletter/51735/en/

0 Kudos
Message 3 of 4
(2,920 Views)

@sabri.jatlaoui wrote:

Hello @JScherer

 

You can do the same with a for loop wit 3 itérations. It'll avoid code duplication.

GentlemanS.PNG

Regards


Nice! The bundle array.vi does accept references

 

2016-02-19_reference-array.PNG

Message 4 of 4
(2,890 Views)