Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

BMP5


artmann Nov 13, 2009 09:26 PM

hi all.
i am just playing around a bit with the BMP5-Direct-SDK and a CR1000+NL115 for fun. Its really nice, how easy it is to "talk" with the logger taking this approach. But i am just wondering about the following behaviour.
To make transparent what i am doing take this code-snippet (C++/Qt4):

qDebug()<<"Open";
OpenIPPort("192.168.100.32",6785);
result=GetClock(1,3,&data,&nbytes) ;
qDebug()<<"clock : "<<result<<" > "<<nbytes<<" "<<data;
for(int i=0;i<10;++i){
result = GetValue(1,3,1,"Public","T_Pt100",&data, &nbytes);
qDebug()<<"data : "<<result<<" > "<<nbytes<<" "<<data;
}
ClosePort();
qDebug()<<"Close";

The getClock _always_ succeeds, but the _first_ call to GetValue nearly always fails with a -1. The error says simply "getvalue failed", but i also have seen a "failed to get tabledefinitions". On the other hand, the following calls to GetValue are succeeding.
So why is it the first call to GetValue that fails?
As the connection is tunneled over a vpn i expect and get timeouts when polling this style, but again : 99% of the calls succeed.
I am always interested for indepth information regarding timing on the CR1000. Especially serial-communication. So are there any white-papers?

* Last updated by: artmann on 11/13/2009 @ 2:26 PM *

Log in or register to post/reply in the forum.