LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data to graph problem

HI!
 
I have a problem with my program. With this program i get several dates from the daqmx components, this works! But when i push the "Auswertung" Button, the program should display the data on the graph. But that doesn't work!  I tried several solutions, but it never worked.
 
Could somebody help me please, thanks!
 
Peter
Labview 7.1 on Windows 2000
0 Kudos
Message 1 of 7
(3,058 Views)
Hello peda,

I could not find a quick solution to your problem, as testing your program without hardware isn't that easy...

But I made some changes:
- You should use more subvis: you do several tasks more than once -> put them in subvis...
- use the error cluster more often: you will not need sequences at all (look at my changes, it's not perfect but a start...)

- I would recommend not to use the "default value for outputs" on case structures. In my opinion you should do some error checking in this case (doing device communication with undefined device isn't recommended, you do this after selection with "Belastung").
- recommendation: change "Belastung" to integer or change your device selection: comparing a floating point number with an integer (as the case statement does) can lead to problems (you will find many threads on this in the forum). Even setting data range/coercion may not help...

Hope this may help you.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,033 Views)
HI GerdW!
 
Thanks for your help, in the future i will use more SUBVI's. I have shown my problem in the jpg. In the outside of the main case structure i placed the probe function from the tools palette. I saw that no dates will go due to the tunnel to the little case structure with the graph functions.
 
How can i modify my program, that only the data is displayed on the graph, when i push the "Auswertung" button.
 
Yes its a problem without the hardware, but you can try to insert a random function which generates the data and you will see, that no dates will go trough the tunnel of the main case structure. Also you can delete the other functions.
 
Best regards,
 
peter
Labview 7.1 on Windows 2000
0 Kudos
Message 3 of 7
(3,028 Views)
Hello peda,

do you want to show the graphs after OR while the data collection (device communication)? The problem could arise from your case structures with undefined (default) values...

Have a look at my changes. Now the measured data are collected in shift registers...




Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(3,018 Views)
HI GerdW!
 
That was my problem! Thank you so much.
Yes, i wanted to show the graphs after the data collection.
 
But why do you insert shift registers, can you explain me this please???
 
Best regards,
 
Peter
 
Labview 7.1 on Windows 2000
0 Kudos
Message 5 of 7
(3,015 Views)
Hella peda,

you want to show data, but not (necessarily) directly after the measurement. So you have to remember the data until you show them! And shift registers are a convenient way to remember data from one loop iteration to the next. Other possibilities: using global variables, using files (saving to/reading from disk) and surely some other...

Your problem was: if you pressed "Auswertung" then most probably there was no device communication in the same loop iteration. So your graph display got only the default values from case "0, default", and default for arrays are empty arrays...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(3,011 Views)

HI GerdW!

Thank you for explaining this. In the past, i thougt to make save and read from disk function, but i searched for an easier way.

OK thank you guy, you helped me very much!

Best regards,

 

PETER

Labview 7.1 on Windows 2000
0 Kudos
Message 7 of 7
(3,005 Views)