From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use RawData and IntData on the same query on citadel 5?

Hi,

 

I'm trying to use the query below to maintain trend info in a citadel query.

 

SELECT IntData.LocalTime, IntData."BOIBUMBA/NUEX/C7981"
FROM IntData
WHERE (IntData.LocalTime BETWEEN (SELECT MAX(RawData.LocalTime) FROM RawData WHERE RawData.LocalTime <= {ts '2011-07-01 11:41:45'}) AND (SELECT MIN(RawData.LocalTime) FROM RawData WHERE RawData.LocalTime > {ts '2011-08-01 11:41:45'}))
AND (IntData.IntInterval = '0:1')

 

The driver returns "No trace was specified".

 

Can I use IntData and RawData in the same query? Can I use subqueries like this above? Where to find documentation about SQL queries in citadel? Are citadel driver SQL-92 compliant?

0 Kudos
Message 1 of 3
(2,077 Views)

Good afternoon, Bruno,

 

Follow the links to help better understand the use of each function. Any questions please contact us.

 

Accessing Citadel 5 Data from Other Software

 http://zone.ni.com/devzone/cda/tut/p/id/6668

 

Accessing Citadel 5 Data from Other Software

http://zone.ni.com/devzone/cda/tut/p/id/6668

 

Accessing Citadel 5 Data with Microsoft Excel 2007

http://zone.ni.com/devzone/cda/tut/p/id/2970

 

Sincerely,

Mauro Vera.

Mauro Vera
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,058 Views)

Hi Mauro

 

I read this articles and doesn't have what I want. I want make a query thats I will get start and stop time from RawData and then get interpolated data from IntData in this interval.

 

 

Many thanks for the help.

 

Bruno Costa

0 Kudos
Message 3 of 3
(2,050 Views)