I wanted to make a data transmission between two datalogger connected together, someone could help me do this?
It depends upon what you want to do, but take a look at the GetDataRecord, SendGetVariables, and the SendVariables instructions in the CRBasic help file. There are example programs for each of these instructions as well.
Dana W.
I have two dataloggers, which I want to connect through port RS232 or CS I/O, in order to successfully send a datatable periodically from one to another.
I tried using the function SendData () and SendVariable(), but could not get the data sent in another datalogger.
How can I access the data sent by other datalloger? and can I handle these data?In the case of the function SendVariable() the variable or array sent automatically appears on another datalogger?
I did the following tests like in the example of CRBasic help:
If IfTime (0,1,Min) Then
SendData (ComRS232,50,50,Table)
EndIf
and
If Flag(1) Then
SendVariables (RXResponse,ComRS232,0,50,0,0,"Public","Temp",Batt_Volt,1)
EndIf
Thanks for help
What Result code do you get with SendVariables?
Dana W.
One note about SendData -- if you are using SendData in one datalogger, the other datalogger must be using AcceptDataRecords. There are several caveats explained in the help.
As with GetDataRecord, the AcceptDataRecords CRBasic help has example programs for the sending and receiving dataloggers.
Dana
I used SendData and AcceptDataRecords in the receiver and Works.
I only had one problem, when instead of using the RS232 port used the CS I/O, I could not get anything.
I also used the function getVariable and again I could only communicate through the RS232 port. What could be the problem when I use the other port?
I did the following and I use the same cable that I use to connect the RS232 ports:
GetVariables(RXResponse,ComME,0,60,0000,0,"Public","Batt_Volt",CR1Data,1)
Thanks,
Sérgio