Hello Dekel,
If you are using LabVIEW, you could download one of
these drivers and see if they implement the functionality that you are looking for. The drivers are not certified or NI-supported, so their quality might be hit or miss. Either way, you should also look through the programming and user manuals for your instrument to learn more about inserting a mask vector.
Good Luck,
NathanT