Beispiel #1
0
/**
 * Output formatted text to the serial port.
 * 
 * @bug All pointer-based parameters seem to return an error.
 * 
 * @param writeFmt A string that defines the format of the output.
 */
void SerialPort::Printf(const char *writeFmt, ...)
{
    va_list args;

    va_start(args, writeFmt);
    ViStatus status = viVPrintf(m_portHandle, (ViString) writeFmt, args);
    va_end(args);
    wpi_assertCleanStatus(status);
}
Beispiel #2
0
/**
 * Output formatted text to the serial port.
 * 
 * @bug All pointer-based parameters seem to return an error.
 * 
 * @param writeFmt A string that defines the format of the output.
 */
void SerialPort::Printf(const char *writeFmt, ...)
{
    if (!m_consoleModeEnabled)
    {
        va_list args;
        va_start (args, writeFmt);
        ViStatus localStatus = viVPrintf(m_portHandle, (ViString)writeFmt, args);
        va_end (args);
        wpi_setError(localStatus);
    }
}