11-09-2007
11:56 AM
- last edited on
07-23-2025
04:46 PM
by
Content Cleaner
Hi, everyboby!!!!!
I cheked a few examples about sending(output) data to the paralell port using visa, in one of this examples
appears a boolean array (i think!! ) with something that looks like a pattern that will be sent to the parallel port pins.
My question is the following: if i use VISA .vi, and just need to use 6 pins from the parallel port (let's say from D0 to D5) what should i do in order to send specific patterns (000001, 111111, for example) to the port....can i do that with VISA? Since i want to generate and output a 6- bit code that will be the input of a D/A converter. I'm using windows 2000.........Any suggestions?
Thanx in advance !!!
11-09-2007 02:27 PM
11-09-2007 09:12 PM
11-10-2007 04:42 PM
No, you do not wire pins 4 through 9. You wire pins 2 through 7 (D0 to D5). I think what is confusing you is the order of a Boolean array. If you look at an array control, the least significant bit in the array is the element closest to the index display control. So for an array that is arranged horizontaly, it is the left-most element. For a vertical arrangement, it is the top-most. Here is an example in LabVIEW 8 that hopefully will make things more clear. An array or a numeric can be used to control the output.
In LabVIEW 8.x, you also have a shipping example that shows how to read/write to the parallel port. The difference is that the shipping example uses the Inport/Outport functions.