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.

How to download information into the bit value is 16


dreamfox7612 Jun 2, 2010 04:05 AM

DataLogger is CR1000
How do use download data is 16(Hexadecimal;hex).

Because the experimental apparatus to enter this series.

Thanks


Sam Jun 7, 2010 03:39 AM

Dreamfox7612,

To provide adequate help, you will need to state your problem more clearly and provide more information - examples are always a great demonstration tool.

To start, there is syntax and a variety of CRBasic instructions that may be helpful to your cause.

* Binary numbers are represented in CRBasic by preceding them with "&B". Hexadecimal strings are prefaced with "&H". Try the following

Public Var01 As Long
Public Var02 As Long
Public Var03 As Long
Public Var04 As String * 15
Public Var05 As String * 15
Public Var06 As String * 15
DataTable (Test,1,1000)
Sample (1,Var01,Long)
Sample (1,Var02,Long)
Sample (1,Var03,Long)
Sample (1,Var04,String)
Sample (1,Var05,String)
Sample (1,Var06,String)
EndTable
BeginProg
Scan (1,Sec,0,1)
Var01 = 36079
Var02 = &H8CEF
Var03 = &B1000110011101111
Var04 = Hex(Var01)
Var05 = Hex(Var02)
Var06 = Hex(Var03)
CallTable Test
NextScan
EndProg

* Some other CRBasic instructions you may want to check out include those under "Operators", Hex, HexToDec, MoveBytes, ASCII, and CHR.

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