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.

FlexLogger

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically writing channel parameters for FlexLogger plugin

Solved!
Go to solution

I'm attempting to dynamically write channel parameters in the Process.vi portion of a FlexLogger plugin. I can't seem to write to the parameters more than once in the Configure.vi, and it will not change again after the first write even if there are Plugin-level changes. 

 

Am I doing something wrong here? Do I need to "re-add" the channel to the Plugin class or something?

 

Any help you can give me would be greatly appreciated.

0 Kudos
Message 1 of 2
(1,409 Views)
Solution
Accepted by topic author ValveAutomator

I'm making a reply to my own post in case anyone comes looking for an answer.

 

So there is an inherent problem with my methodology here. The parameter feature at a channel level still triggers a event, so dynamically writing to a channel parameter triggers an infinite loop that the FlexLogger cancels in the background.

 

Long story short - don't do this. 

 

The goal of this plugin was to send string data representing system state as well as waveform data. I will make a separate post about sending strings to FlexLogger if you are looking for something similar.

 

Cheers!

0 Kudos
Message 2 of 2
(1,381 Views)