11-12-2010 08:39 AM
I would like to create a way of writing a trace from a cRIO directly to a Citadel database.
see: http://zone.ni.com/devzone/cda/tut/p/id/6579#toc4 "Citadel Writing API"
My plan is to normally log to Citadel using the DSC engine hosted on a central server. However, if network communications are lost, I want to create a back-log of data on the cRIO, which would then be sent to the database once network communications are reestablished.
11-17-2010 03:39 PM
JimMacD:
Unfortunately, Citadel traces cannot be directly written from a real-time target. Your best bet is to have a network monitoring loop/state machine that will log the data to a TDMS file (or any other type of log file) in the case of a network communication outage.
11-17-2010 03:43 PM
Caleb,
That's what I was thinking the case might be. My alternate plan was to have the cRIO log the data locally in some sort of file format, then once connection is reestablished with the server, send this data file to the server using a network stream. The server would then perform the Citadel trace Writes.