LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

little graphical problem

With the program "Vergleich_XY_BS" is it possible to load and to compare several data files. I can move the curves on the graph and so on...
The problem is the demonstration of the difference  from the curves. The dataset one in the path field should be the reference curve to the other one*s.
When i run my program and load the dataset datei1.bs into the  pathfield 1 and dataset datei2.bs in pathfield 2, the demonstration of the in curves in the big graph is right, but there is a false difference!
 
Where could be the failure!
 
HELP ME pLEASE, its very urgent!!!
 
Best regards,
 
Peter
Labview 7.1 on Windows 2000
0 Kudos
Message 1 of 4
(2,667 Views)
Hi Peter,
 
Honestly, another "little problem" title interested me and I saw your code. I don't understand what your problem really is and the code is rather large, so reading it takes time, but I only noticed a point that may help you, or may not be related to what you wanna do!
 
See the attached bmp. this is a part of your code that will do nothing! let me guess that you wanted to reverse the array. but this will not help. LV already has a reverse array block! I'm sure that there is some problem with this part of your code.
 
Hope it can help or at least it is related to your problemSmiley Wink
 
 
0 Kudos
Message 2 of 4
(2,644 Views)

Hello peter,

i'm not sure that i got it right, but i think you want to compare the two curves at different offsets along the x-axes to find a optimal position or something like that. if you extract just the arrays of the y-values from your graphs you loose all information about the x - offset, because you allways compare value 1 of graph 1 with value 1 from graph 2, then value 2 from graph 1 with value 2 of graph 2 and so on, no matter where the graphs are located on the x-axes. thats the reason why you allways get the same difference.

i think you wan't to compare the values at H = 50, 51, 52.... of both graphs. to do that you first need to find the y - value of the graphs at the same value of H. see attachment (it's not tested, so don't blame me!!)..

btw.: if you use a while loop for polling buttons you always should call a wait function with ~ 10-100 ms inside the loop to avoid 100% CPU usage. a event structure would be much better, but's that's a task for the next project..

best regards & good luck

chris

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 4
(2,639 Views)

HI!

Thank you for your solutions and tips! Smiley Happy I have found another solution for my problem, see the attachement!

Best regards,

 

PETER

Labview 7.1 on Windows 2000
0 Kudos
Message 4 of 4
(2,624 Views)