The function viPrintf works a lot like the ANSI C console printf function, just with a bunch of instrumentation extensions.
The way it works the same is the way it affects you. All it does is buffer up the output unless you do one of the following:
1) Send "\n" in the format string itself (not in the formatted result)
2) Call viFlush(VI_WRITE_BUF) after viPrintf
3) Call viSetAttribute(VI_ATTR_WR_BUF_OPER_MODE,VI_FLUSH_ON_ACCESS) before viPrintf
Only when it flushes from the internal buffer to the bus will you see actual bus cycles.
Dan Mondrik
National Instruments