Quantum Data 801GF Specifications Page 6

  • Download
  • Add to my manuals
  • Print
  • Page
    / 40
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 5
Page 6 Model 801GC-ISA & 801GF-ISA Programming Manual
‘Access the DLL routine to open the port
Answer = port_open(PortSpec, comm_data)
PortConnect_Error (Answer)
If Answer = PORT_OK then
Connected = True
Else
Connected = False
End If
End Sub
Port Command
Declare Function port_command Lib “hia.dll” (Comm_Data as COMM_DATA_TYPE, ByVal cmd as String, ByVal
response as String) as Integer
Port command is designed to download any of the commands or queries used to communicate with the ISA
generator. This function will only work when the ISA port has been opened otherwise the function will return an
error message. To download a command, place the command into the cmd string and then call the port_command
external function.
cmd = “FMTL VGM_M3”
Answer = port_command (comm_data, cmd, response)
‘Analyze the error if one occurred
If Answer <> 0 then
PortConnect_Error (Answer)
End If
Port Query
Downloading a query is very similar to downloading a command, however a response from the ISA generator will be
returned in the response string. It is important to remember the size of the response string must be declared before
the external function port_command is called. (i.e. Global response as string * 100)
cmd = “*IDN?” ‘This query will return the model and firmware revision
Answer = port_command (comm_data, cmd, response)
‘Analyze the error if one occurred
If Answer <> 0 then
PortConnect_Error (Answer)
Else
‘The response string contains the data returned from the generator
pnlStatus.Caption = response
End If
Page view 5
1 2 3 4 5 6 7 8 9 10 11 ... 39 40

Comments to this Manuals

No comments