[IGSTK-Users] SerialCommunication did not work by windows 7 64bit environment

ikuma ikuma_is at restaff.chiba-u.jp
Thu Sep 29 05:57:15 EDT 2011


Hi all,

 

I have the same problem here.

I would like to use Polaris Vicra by windows 7 64bit environmen and visual
stdio 2008(x64)

This source succeeds in building by Visual Stdio 2008 x64.

But, SerialCommunication of OpenCommunication did not work.

It is error of the 658th line of String file by the debuger

VTK and ITK was build by Visual Stdio 2008 x64, IGSTK version is 4.4.

 

igstk::RealTimeClock::Initialize();

typedef igstk::TransformObserver      ObserverType;

igstk::SerialCommunication::Pointer serialComm;

serialComm= igstk::SerialCommunication::New();

typedef igstk::SerialCommunication::PortNumberType PortNumberType;

unsigned int portNumberIntegerValue =3;

PortNumberType polarisPortNumber = PortNumberType(portNumberIntegerValue);

serialComm->SetPortNumber(polarisPortNumber);

serialComm->SetParity( igstk::SerialCommunication::NoParity );

serialComm->SetBaudRate( igstk::SerialCommunication::BaudRate9600 );

serialComm->SetDataBits( igstk::SerialCommunication::DataBits8);

serialComm->SetStopBits( igstk::SerialCommunication::StopBits1 );

serialComm->SetHardwareHandshake( igstk::SerialCommunication::HandshakeOff
);

serialComm->SetCaptureFileName( "RecordedStreamByPolarisTrackerTest.txt" );

serialComm->SetCapture( true );

serialComm->OpenCommunication();

 

This source work by windows 7 64bit environmen and visual stdio 2008(win32).


I don't understand whats wrong and whats need to change,

If someone else could help I'll appreciate.

 

Best regards, 

I.Sato

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20110929/748d7204/attachment.html>


More information about the IGSTK-Users mailing list