Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

AK Protocol

I have  O2 analyzer ( model 600p) from CAI. They use AK protocol. I use labview 2013. I would like to through RS232 or TCP/IP sending commands to control the analyzer.  I want to use their two control command: _SMGA_K0 ( start measurement)  and _SATK_Km_Mn (start automatic calibration). But i don't know how to use labview to send the command to analyzer.  If you can send me the examples will great help. Thanks.

0 Kudos
Message 1 of 8
(10,453 Views)

As long as you can establish a connection to your device, you can send string commands to it in LabVIEW using the protocol required. If you are connecting with serial cables (on your COM port) then use VISA functions to establish the connection in LabVIEW and send commands.

0 Kudos
Message 2 of 8
(10,432 Views)

Thank you very much for your help. Do you have examples how to write the command in VISA write. something like i have the command: _SATK_Km_Mn. How to write this command in the write buffer. Also if i use VISA read, how i decide the "Bytes at Port". What driver or software i need to install if i want to use TCP read or write VI. I don't see the function>> communication in the labview. Thanks a lot.

0 Kudos
Message 3 of 8
(10,424 Views)
I've seen an example or two for different instruments that use the protocol. You'll have to build a complete message using the correct start and stop bytes. A string constant set to hex display can do this where you use the concatenate string function.

You don't have to decide the number of bytes. Set the termination character to match ETX and set a high number to read. The read will automatically terminate.

You aren't looking close enough if you can't find the TCP/IP functions. Did you click on the search button on the functions palette. Also, VISA can be used for TCP/IP.
0 Kudos
Message 4 of 8
(10,418 Views)

Thanks a lot for help. I found the TCP Vi under function>>data commnication. You said you saw the examples, can you attach them or where i can found the examples. Thanks.

0 Kudos
Message 5 of 8
(10,410 Views)
Just search the forum for 'ak protocol'.
0 Kudos
Message 6 of 8
(10,406 Views)
You are required to do a search before posting. The other threads should have shown up then.
0 Kudos
Message 7 of 8
(10,405 Views)

Hi Joan331

 

I have the same problem. Did you ever manage to get labview talking to CAI via TCP/IP. If so it would be great if you could share an example of the code for it!

 

Thanks

 

0 Kudos
Message 8 of 8
(7,306 Views)