LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare many Data

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

0 Kudos
Message 1 of 15
(2,409 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 15
(2,399 Views)

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

0 Kudos
Message 3 of 15
(2,391 Views)

Hi siwalex,

 

you should:

- convert the string to a numeric value

- collect those values somewhere (like array in a shift register, or hidden in the PtByPt-Queue)

- then compare current value with collected values…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(2,385 Views)

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

 

0 Kudos
Message 5 of 15
(2,380 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(2,359 Views)

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

0 Kudos
Message 7 of 15
(2,354 Views)

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")!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 15
(2,348 Views)

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 🙂

 

0 Kudos
Message 9 of 15
(2,344 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 15
(2,337 Views)