ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp database

Hi all, I´m new user, and i´m using DB toolkit.
I have a database, where the datas have a timestamp, how is possible read this datas in order of time?
For every cicle I need to select six values (three voltages and three currents) in order of timestam.
Thanks to all

0 Kudos
Message 1 of 6
(3,329 Views)

Hi Alessandro,

you can have a look to this example and this one.

I hope this helps!

Bye,

 

Licia

0 Kudos
Message 2 of 6
(3,270 Views)

SELECT [fields] FROM [table] ORDER BY [timestamp]

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(3,259 Views)

to make it work make sure the column in which you are wrtiting the time is in datetime format

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 6
(3,252 Views)

Thanks to all 🙂

0 Kudos
Message 5 of 6
(3,184 Views)

Thanks to all, now i have the data in order, I have only one other problem, I'm trying to store rows every time into a column array, and i need to refresh this array every time the timestamp change of 20 ms. Because of inside the DB every row of the columns has a different value every 20 millisecond (so inside the column of DB for every timestamp I have 29 rows and if i scroll down the column i have new 29 rows with new timestamp increased of 20 ms)

labview.jpg

0 Kudos
Message 6 of 6
(3,158 Views)