01-11-2013 06:26 PM
Hi,
I am writing a program that retrieves data from the Microsoft Access and plots it on the XY graph.
Plotting datas on the graph can be done but i have to add some filter so that the graph only shows the plot from certain time to a certain time period.
I really appreciate your help and thanks in advance!
Best Wishes,
KP
01-12-2013 03:33 AM
What is the structure of your data ?
If you have just pure x + y struct and the time is determined by the index of the element, you can use array functions.
If your data has bundled time info, all you need is to search the array for start index and an end
01-12-2013 08:29 AM
It's a string data created using Get/Time function and insert it into the Data Base.
Now i want the user to select from which time period to which period and only this filtered part will be shown on the graph.
thanks Bublina! 😄
01-12-2013 10:40 AM
@KaungPyae wrote:
It's a string data created using Get/Time function and insert it into the Data Base.
Now i want the user to select from which time period to which period and only this filtered part will be shown on the graph.
thanks Bublina! 😄
This is basically what the 2nd code I posted does.
01-12-2013 10:55 AM
Why don't you apply the start/stop time filter to your database query?
01-12-2013 11:33 AM
@Dennis_Knutson wrote:
Why don't you apply the start/stop time filter to your database query?
If the user can control the filter parameters, I believe it is more suitable to execute one query and fetch all the data.
I would fetch all data, put these into XY Graph object, and only control the scale properities of the object.
01-12-2013 01:25 PM
01-14-2013 06:57 PM
hi bublina,
my data bundle is in such form. and i'm having trouble putting into the graph the way you show me.
Please help me.
Thanks,
Kaung Pyae
01-15-2013 06:40 AM
Hi, could you provide labels to your data struct ?
I am a bit confused what do those elements mean.
If you need to post pictures use :
Mark the block diagram you want to show to other users,
Go Edit in the menu bar and Create Vi snippet from selection
It will save a PNG you can paste to discussion board and it has also block diagram code in it so we can all run it.
01-15-2013 08:01 AM
This is part of the Sub Vi. Thanks for fast reply.
Here is the attached file.