06-02-2025 07:06 AM
I have created a plug in based on the 'FlexLogger Plug-in Developer kit documentation' (2024) from page 42 'Dynamic channel Number with Individual Settings'. The main difference is that each channel has only one OI channel associated with it and I calculate the Kurtosis of the data block . The example sets the Default names of the channels to "Scaled Max Waveform 1".
I would like to change the Default Name of the channel to include the associated user defined IO channel selected, for example "Kurtosis - <Channel Name in FLEXLogger> " so if you haven’t changed the channel name "Kurtosis - cDAQ1Mod2/ai0"; However the plugin channel is created first before the input channel is selected and hence cant be used when the 'Create Channel.vi' is called. I am happy to allow the Unique Channel Identifier to remain the same and use this to reference the channel and change the default name but I cannot find a way to do this.
Is this possible, and if so where should it be done to prevent infinite loops in changing the configuration settings? I was considering the 'Configure Session.vi" in the False case of have the channel quantity changed but unsure if this would save the infinite loop problem. (PS this may not be a problem but just my misunderstanding of the plugin.)
06-04-2025 08:42 AM
I have found a way to do this and included the project for reference both for naming the channel and reproducing the Dynamic channel production outlined in the user manual.
The attached project performs the same function as requested above (but not producing kurtosis but THD instead.)
There are issues with this method the first is that if a channel is disabled the plug in enables it again automatically. The second is that i would prefer to select multiple channels at the Plug in level and then assign the channels automatically to a single WFM per channel. naming the default channel automatically.
Is there a better way to relabel the default name whilst keeping the current settings (like pause/disable (is this the same as channel valid?)) rather than replace the channel completely?
Can a Flexlogger wfm data feed be problematically assigned to a channel with in a plug-in?