LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-Time Temperature Multi-Plotting (DAQ-Read into chart)

Solved!
Go to solution

Greetings,

 

I've been trying to setup a program (Temp-Diagramm) that displays the temperature of 4 sensors in a single chart. It is supposed to grow, to longer you let it run, but not only does it display the 2D as one plot, it also just displays the last 4 seconds, instead of the whole thing. I have a single-plot version that did display continuously using waveforms(---vor 4er-plot) .

 

Quick Explanation of the VI:

4 Channels get read(the sensor outputs a Voltage)

I put the 20 samples into mean for a clean graph and then multiply my data to a °C value

I build a 2D-array and output it using the graph

 

Thank you in advance, for both soloution and feedback.

Download All
0 Kudos
Message 1 of 8
(165 Views)

Can you repost your code with a lower version of LabVIEW say 2020? Most people on the forum are not on LabVIEW 2025.

Tim
GHSP
0 Kudos
Message 2 of 8
(125 Views)

Sure thing, these are for ver 18.

Download All
0 Kudos
Message 3 of 8
(99 Views)

Hi schmidt,

 


@Vonderschmidt wrote:

It is supposed to grow, to longer you let it run, but not only does it display the 2D as one plot, it also just displays the last 4 seconds, instead of the whole thing. I have a single-plot version that did display continuously using waveforms(---vor 4er-plot) .


You forgot to build an ever-growing array and you forgot to present the data in the correct order (rows vs. columns) for the graph!

 

Suggestion:

Best regards,
GerdW


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

Thank you very much, your variant fixes many problems, concerning the evergrowing and having more than one plot, but now a strange phenomena apears ... I have too many:

 

-it starts adding more and more plots, (in the top left corner you can see new lines appearing in the base configuration: new colour, thin line )

-the plots move up and down (the first/white one differently for some reason)

 

not really an array guy, so wrapping my head around all of this is hard.

Download All
0 Kudos
Message 5 of 8
(79 Views)
Solution
Accepted by topic author Vonderschmidt

Hi schmidt,

 


@Vonderschmidt wrote:

-it starts adding more and more plots, (in the top left corner you can see new lines appearing in the base configuration: new colour, thin line )

-the plots move up and down (the first/white one differently for some reason)


Because you didn't copy my suggestion.

There still is a difference on how you build the array data in the shift register when compared with my image…

 

Once you follow my suggestion the graph will look as expected!

 

My suggestion - once again:

Best regards,
GerdW


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

Thank you again, an error on my part, but what does this do, is it an output of some sort? 

 

I was under the impression that you only need the left side of the shift registry to create the addup and have to connect the right side to somewhere, so that LabView lets me run it. I thought it works like the tunnels, a data I/O of a loop. I never saw a connection or a need for it, because my percived output/endpoint was the graph.

 

0 Kudos
Message 7 of 8
(49 Views)

Hi schmidt,

 


@Vonderschmidt wrote:

I was under the impression that you only need the left side of the shift registry to create the addup and have to connect the right side to somewhere, so that LabView lets me run it. I thought it works like the tunnels, a data I/O of a loop. I never saw a connection or a need for it,


Your impression was wrong!

All you need to know is "Think Dataflow!"...

 

A shift register just stores data, it doesn't "add up" anything. You define the data, you define how to append data to an array!

Best regards,
GerdW


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