MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing problems MATRIXx 7.1.4 on Windows 2000

I am running MX 714 on a Windows 200 machine have problems printing.

From a graphics window when I select File>Print and select the desired printer I get.
pop-up window: hardlnx.exe - Application Error (instruction at "0x00401c23" referenced memory at "0x0000000008". The memory could not be "read".

I get the following message in the xmath window:
***A*** Process c:\data\ni\mx714\mx_71.4\xmath\modules\basic/hardlnx.exe failed to load (system error).
[main._stat4] = (define `hardlnx') (filnam, fileType, file, color, [xscale;yscale], portrait, res, print, _hpglOptions, window_id, render, hcsize);

The printer is networked and shared.

hardcopy:
hardcopy print="c:\data\ni\mx714\mx_71.4\xmath\bin\xmprint T0016005",{fg, portrait}
c:\data\ni\mx714\mx_71.4\xmath\bin\xmprint T0016005 C:\DOCUME~1\BT003232\LOCALS~1Temp/XmathGraphics1116.ps
[printing to T0016005 ...]

But nothing is send to the printer??
No further error messages.

What can I do.

Brian
0 Kudos
Message 1 of 9
(11,372 Views)
Brian,

I tried to reproduce this error but was unsuccessful. Have you had this problem with other printers or is it specific to this printer in particular? Can you post the make and model of the printer you are using?

I'm curious to read what happens when you try to select a different printer, or try to print to a printer connected directly to your computer.

Also, just to clarify, you're getting this error when you actually click the print button right?
Can you check to make sure the hardlnx.exe module is actually on your system? Maybe it was deleted somehow.
"c:\data\ni\mx714\mx_71.4\xmath\modules\basic/hardlnx.exe"

You also might want to try doing a manual print using a different graphics type (other than PostScript). See the MATRIXx help for a description of the HARDCOPY command for further details.

Regards,
Nick F.
Applications Engineer
National Instruments
~~
0 Kudos
Message 2 of 9
(11,360 Views)
Nick,

I have access to 4 networked printers (no local devices available)
HP LaserJet 5M (default)
2 HP Color LaserJet 4550 PS
Xerox WorkCentre Pro65 PS
(under Printers it reads e.g. T0016005 on ipp://clprt1.nwip.canadair.ca for the default LasetJet)

From the Graphics Window, I select File > Print.
I then get the Print Pop-Up window displayed.
I select the Printer I want to use and Select OK.
The print window dissappears and the error message window pops-up

The "hardlnx.exe" file is there and I can do "what hardlnx" and hardlnx -> which gives message used in invalid context.

I can create hardcopy files:
hardcopy file="c:\temp.ps", {fg,portrait} , also eps, emf, pict work as well.

Question: Should there be any NI System Environment Variables set?
e.g. I run hardcopy without any other keywords and get .. no default printer defined..

How do I set this? If I type set XMATH_PRINT=c:\........\xmprint T0016005 in a DOS window, it sets some sort of environment variable, but MATRIXx doesn't find this.
MATRIXx seems happier if I go through the Control Panel -> System -> Advanced -> Environment Variables and Add a new one called XMATH_PRINT but this is not straight forward.

After adding the XMATH_PRINT it appears to accept the printer, ...printing on T0016005.. but nothing comes out.

I do not have problems printing from any other application.

Thanks
Brian
0 Kudos
Message 3 of 9
(11,352 Views)
Brian,

Thanks for sending in your printer configuration.

I'd like to narrow down this issue a little further. Can you check to see if printing to a file works properly from the print dialog? You can do this by chooose "File>Print" from the graphics window, then checking the "Print to File" option. I think this should work, but I'd like to make sure. Also, can you see if there are any non-IPP printers on your network that you can try?

If you send me a screen-shot of the error to me at matrixx@ni.com I'll get back to you with anything I find.

Nick F.
Applications Engineer
National Instruments
~~
0 Kudos
Message 4 of 9
(11,337 Views)
Nick:

I do not have access to non-IPP printers to test.

Printing to file works fine - no problems there.

I have sent you a sreen shot.

Thanks,
Brian
0 Kudos
Message 5 of 9
(11,314 Views)
i think there is some kind of problem for the code with printing in matrixX , i have matrixX 7.1 on windows xp and i get strange errors when i try to print.
0 Kudos
Message 6 of 9
(11,279 Views)
srikant,

Can you provide some details about the errors you are getting?

Regards,

Nick F.
Applications Engineer
National Instruments
~~
0 Kudos
Message 7 of 9
(11,269 Views)
Is Matrixx Printing compatible with IPP printers?
If not, this should be looked into as many companies are now using IPP for networking printers.

Thanks
Brian
0 Kudos
Message 8 of 9
(11,102 Views)
Strange:

I can print from SystemBuild, but not a graphics window.
e.g.
SystemBuild:
I have a model open in System build.
I select File, Print
The Print Dialogue window opens
The windows 2000 default printer is already selected (\\ipp://clprt1.nwip....\T0016005
I click on OK
The Block diagrams are printed

Xmath - Graphics
I open a plot/graphics window: plot([1,2],[3,4])
I select File, Print
The Print Dialogue window opens the same as before
The smae default printer is already selected
I click on OK
I get the error pop-up window: hardlnx.exe - Application Error
The instruction at "0x00401c23" referenced memory at "0x00000008". The memory could not be "read".
Click OK to terminate the program
Click on CANCEL to debug the program
Within the Xmath Log window is:
***A*** Process C:\PROGRA~1\NATION~1\MATRIXx\mx_71.4\xmath\modules\basic/hardlnx.exe failed to load (system error).
[main._stat3] = (define `hardlnx') (filnam, fileType, file, color, [xscale;yscale], portrait, res, print, _hpglOptions, window_id, render, hcsize);

What's going on?

Brian
0 Kudos
Message 9 of 9
(11,070 Views)