From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i use numeric counter on a graph


altenbach escreveu:

Please attach your latest code. Your terminology is not precise enough (chart vs. graph, counter vs. control, etc)


Good morning altenbach,

 

I attached my code and two images of my front panel.

Can you analyze it for me?

 

Problem with graph:

 

How it looks now:

Y axis : Temperature

X axis: 16 Inputs (16 Thermocouples)

 

What I want:

1 INPUT (1 Thermocouple)

Y axis: Temperature

X axis: Time

 

Thanks for your patience.

Download All
0 Kudos
Message 11 of 16
(530 Views)

You need to tell us how the data is arranged.

 

I assumed that each "scanned variable read" is 16 consecutive time points of a single TC. If the data is arrange differently in the concatenated array, you need to document that in detail. I don't have your instrument!

 

Where is this running on? LabVIEW RT?

0 Kudos
Message 12 of 16
(518 Views)

altenbach escreveu:

You need to tell us how the data is arranged.

 

I assumed that each "scanned variable read" is 16 consecutive time points of a single TC. If the data is arrange differently in the concatenated array, you need to document that in detail. I don't have your instrument!

 

Where is this running on? LabVIEW RT?


Yes, im running LabVIEW RT.

Im using a Compact RIO and i have 7 slots(9211) attached to CPU of Compact RIO.

Each slot has 16 inputs, so i can put 16 thermocouples per slot.

So, I have 112 thermocouples (112 inputs).

I want to see on graph the state of 1 thermocouple.

 

The graph needs to show me : Temperature X Time



0 Kudos
Message 13 of 16
(515 Views)

Hi Guiliano,

 

as recommended in message#2: collect your data in an array and use IndexArray to select the specific TC data.

 

But: Why do you have a graph on a cRIO RT target? Doesn't sound right to me…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(511 Views)

GerdW escreveu:

Hi Guiliano,

 

as recommended in message#2: collect your data in an array and use IndexArray to select the specific TC data.

 

But: Why do you have a graph on a cRIO RT target? Doesn't sound right to me…


I tried, but the graph is still showing me 16 entries.
I just want one.
Could you take my .vi that I've attached above and explain how it would be?

I need to observe the changes of the thermocouples in real time, thats why I need the graph.

0 Kudos
Message 15 of 16
(507 Views)

@Giuliano06 wrote:
So, I have 112 thermocouples (112 inputs).

I want to see on graph the state of 1 thermocouple.

 

The graph needs to show me : Temperature X Time


 

Well how are we supposed to know that????

 

If you want to chart temperature of the selected tc vs time, you need a chart. To pick the TC, you need index array.

 

See attached. (of course you still need to set dt according to your loop rate, etc.)

 

(and please clean up your ealerier array operations according to my previous example. Less code!)

 

 

0 Kudos
Message 16 of 16
(505 Views)