LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Citadel behavior

Hello,

i need to understand the behavior of Citadel database in order to archive some shared variables.

In fact in a VI i use "Get process List" and "Get Shared Variable List" to have a list of all Shared variables in the server and i put all these Shared Variables in a listbox.

I need to have the following: when i choose a Shared variable from the listbox, this variable should begin to be traced (or archived) in a database. How can i introduce the Citadel behavior in a VI ?

Would you help me please ?
Samer,
0 Kudos
Message 1 of 3
(2,200 Views)

I haven't worked with the 8.5 DSC version yet. In the old days with the tag engine, the logging was done automatically once you setup the configuration to do it.

Here is the 8.5 info. Sounds like it happens when you create the shared variable.

Configuring Data Logging

When you add logging to a shared variable, the DSC Module logs shared

variable data, including the shared variable value, timestamp, whether the

value is in an alarm state, and the quality of the value. The DSC Module

logs all data to the Citadel database. Complete the following steps to add

logging for the Tank Level [Gallons] shared variable.

1. Right-click the

Tank System Shared Variables.lvlib project library

and select

Edit Variables from the shortcut menu to open the

Multiple Variable Editor

window.

2. Double-click the

Logging:Enable cell for the Tank Level [Gallons]

shared variable and select

On from the drop-down list that appears.

Additional logging options appear as columns in the table.

3. Double-click the

Logging:Alarms and Events cell for the Tank Level

[Gallons] shared variable and select

On from the drop-down list that

appears. This option enables alarm and event logging for the shared

variable.

4. Double-click the

Logging:Data cell for the Tank Level [Gallons]

shared variable and select

On from the drop-down list that appears.

This option enables historical data logging for the shared variable.

5. Double-click and enter

0.1 in the Logging:Data cell for the Tank

Level [Gallons] shared variable. This value compresses the value to

one decimal point when the DSC Module logs the values of this shared

variable to the Citadel database.

6. Leave the

Logging:Deadband cell with the default value of 0.01.

This value specifies that the DSC Module log the shared variable value

only when the shared variable value differs from the previous shared

variable value by 1% of the shared variable engineering scale range,

which is 0–100 by default

0 Kudos
Message 2 of 3
(2,185 Views)
Thx,

I know these informations....but i need to install all this behaviour in a VI...i don't want to Edit Variables to do this...

In fact i want to program all this in the VI...so when i choose a "Shared Variable" using "Get Shared variable List" in a VI i will be able to have all the choices that you informed me.

Could u help me please ?
Samer,
0 Kudos
Message 3 of 3
(2,153 Views)