Toni,
Using the Database Connectivity Toolset you can talk to any database that provides an SQL OBDC driver.
Citadel is a numeric streaming database that is optimized to log tags (aka shared variables) and is very efficient in how it stores numerical data over long time periods. It is part of the LabVIEW DSC Module.
With LabVIEW DSC you can also create Dataset Marking I/O servers which is basically creating conditions or triggers on which you want to log a specific set of shared variables (or tags) to Citadel. Thus you could say "I want to start logging these five tags when the boolean tag goes true, and stop when this other line goes true". Each dataset run is given a unique ID. You can create different Dataset Marking I/O Servers for different sets of tags and conditions you want to log.
See the example Dataset Marking Demo.lvproj in the LV DSC shipping examples (Help » Find Examples).
Also see the sections:
Logging Data in Sets (DSC Module)
Creating Data Set Marking I/O Servers (DSC Module)
in the LabVIEW Help.
Hope this helps!
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂