LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Impossible d'ajouter des curseurs sur mon graphe déroulant

Solved!
Go to solution

Bonjour,

Pour je ne sais quelle raison je n'arrive pas à ajouter des curseurs sur mon graphique déroulant.

Est-ce que quelqu'un sait comment résoudre cela?

 

Merci!

0 Kudos
Message 1 of 18
(522 Views)
Solution
Accepted by topic author Alexb91

Hi Alex,

 


@Alexb91 wrote:

For some reason I can't add cursors to my drop-down chart.

Does anyone know how to resolve this?


When you need cursors then you need to use graphs instead of charts!

 

Btw. cleaning up your VI will improve readability tremendously:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 18
(515 Views)

Thanks for your answer!

 

I'll try to clarify a bit more what I'm trying to do with the code.

 

I'm trying to measure temeperatures using 9 sensors and save the datas.

 

I want to save different temperature levels graphically.

 

For example:

 

- Level 1, 70°C => user cursors to select data from 1 pm to 3 pm and write into an excel sheet

 

- Level 2, 100°C => user cursors to select data from 4 pm to 6 pm and write into an excel sheet

 

I'd also like to have a graph where I can see all te temperature from the star to the end of the "recording".

 

Do you think I could do this with a graph instead of a chart?

 

I hope this is clear, I can explain furthermore if needed!

0 Kudos
Message 3 of 18
(506 Views)

Charts don't have cursors. You could add additional plots for the limits and have controls where you set them (example)

 

As a first step however, you need to learn the basics and clean up your code AND the front panel. Having controls scattered randomly over a wide area makes it very difficult to use.

 

Here's a cleaned up version to give you some ideas. (Of course it would make more sense to use array indicators for all the "Sonde"s)

 

altenbach_0-1720536448897.png

 

 

altenbach_1-1720536260546.png

 

 

 

Message 4 of 18
(489 Views)

Thanks!

 

The timer isn't ideal since I want to manually select the data and I want the amount of data to be flexible and not fixed.

 

Since I need to use cursors to select data as a "post-treatment" (after taking the measurements), what if I had a chart to show the temperatures in real-time, and another graph that runs when I stop the loop and where I can select the data?

 

This graph would use time and all the measurements as input.

Do you have any idea if this could be possible?

 

 

0 Kudos
Message 5 of 18
(440 Views)

@Alexb91 wrote:

This graph would use time and all the measurements as input.

Do you have any idea if this could be possible?


Yes, that is easily possible. You can even use the same graph for everything.

0 Kudos
Message 6 of 18
(412 Views)

I tried to connect a graph to the array that stores all the data, but it doesn’t seem to work.

 

Ideally, I want a graph that displays all the measurements when I end the loop.

It works for the chart, but not for the graph.

I'd like to use the graph because I need cursors for the rest of my project.

 

Any ideas?

0 Kudos
Message 7 of 18
(394 Views)

Hi Alex,

 


@Alexb91 wrote:

I tried to connect a graph to the array that stores all the data, but it doesn’t seem to work.

 

Any ideas?


Idea: you forgot to attach your code.

We cannot help you to solve your problem when you don't attach your code!

Best regards,
GerdW


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

Sorry my bad,

Here is the code.

 

0 Kudos
Message 9 of 18
(389 Views)
Solution
Accepted by topic author Alexb91

Hi Alex,

 


@Alexb91 wrote:

I tried to connect a graph to the array that stores all the data, but it doesn’t seem to work.


Why is the block diagram so large?

For me it works…

 

All I did (apart from code cleanup) is to right-click the graph and enable the "Transpose Array" option!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 18
(378 Views)