LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Triggered Datalog

Is the Operate > Logging datalog control on the VI front panel programmatically controllable?  I know I can create a datalog file with a VI's, but I just need the front panel states from a single event without having operator intervention.  This is a complicated VI that I don't want to add anything to, can a datalog be created by reference or some other method?  Or am I stuck coming up with a TDMS or datalog subvi and passing in literally dozens of controls and indicators for what amounts to a 'blip' of data I need to capture that the front panel log control can already do manually.

 

 

0 Kudos
Message 1 of 4
(136 Views)

Hi Fail,

 


@AbortRetryFail wrote:

Is the Operate > Logging datalog control on the VI front panel programmatically controllable? 


No (IMHO)…

 


@AbortRetryFail wrote:

I just need the front panel states from a single event without having operator intervention.


You can read the "front panel state" within your event case. There are functions/nodes to get references to all front panel elements and to get their value…

 


@AbortRetryFail wrote:

Or am I stuck coming up with a TDMS or datalog subvi and passing in literally dozens of controls and indicators for what amounts to a 'blip' of data I need to capture


You don't need to wire "dozens of controls", but just a single VI reference…

 

I recommend to use INI/XML/JSON to store front panel control values instead of datalog/TDMS.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(88 Views)

Hi, thanks for responding.  The format of the data is a bit secondary, seems any way it'd be saved for this purpose is "good enough" (datalog vs TDMS vs JSON).  I just need something better than a jpg of the front panel (the current method).

 

My ignorance on full display now:

 

You don't need to wire "dozens of controls", but just a single VI reference…

 

What 'single VI reference' contains all the controls and indicators of a given VI?  There are clusters and arrays of controls and indicators that I can call by reference but in my travels I haven't come across one that works at the VI level.  I'm OK with being schooled on what might be basic Labview operations, I'm just coming back to this after about 15 years.  Last time I messed with this it was called Labview 7.  

 

 

0 Kudos
Message 3 of 4
(58 Views)

Hi Fail,

 


@AbortRetryFail wrote:

What 'single VI reference' contains all the controls and indicators of a given VI?  There are clusters and arrays of controls and indicators that I can call by reference but in my travels I haven't come across one that works at the VI level. 


You need the reference to the VI itself:

Using this reference you can get a reference to the frontpanel, which in turn allows you to read all frontpanel element references!

 

In recent LabVIEW versions there are also functions to traverse all fp elements

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(41 Views)