LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I can't get DSC data logging to work!

I admit I'm a newbie to LabView and DSC, but I've tried everything in the help guides to get it to work and nothing ever shows up in the database.  First off, I tried just clicking the "Enable Logging" checkbox for a shared variable and ran a simple VI that's publishing analog waveforms to that SV (and yes I ran a consumer VI that verified the values are being updated).  This didn't work (nothing shows up in my historical data under MAX).  So I followed the instructions for creating a dataset (whatever THAT is -- the documentation didn't make it clear if I really needed a dataset or datasource or what they are for that matter).  That didn't work.  So I created a new DB and set up a datasource/dataset for it.  That didn't work either.

 

What gives?  Is there something else I need to enable?  What's the simplest way to test data logging?  Do I need a dataset?

 

0 Kudos
Message 1 of 14
(4,048 Views)

Hello knicewar:

 

I wonder if you have enabled datalogging in the library where the shared variable is located. To do so, right click on the library and select properties. Then select the category DSC Settings: Database and check Enable Datalogging. Then select the database you want to log data to.

 

Let me know if this helps.

 

Greetings.

 

Robst.



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 2 of 14
(4,038 Views)

Yes, I have it enabled in the SV lib and it's pointing to my DB.  But I found the problem: I had disabled auto-deploy when I was testing something else but hadn't reenabled it (don't I feel stupid).  So now the SVs show up in MAX.  But the new problem is that I can't see any data in the trace!  The times are correct, reflecting when I started and stopped the VI.  But there are no lines displayed.  Zooming in and panning around don't help. 

 

How do the SVs get stored?  I only see the SV names under the DB, not individual runs.  If I click view data, that creates a trace, which I had assumed was simply a view into the DB.  But it only seems topick the most recent run for the SV.  If data was showing in the trace, and I moved the start time earlier, would I see all the runs or just the most recent?

 

Thanks.

 

0 Kudos
Message 3 of 14
(4,034 Views)

More info: the trace shows the SV in the legend but has "(No Data)" at the end (wasn't obvious until I scrolled all the way over).  This is a waveform SV.  When I added some non-waveform boolean SVs, those do show up in the trace.  Are waveforms not supported in historical logging??

 

0 Kudos
Message 4 of 14
(4,030 Views)

Hello:

 

Glad you've found the problem.  And, about the other one... well as far as I know, the SVs logging is based on value change. If the value of the SV changes more percent than the one specified in the Logging category of the SV properties, the DSC engine will log a new value. Make sure that the value is changing enough.

 

And another idea, make sure you're locating the database in an accesible location.  Once I had a problem and I couldn't log data in a BD located in a folder inside C:\Program Files. Just for testing you may try to create a DB in a location like c:\bdtst.

 

Let me know if this helps.

 

Robst.



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 5 of 14
(4,030 Views)

Where do I find the value change spec?  I don't see anything in the waveform SV properties ...

 

0 Kudos
Message 6 of 14
(4,026 Views)

Oh are you talking about the update deadband?  It's apparently not available for an array of waveforms (but is for other types).  😞  Does this mean there is no way for me to log my data to the DB?

 

 

0 Kudos
Message 7 of 14
(4,021 Views)

Hello:

 

Yes, I've checked it out and it's not available for a waveform SV. I've done some tests in my PC and I'm also unable to view the data in MAX. But I see in the properties of the SV in MAX that some data appears to be there, although it doesn't show in the trace view. Maybe using some of the VIs located in the Historical pallete of the DSC Module you can manage to retrieve the data.

 

I haven't found anything that says that you can't log waveform data. Anyone out there may help us with this.



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 8 of 14
(4,018 Views)

Hi knicewar,

 

The data view in MAX can't display waveforms, but the data is logging.  To view it, you can use a Read Trace VI from your DSC palette and set the polymorphic selector Variant, extract the data from the cluster, index through the array of variants, and then convert the variant to a waveform.  I've attached a screenshot.

 

 

Message Edited by Jeremy_B on 08-14-2008 03:01 PM
Regards,

Jeremy_B

Applications Engineer
National Instruments
0 Kudos
Message 9 of 14
(3,973 Views)

Hm.  It crashed my machine after sucking down every bit of memory.  Perhaps it should "window" the DB requests (bound the start/stop time) because I have a LOT of data in it ...

 

Surely I'm not the first to want to browse waveforms from a huge DB.  Isn't there something already out there I can use??

 

Keith. 

0 Kudos
Message 10 of 14
(3,965 Views)