Hi all,
Thanks for all the great input on this topic; I have it working a dream.
Best regards,
James
-------------------------------------------------------
James Atkin BEng(Hons) AMIEE
Software Engineer
Mitec Telecom Ltd
The Arenson Centre
Arenson Way
Dunstable
Bedfordshire
LU5 5UL
-------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
Thanks for all the great input on this topic; I have it working a dream.
Best regards,
James
-------------------------------------------------------
James Atkin BEng(Hons) AMIEE
Software Engineer
Mitec Telecom Ltd
The Arenson Centre
Arenson Way
Dunstable
Bedfordshire
LU5 5UL
-------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
</html>
> Date: Thu, 11 Jul 2002 10:43:01 +0100
> From: "James Atkin" <James.Atkin@mitectelecom.biz>
> Subject: vrf - Plotting HPGL from 8753 Analyser ...
> Has anyone controlled an 8753 Analyser and forced it to take an HPGL plot
> - not to a plotter, but to a file on the controlling PC ?
>
> I am looking into it at the moment, but if anyone has successfully
> done this, I would appreciate any advise you can offer me.
>
> Best Regards,
>
> James
>
> - -------------------------------------------------------
> James Atkin BEng(Hons) AMIEE
> Software Engineer
> Mitec Telecom Ltd
> The Arenson Centre
> Arenson Way
> Dunstable
> Bedfordshire
> LU5 5UL
> - -------------------------------------------------------
My suggestion would be to use the Matlab script feature to generate
your plot (you get much more control over your plot that way
anyway). From inside the Matlab script window, you can then
use Matlab's print command to print the data to files in a variety
of formats, including HPGL. The Matlab script help window has
a fair amount of information. Also, you can go to the Mathworks
web site (www.mathworks.com) and look under their support page.
Since this feature seems less utilized than I believe it
should be, I'll include a nickel tutorial here. Skip
it if it's old hat for you ...
A simple example would be to have two inputs to a Matlab script
window, call them X and Y (case sensitive).
In the Matlab script you then type:
plot(X,Y)
which generates a line plot of X versus Y.
To control the color, you would say
plot(X,Y,'b'); % The semicolon tells Matlab not to echo the command
% The ampersand is the Matlab comment character
Now, for some axis labels use:
xlabel('This be X'); % Note single quotes for Matlab
ylabel('That be Y');
title('Hey, Mom! I got a plot!');
Finally, you can get some control over the plot characteristics, you
prepend each of these commands with a handle, i.e.
p1 = plot(X,Y,'r'); % Red line this time
set(p1,'linewidth',2); % Make the line thick
x1 = xlabel('This be X'); % Use a different handle for the xlabel
set(x1,'fontsize',14); % Default size is 12pt
set(x1,'color','g'); % Of course, you want a green x label
Note that the Matlab script box will run and then disappear. To
hold onto this plot so you can use the Matlab commands to print,
tie an "OK" block under the Matlab script block. You can then access
the file menu at the top of the Matlab plot window. Alternately,
you can put the print command right in the script with:
print -dhpgl foo
or you can have the filename be a text input to the
Matlab script box. In that case (with an input named fn)
the command:
print( gcf, '-dhpgl', fn )
Note that among the useful formats available there are EPS, PS, JPG,
and PNG files. GIF is no longer available because Matlab uses ghostview
to translate the plots into various formats and Compuserve foolishly
started trying to enforce their patent on GIF files. There are programs
which convert EPS and PS to PDF files (e.g. Acrobat Distiller).
-- Danny
________________________________________________________________
| Danny Abramovitch E-mail: danny@labs.agilent.com |
| Agilent Labs Voice: (650) 485-3806 |
| 3500 Deer Creek Rd., MS: 25U-9 FAX: (650) 485-4080 |
| Palo Alto, CA 94304-1392 |
| |
| "If someone had told me I would be Pope one day, |
| I would have studied harder." -- Pope John Paul I |
|________________________________________________________________|
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
Has anyone controlled an 8753 Analyser and forced it to take an HPGL plot - not to a plotter, but to a file on the controlling PC ?
I am looking into it at the moment, but if anyone has successfully done this, I would appreciate any advise you can offer me.
Best Regards,
James
-------------------------------------------------------
James Atkin BEng(Hons) AMIEE
Software Engineer
Mitec Telecom Ltd
The Arenson Centre
Arenson Way
Dunstable
Bedfordshire
LU5 5UL
-------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
Scott, check the attached text file, that came with this mail message
from the list. The attachment claims that your zipfile violated the
mailsending rules for your company. I suggest that you examine them, as
it appears that the site is an internal one, and then go complain to
your management. This one very definitely did not have the HPGL zipfile.
-------------------
Gregg C Levine hansolofalcon@worldnet.att.net
------------------------------------------------------------
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke." Obi-Wan Kenobi
(This company dedicates this E-Mail to General Obi-Wan Kenobi )
(This company dedicates this E-Mail to Master Yoda )
> -----Original Message-----
> From: owner-vrf@lvld.agilent.com [mailto:owner-vrf@lvld.agilent.com]
On Behalf
> Of Anderson, Scott
> Sent: Thursday, July 11, 2002 7:17 AM
> To: 'James Atkin'
> Cc: vrf@lvld.agilent.com
> Subject: RE: vrf - Plotting HPGL from 8753 Analyser ...
>
> James,
>
> This should work for you, It saves it to a file specified on your
computer (in black
> and white or color) and changes the characters need inside the file to
save it as
> HPGL file format. Also, incase you do not have the drivers for word
to insert and
> decode the HPGL format, I have included the files to set that up.
This way you can
> insert the saved HPGL file into word.
>
> Hope this helps,
>
> Scott Anderson
> Quality Analyst II
> ADC Worldwide Operations
> Tel : 952.403.8311
> Fax : 952.403.8520
> MS : 509
>
> scott_anderson@adc.com
>
> Learn about ADC - The Broadband Company at www.ADC.com
>
> Mailing Address: P.O. Box 1101, Minneapolis, MN 55440-1101
> Office Address: 1187 Park Place, Shakopee, MN 55379
>
>
> -----Original Message-----
> From: James Atkin [mailto:James.Atkin@mitectelecom.biz]
> Sent: Thursday, July 11, 2002 4:43 AM
> To: vrf@lvld.agilent.com
> Subject: vrf - Plotting HPGL from 8753 Analyser ...
>
>
> Hi all,
>
> Has anyone controlled an 8753 Analyser and forced it to take an HPGL
plot - not to
> a plotter, but to a file on the controlling PC ?
>
> I am looking into it at the moment, but if anyone has successfully
done this, I would
> appreciate any advise you can offer me.
>
> Best Regards,
>
> James
>
> -------------------------------------------------------
> James Atkin BEng(Hons) AMIEE
> Software Engineer
> Mitec Telecom Ltd
> The Arenson Centre
> Arenson Way
> Dunstable
> Bedfordshire
> LU5 5UL
> -------------------------------------------------------
>
> ---------------------------------------------------------------------
> This is the "vrf" maillist, managed by Majordomo. To send messages to
> this maillist, just email to "vrf@lvld.agilent.com". Subscriptions
and
> unsubscriptions are done through the address
"vrf-request@lvld.agilent.com".
> If you need details, just send a message containing the text "help"
> to "vrf-request@lvld.agilent.com".
> ---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
Yes I have done this. Use the OUTPPLOT command in your direct io:
WRITE TEXT "OUTPPLOT" EOL
READ BINARY x STR
Then write that to file with WRITE TEXT a STR in your To File object.
Then your problem is displaying the HGL file. MS-Word used to do it back in
the days of windows 3.x, but it doesn't anymore. We found a DOS program
that converts HPGL to PCX but I can't remember where we got that.
I have code that does this but it's buried in a large VEE file. I will
extract it and build a demo if you need it. (Just a bit busy right now!).
Warren Pickles
-----Original Message-----
From: James Atkin [mailto:James.Atkin@mitectelecom.biz]
Sent: 11 July 2002 10:43
To: vrf@lvld.agilent.com
Subject: vrf - Plotting HPGL from 8753 Analyser ...
Hi all,
Has anyone controlled an 8753 Analyser and forced it to take an HPGL plot -
not to a plotter, but to a file on the controlling PC ?
I am looking into it at the moment, but if anyone has successfully done
this, I would appreciate any advise you can offer me.
Best Regards,
James
-------------------------------------------------------
James Atkin BEng(Hons) AMIEE
Software Engineer
Mitec Telecom Ltd
The Arenson Centre
Arenson Way
Dunstable
Bedfordshire
LU5 5UL
-------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------