07-09-2024 09:10 AM - edited 07-09-2024 09:11 AM
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!
Solved! Go to Solution.
07-09-2024 09:18 AM - edited 07-09-2024 09:19 AM
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:
07-09-2024 09:31 AM
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!
07-09-2024 09:45 AM - edited 07-09-2024 10:55 AM
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)
07-10-2024 01:52 AM
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?
07-10-2024 09:02 AM
@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.
07-11-2024 06:21 AM
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?
07-11-2024 06:25 AM
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!
07-11-2024 06:29 AM
Sorry my bad,
Here is the code.
07-11-2024 06:48 AM - edited 07-11-2024 06:48 AM
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!