LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constant plots on xy graph to show boundaries for manuel control

Solved!
Go to solution

Hi, I have a vi created on my own to measure temperature and electrical current in real time via an Agilent DAQ. 

It works very fine and we did a lot of tests with it. Now we implemented a control module in our oven that we want to manually control to heat up the oven in a better controlled way, the so called ISO curve. I calculated now all the points of this curve for 110 minutes and saved them into a txt file. So everything I want to do is to have these two lines visible in my xy graph as a maximum and minimum temperature line to be able to do the manual control. 

 

If there is anybody who could help me to implement this, this would be really helpful. I just wanted to add this quickly and I nearly lost the half a day on that quick drawing.

 

I added the currently used vi to this question.

 

Best,

Achim

0 Kudos
Message 1 of 8
(772 Views)

@AchimM wrote:

I want to do is to have these two lines visible in my xy graph as a maximum and minimum temperature line


Not sure what exactly you want to achieve, nay be just two cursors will be solution for you?

snc.png

 

snc1.png

0 Kudos
Message 2 of 8
(764 Views)

Hi Achim,

 


@AchimM wrote:

So everything I want to do is to have these two lines visible in my xy graph as a maximum and minimum temperature line to be able to do the manual control. 


So you want to show 3 plots in your graph instead of just one plot?

The context help of the XYgraph shows you how to provide an array of plots...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 8
(747 Views)

Hi, indeed I want to show 3 plots in my graph but two of them should be plotted already before I start the measurement (the loop). They are just used as kind of a guide for the manual control of the oven. Background is that for our test we need to reproduce the iso standard fire curve. The raw data of this one I attached to this mail. The dataset goes from 0 to 110 minutes (1st column). the minimum (2nd column) and maximum (3rd column) should be displayed already before starting the test. It should also not matter that these two plots can have different array size than the final measurement. 

 

Thank you!

Best

Achim

0 Kudos
Message 4 of 8
(723 Views)
Solution
Accepted by topic author AchimM

@AchimM wrote:

Hi, indeed I want to show 3 plots in my graph but two of them should be plotted already before I start the measurement (the loop). They are just used as kind of a guide for the manual control of the oven.


Something like this may be:

 

Graphs.gif

0 Kudos
Message 5 of 8
(703 Views)

Hi,

 

this is exactly what I need.

 

Thank you very much!

 

I am quiet familiar using software like scilab, C programming, PCB Design tools and SPICE tools, but the structures in labview I still have some struggling's with. I started one year ago to work a bit with Labview from time to time and it what I did till now I teached myself by researching in the web...

Could you shortly give me a short explaining of how you used the structures in Labview to achieve the goal? Like this I could learn something new again instead of just copying this code and implementing it into mine.

 

 

Best,

Achim

0 Kudos
Message 6 of 8
(663 Views)
Solution
Accepted by topic author AchimM

@AchimM wrote:

..

Could you shortly give me a short explaining of how you used the structures in Labview to achieve the goal? Like this I could learn something new again instead of just copying this code and implementing it into mine.

Well, it is just combination of the clusters and arrays, nothing more.

What you can do is just hit Ctrl+H, then Context Help will be displayed and then you can hover mouse over wires and see the data types behind:

Screenshot 2024-02-28 10.11.51.png

Technically the "Build Cluster Array" primitive is nothing more that just building array of clusters, which will make possible to have variable length arrays together, and this kind of data accepted by XY Graph:

Screenshot 2024-02-28 11.46.30.png

Of course, you don't need to build this inside of your main loop, this can be done outside, and your data can be accumulated point by point into array using shift register:

snippet.png

another possible visual enhancement is to adjust how the gaps between graphs are filled, so you can get "green" area between min and max, something like that:

Screenshot 2024-02-28 11.44.29.png

 

Hope this helps for better understanding.

 

Message 7 of 8
(643 Views)

Hi Andrey,

 

thank you very much!

 

Due to your explanation it was not much work anymore to implement it into my existing vi. to know how to build shift register in labview is really useful!

 

Best,

Achim

0 Kudos
Message 8 of 8
(606 Views)