07-14-2009 09:02 AM
07-15-2009 07:00 PM
Hi,
Two things First are you using VISTA, the Out Port.vi and In port.vi are not compatible with Vista. looking at your Code I do not see anything immediate that is wrong or off. It seems to be fine for me at first glance. You say that you have no luck with your program what is the behavior that you are seeing from the printer? Are you receiving any errors? if so please attach a screenshot of that error.
Thank you
07-15-2009 11:36 PM
Hi Charles
Thanks for the reply. I'm using XP Pro SP3. I send the command during a print run, but the printer does not respond, and no error messages are displayed. I have tried to send the command after the print run and there is still no reaction from the printer. I have also tried various loop timings.
07-16-2009 07:33 AM
Alan,
Here is a link to more info on using parallel port w/LV. http://digital.ni.com/public.nsf/allkb/B937AC4D8664E37886257206000551CB Hope it helps.
07-16-2009 10:01 AM
Hi Alan,
I was working on a windows 2000 sending a signal to the parallel port using a Out Port.VI and it worked fine because the format of the computer was a 378 like you have in your program; however, when i tried to use this program in a windows vista, this didnt work because the format of the parallel port of this computer was BD00-BD07, which is not written in 16 bit like your program. In order to solve this problem, i used VISA Write and it would automatically send the signal to the parallel port. Try using VISA and you shouldnt have any problems. I will send you an example VI so you can see how i used it. I also modified your VI using VISA instead of using Out Port.vi. It has an error because part of the file is missing but this should get you started. If you have any questions dont hesitate to ask.
Guillermo Naranjo
07-16-2009 10:03 AM
I forgot to tell you that you have to make sure to connect pins 11 and 12 to ground; otherwise the computer will read an error and it wont send any signals.
Guillermo Naranjo
07-16-2009 10:22 AM
07-16-2009 10:24 AM
07-16-2009 10:27 AM
I will resend you the VI's in 8.5. Hope they are useful.
07-16-2009 10:45 AM