Coop wrote:
> I am trying to communicate with Varian Multi-Gauge via serial port. I
> have programming manual in front of me with syntax for all commands.
> "The command structure is written in hexadecimal notation as indicated
> by the suffix H".(stated in manual)
> Here are 3 examples of the command syntax as written in the table from
> the manual:
>
> {01}
> {03H}
> {0AH} and so on.
> Each of these three lines represent the actual command syntax.
There should be somewhere an explanation of the syntax. This could mean
a number of things.
1) send it as a string as printed including the curly braces.
2) send just the string inside the curly braces
3) send a single 8bit integer with the according value e.g. 1, 3, 10
4) as 3) but the braces indicate some form of
start of text character
(8bit integer) and end of text character
5) as 4) but after the end of text follows some sort of checksum as well
> Now can you please tell me what do I send to the Visa write?
> Take for example {02H}. Do I take decimal string (eg. 02H) and
> concatenate it to the carriage return/line feed and then bring it to
> VISA write. Or I write "02" without H at the end or I convert 02H to
> hex and then ...or I convert 02 to hex and then...
Your documentation really should tell you a little more. Maybe they have
some example in there in C, or even Basic would be fine. Look at that
and then try to understand what they do and experiment in LabVIEW until
you get some response.
If you can give some more information of what the programming
documentation says about this, we can look at it and try to come up with
a more detailed suggestion.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390