06-26-2019 05:12 AM
Hello,
First sorry for my little englsih.
This is my problem :
I have one date like 10564,10 each 10 seconds.
so 6 in a minute and this all the time.
Now, i need to compare each data with all the news and this while 4 hours.
6*60*4 = 1440 data in 4 hours.
i d'ont know how to do it. a buffer? but 1440 buffer and compare each data with all the 1440 past data ... it's a lot.
compare a data it's like : if the data is 3% more higth or low than the new data, turn up a led. something like that.
If someone have an idea or questions, tell me please.
Thank's you
Have a good day
06-26-2019 05:21 AM
Hi siwalex,
all the 1440 past data ... it's a lot.
It's not much. When using DBL values you still need less then 12kB of RAM - recent computers come with at least 4GB of RAM!
If someone have an idea or questions, tell me please.
Collect your data in a buffer and compare with your limits…
What have you tried? Where are you stuck?
06-26-2019 05:28 AM
this is my VI :
I check the price of bitcoin in EUR all 10s with Bitcoin API
I take it, and then i want if possible to compare it with the 1439 other price who will arrive.
but the second price as well, the third etc ....
and if the price is 3% more or less (it depend), turn up a led and stop compare with other prices
i don't know if i'm clear sorry
06-26-2019 05:34 AM
06-26-2019 05:46 AM
Hi GerdW,
thak's you a lot for the answer.
I'm a beginer in Labview.
for PtByPt-Queue, i don't know how to use it proprely,
i know how to store data in a database like sql and then take with sql request. (i'm not good at all but i have 1-2 notions).
and whith the idea of array, i need an array who will after 1440 value, clean the first and ect...
I must say that it is not very clear in my head because I do not know the limits of Labview
06-26-2019 07:42 AM
Hi siwalex,
I'm a beginer in Labview.
There is a "Training" section in the header of this LabVIEW board.
And a huge example library in LabVIEW!
I do not know the limits of Labview
An array of 1440 elements is far below those limits…
after 1440 value, clean the first and ect...
Yes, a so-called "ring buffer"…
PtByPt-Queue, i don't know how to use it proprely,
Did you read the help?
06-26-2019 07:50 AM
i read the PtByPt-Queue but i have a little english and i don't think it's the better way for me.
I need the 1440 data be compared each to the 1440 data taken before and fastly.
for the ring buffer, i checked it. There is a ring buffer which is +1 every times it restart?
thank's for the help
06-26-2019 08:18 AM
Hi siwalex,
i don't think it's the better way for me.
I need the 1440 data be compared each to the 1440 data taken before and fastly.
I think it's a good way to go.
What have you tried so far? Where are you stuck?
General rule: We will not do your (home)work for you.
Show some effort of your own and present your current results (aka "attach your VI")!
06-26-2019 08:23 AM
it's not an homework.
i will explain all my project.
I want to trade Bitcoin.
get a notification when it down by 3%.
for this i will revieve an email.
this part is ok (send email with labview).
i know how to insert in database the price and the date all 10s.
now i'm stuck at : how to know if the price drop by 3% in the past 4hours . so i can get an email 😉
or if the price grows up by X% for sell.
i attach my VI . hope you understand better like that 🙂
06-26-2019 08:38 AM - edited 06-26-2019 08:39 AM
Hi siwalex,
it's not an homework. I want to trade Bitcoin.
So even worse than homework: you want to earn money by a tool supplied by the community?
Do you let us participate on your earnings? Or do you want to pay those who create that software for you?
how to know if the price drop by 3% in the past 4hours . or if the price grows up by X% for sell.
Read the data of the past 4 hours and compare with your current Bitcoin value…
It's easily done using the PtByPt-Queue!