LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when writeingto parallell port, 1073807339

 
And also tryed this this example
 
 
But when I execute it, I get this error
 
Error -1073807339 occurred at VISA Write in Parallel Exp.vi
Possible reason(s):
VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.
 
I have grounded pin 11 and 12, and have leds on the data pins.
 
Anyone know how this can be solved? any help will be appreachiated
 
Jonas
Message 1 of 11
(3,749 Views)
First of all be sure that your paralell port is configured correctly and is in SPP.
In the pass, i use my paralell port for playing. Instead of using the VISA, I use the inport and outport function. It's easyer and it's write directly to your port.
Hope this will help you.
Benoit
Benoit Séguin
Software Designer
0 Kudos
Message 2 of 11
(3,705 Views)
Thanks for reply. Yes it is in SPP.
 
I gave up using VISA and used like you describes in and outport functions wich works perfectly.
But I still wonder what was wrong with the example from NI.
 
Jonas
0 Kudos
Message 3 of 11
(3,696 Views)
The Visa Control is a bit complicated. The list described inside, is not always compatible from a computer to another.
Some times is working and some thimes it's not.
Personally I hate with passion the visa function.
Don't have the choice to make with....
 
Benoit
Benoit Séguin
Software Designer
0 Kudos
Message 4 of 11
(3,695 Views)
okey, but what are the benefits on each metod?
Cause I'm working on a software writing 80bits from parallell port to a matrix card. And need to get a little overlook on what method to use for it.
0 Kudos
Message 5 of 11
(3,684 Views)
If you use the inport fonction, you gona have less programming to do.
Over that, your final application will be smaller too. The Visa is another software that you have to add in the installer setting.
For your application you bether use inport function.
The visa is quite good for some comunication instrument. GPIB and SERIAL
 
Benoit
Benoit Séguin
Software Designer
0 Kudos
Message 6 of 11
(3,675 Views)

 Thanks for help.

What I need now is to controll the pins. 1 pin shall send data serial. the other shall be clock, write etc for the card.

Know how can do that?

0 Kudos
Message 7 of 11
(3,660 Views)
Do you try to make serial comunication for an electronics device?
If it's the case, you will probably have a hard time to do. With that type of comunication, timing is very important. I hope that you PC is fast and without any software that gona take a lot of CPU time.
 
I have a quite good idea how to make it, but I will not give you that right now. Because you will not have the fun to do it. Just make sure that you understand the comunication of your device. like the read and write pin of the device, the synchronisation and of course the power...
 take in mind that this kind of device works in MHz. you will never acheive that speed with parallel port.
 
 
Good luck in your project.
 
Benoit
Benoit Séguin
Software Designer
0 Kudos
Message 8 of 11
(3,654 Views)
Thanks for reply
 
Well a little info about it. It's a 16*16 matrix card wich shall be programmed with the parallel port. The card shall be serial programmed wich mean the data comes on one pin, the clk on another reset on another and so on... There is a cable for this.
Yes the pc is very fast dont remember the speed on it but it's an industry pc.
 
Like posted earlyer I had no luck with using VISA. But using out.vi I could communicate with the parallel port.
Now my prob is to controll pins on the port, and not just sending the array into out.vi.
0 Kudos
Message 9 of 11
(3,647 Views)
Making a state machine for your application will help a lots. you will probaly need a state cald initialisation, reset, send data close and other...
 
It's make aplication easyer to develop and to debug. The other thing is that your aplication will be modular. so you will be able to reuse the code from another aplication or another trad of that application.
 
Benoit
Benoit Séguin
Software Designer
0 Kudos
Message 10 of 11
(3,647 Views)