beautypg.com

Debugging custom analysis tools in visual c – Rockwell Automation FactoryTalk Historian Classic User Guide User Manual

Page 154

background image

Chapter 7 Creating RSBizWare Custom Analysis Tools

If your custom analysis tool does not work in the Configuration

Console the first time, you may need to debug your

Calculate()

function. The easiest way to do this is to use the Visual C++
debugger when running the Configuration Console as follows:

1. Select Project > Settings from the menu.
2. On the Project Settings dialog box shown below, select the

Debug tab. Make sure you have the Win32 Debug selected

from the Settings For list.

3. On the Executable for debug session box, click the arrow

button to browse and select the Configuration Console
executable (\Program Files\Rockwell

Software\RSBizWare\RSBizWare Production Client.exe).

4. Click OK to save your changes.

Now, when you debug the project, the Configuration Console will
be started. You then can set debug breakpoints in your

Calculate()

function. When you use your custom analysis tool in a time-series
chart, your breakpoints will be called in Visual C++. You can then
use the full power of the Visual C++ debugger to track down your
problem.

Debugging Custom Analysis
Tools in Visual C++

154

Rockwell Automation Publication HIST-UM001K-EN-E-June 2014