LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HP8564E Printing to HP printer with LV6.0.2

Hi All,

I am converting some code from WaveTest to LabVIEW. One prblem I am running into is after I sweep the 8564E analyzer I need to send the plot on the screen to the HP Printer connected VIA GPIB. now the 8564 Book shows the following commands:
Print 0; (for Momchrome Printout)
then
SEND sel_code; UNT UNL LISTEN prt_addr TALK sa_addr DATA

now I know the sa_addr and prt_addr but the sel_code is the Interface code according to the bbok.. but what interface code?

Is there a better way to do this? I can print most of the screen to LV but I am not sure if Excel would be a good place to export for printing. I am opent o suggestion on getting the gib printer to work or another way to give a similar printout on LV.
Tha
nks
Jeff
Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 Kudos
Message 1 of 3
(2,675 Views)
Hello,

I am not sure about the command set for the 8564E Analyzer, however, you can certainly write the data to file named with extension .xls and easily use Excel. The string palette in LabVIEW has functions which will help you build spreadsheet strings (such as spreadsheet string to array and array to spreadsheet string); there are also spreadsheet file writing VIs. However, the underlying opertions there are trivial, since a spreadsheet string is nothing more than tab delimited (or comma delimited) values with linefeed characters determining when to go to the next row. That is, tabs between values tell a spreadsheet program to jump to the next cell in a given row, where linefeed (or end of line) characters tell a spreadsheet program to jump to the next row. Th
erefore, you are free to construct a single string with the appropriate format for writing to a spreadsheet file. Of course, you can write to a file multiple times instead of created a single large string.

Repost if you still have questions.

Best Regards,

JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 3
(2,675 Views)
Thanks, I have done quite a bit with accessing Excel for doing similar tasks, but for this particular test we chose not to access Excel to write the graph. I did however set-up a VI to print the front panel when complete and I am using that for my data. It looks very good, I am still debating on trying the same thing in excel, but I am not wuite sure yet. I know it can be done and I can do it, but this set up seems to be good so far.

Thanks for the response
Jeff
Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 Kudos
Message 3 of 3
(2,675 Views)