What does the Filter Mask used for?

Discuss issues and ideas you have to configuring displays with PowerVision
SANT ELECTRONIC
Posts: 2
Joined: Mon May 02, 2011 4:59 pm

What does the Filter Mask used for?

Post by SANT ELECTRONIC » Tue Aug 26, 2014 7:04 am

What does the Filter Mask(hex) used for in the Free From Numeric Messages of PowerVision Configuration Studio 2.7.10419?

what is the function of setting the Filter Mask to 0 or 1?

Thanks

Liu
China
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: What does the Filter Mask used for?

Post by stalley » Wed Aug 27, 2014 11:25 am

Hi!

Thank you for asking about the filter/filter mask feature. It is new in 2.7 and we hope that PowerVision Configuration Studio users find it useful!

For a received message, the filter mask is applied to message data. If the masked value equals the filter the message data will be processed. You enter the Filter and a Filter Mask. These are a typical bit/bitmask usage.

Frequently devices send commands in message data, using the same Frame ID. For example, if the first byte is a command and the display needs to do something with only commands 1 and 17, you would have two 1 byte filter/mask pairs. 0x01/0xFF and 0x11/0xFF

Filters are provided so that you don't have to write a script/state machine/activity program to decide when to use the message data, you know that the display will only look at required data.

When you Enable Filters, you can choose the size of the filter, 8, 16, 24, 32, 64. Since the size of the filter is adjustable, you have lots of flexibility to control the data that a display can use. If you are familiar with bitmasks, you can eliminate quite a bit of logic/programming by using these filters.

I am attaching an example configuration. It is very simple and basic, but might give you some ideas about how you can use filters in your configurations.
Test Filters (Displays).zip
(677.21 KiB) Downloaded 31 times
Sara Talley
Software Engineer
Enovation Controls