ni.com is currently experiencing slowness/issues due to ongoing maintenance.
Support teams are actively working on the soonest resolution.
ni.com is currently experiencing slowness/issues due to ongoing maintenance.
Support teams are actively working on the soonest resolution.
02-17-2021 03:40 AM
Similar to 'RMS' and 'Mean' formula channels, I'm trying to create one that shows the standard deviation of a mapped channel.
Some success, I can create a plugin for one but ideally I want to be able to have, say, 5 channels each one mapped to an input. The 'Process.vi' is successfully retrieving an array of 1 channel but if I create more than one in the 'Initialise' vi I can't get any output from any channels.
Working plugin attached, grateful to anyone who can help me do this for more than one channel, otherwise I would have to create an instance of the plugin for each channel I want to show the SD of.
The dynamic channel example in the manual is kind of complex for me. I'm happy to hard code an array of, say 10 channels, and pause the ones I don't map.
Or if the solution I've got is the most sensible to use, just creating a new instance per channel tell me.
thanks
Solved! Go to Solution.
02-17-2021 09:14 AM
Here's an updated Plugin based on the "Dynamic Channel Number" described in the FlexLogger Plugin Development Kit Manual.
Hope this helps,
Brad
02-17-2021 03:24 PM
Thanks Brad, this solution works OK for one channel but if I increment the channel count an error appears which unfortunately I can't see in Flexlogger. This is similar behaviour to my own attempts.
02-17-2021 03:52 PM - edited 02-17-2021 03:56 PM
It works for me. I am using FlexLogger 2021 R1 (release Dec 2020). I attached a video of how I am using it, so let me know if you are doing something differently. I also modified the Process VI as shown below:
I was getting timestamp errors when I was trying to use the t0 from the waveform, so see if this helps.
02-17-2021 04:01 PM
Thanks for this - I've persevered and get the same as you. Pausing and unpausing a channel made a difference. The calculated output is sampled at a lower rate so I'll have to deal with this to stretch it back, but I can take it from here. Will also have to better understand the setting of the window over which the SD is presented - seems to be input channel rate / 10 for now.
02-18-2021 08:17 AM
Try calling "FlexLogger\SDK\PluginSDK.lvlibp\PEFClasses\SDK\Plugin\Set Plugin Timing.vi" in the Initialize.vi and set the timing to On Data Ready, or Periodic to better control when the Process.vi is called.