AnsweredAssumed Answered

vrf Reading data from ML2496A

Question asked by VRFuser on Jan 15, 2008
I had a couple of typos in the example, as I was changing some stuff as I went along  Here is a corrected version and sorry for the inconvenience:
 
For example, the string
PMNPO 2,#3017+2.34E02,+2.34E02
would break down as PMNPO indicates the command sent is "Output Pulsed/modulated profile in ASCII"
"2" indicates channel 2 (it is unclear from the manual is there is a space here, but I would guess there is)
, is the field separator between commands
# is the block header
3 indicates 3 bytes of length data to follow
017 says there are 17 bytes of block data
+2.34E02,+2.34E02 is the data itself
 
 

Jay Nemeth-Johannes 
Smart Sensor Systems 
720 SW 14th Street
Loveland, Colorado 80537
(970) 663-0006  (Office)
(970) 290-9797 (Cell)
HYPERLINK "http://www.smartsensorsystems.com/"www.SmartSensorSystems.com

 


  _____  

From: Jay Nemeth-Johannes [mailto:jay.johannes@smartsensorsystems.com]
Sent: Tuesday, January 15, 2008 9:42 AM
To: VRF
Subject: RE: [vrf] Reading data from ML2496A


I believe this is a "read the manual" type situation.  I was able to find the programming manual referenced here:
http://www.us.anritsu.com/products/ARO/North/Eng/showProd.aspx?ID=736&cat=1&cat2=2&cat3=49&cat4=0#DownloadList
 
If you look at the output commands in chapter 11, you will see that the device is an IEEE-488.2 compliant device.  They treat all output, even ASCII as a definite block, so a block header and length bytes will be transmitted.  Further, the command sent is echoed back in the return data.
 
The general return form is
 
<command> <c>,<#><length><num_bytes><data_byte_1>... <data_byte_n>
 
The <command> would be the command sent in ASCII
The <c> would be the channel, either 1 or 2 in ASCII
Note the comma
The # symbol is the block identifier
<length> is the number of bytes of length information to follow.
<num bytes> is the number of bytes in the block.
The data now follows.
 
For example, the string
PMNPO 2,#3017+2.34E02,+2.34E02
would break down as PMBO indicates the command sent is "Output Pulsed/modulated profile in ASCII"
"2" indicates channel 2 (it is unclear from the manual is there is a space here, but I would guess there is)
, is the field separator between commands
# is the block header
3 indicates 3 bytes of length data to follow
008 says there is 8 bytes of block data
+2.34E02,+2.34E02 is the data itself
 
Hope that helps.

Jay Nemeth-Johannes 
Smart Sensor Systems 
720 SW 14th Street
Loveland, Colorado 80537
(970) 663-0006  (Office)
(970) 290-9797 (Cell)
HYPERLINK "http://www.smartsensorsystems.com/"www.SmartSensorSystems.com

 


  _____  

From: Strutt, Michael [mailto:MStrutt@tycoelectronics.com]
Sent: Tuesday, January 15, 2008 3:25 AM
To: VRF
Cc: VRF
Subject: RE: [vrf] Reading data from ML2496A


Hi Ari
I had a lot of problems reading with a 2413 counter the only way I could get it to work was using serial poll spoll.
This may be the same for your instrument have a look see if it helps?
 
Regards Mike

  _____  

From: Arie Fainbrun [mailto:arief12@netvision.net.il]
Sent: 15 January 2008 05:52
To: VRF
Subject: [vrf] Reading data from ML2496A



Hi VRF

I’m trying to control Anritsu power meter model ML2496A.

It seems that when I’m sending any command to the instrument it receives them.

The problem occurs when I try to read data from it, for example the pulse width or other data when each output is separate by sending a write

Command and then read the results.

The output seem to be  swap between the results and when I ask for any output I get something else and then my request.

 

Regards

Arie Fainbrun

 


---
You are currently subscribed to vrf as: MStrutt@tycoelectronics.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
---
You are currently subscribed to vrf as: jay.johannes@completetest.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".


---
You are currently subscribed to vrf as: jay.johannes@completetest.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".


---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".  

Outcomes