Mark,
I can't send you any sample code, but I can set you in the right direction. First of all, we recommend that you use the OPCFieldPoint object in Lookout. In order to change the frequency programmatically, you will need to create items in FieldPoint Explorer for the on-time and off-time settings for each channel. By increasing and decreasing these settings, yo ucan effectively change the frequency. All you have to do is make connections from a channel on the AI module to the on-time and off-time and add some scaling in the expression.
Regards,
Michael Shasteen
Applications Engineering
National Instruments
www.ni.com/ask
1-866-ASK-MY-NI