Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make square pulse train by PCI-6534?

I have to test my LPT driver by generating its interrupts with a great frequency. To to do this my colleague proposed using PCI-6534 board... Merely I need to make the board to ground some its line connected to the #ACK-line of the LPT-port with a given frequency. Had my board a counter-line, I would known how to do this. But my board doesn't have any counter-line. Could You advise me some simple solution of my problem?
0 Kudos
Message 1 of 5
(3,709 Views)

Hello jambulat,

It is certainly possible to generate a square wave on the digital lines of your PCI-6534.  To do this, you would use the DAQmx sample clock function or VI to specify the rate at which to output.  There are certainly some examples of how to do this depending on what language you are using.  In LabVIEW, go to the Example Finder (Help >> Find Examples) and browse to Hardware Input and Output >> DAQmx >> Digital Generation >> Write Dig Chan-Int Clk-Dig Start.  You can delete the trigger VI if you do not need to have the output start on a trigger.  Alternatively, you could use the example Write Dig Chan - Ext Clk and make it use the internal sample clock by deleting the source control on the DAQmx Timing VI.  If you need it to be continuous, you can do that as well with a few modifications. 

If you are using a text-based language, find the examples for your language that installed with the NI-DAQmx driver and choose one that does digital output.  There may an example of the name Write Dig Chan - Ext Clk and you could just change this to use the internal clock.  I recommend looking at the NI-DAQmx C Reference Help installed at Start >> Programs >> National Instruments >> NI-DAQ in order to make the modifications that you need. 

If you would like additional information about this, please let us know what language you are programming in and what progress you have made.

Thanks!

Laura

0 Kudos
Message 2 of 5
(3,693 Views)
Laura, thank You for your answer! I'll follow your advices and I'll tell about my progress when it'll be.
Now i'm trying to install mx driver instead of traditional:)
0 Kudos
Message 3 of 5
(3,690 Views)
OK. I found out that my board doesn't support mx SDK...
But when I properly installed LabVieW 7.1 i found an example (smth like Hardware I/O\Traditional DAQ\Buffered Pattern Output). That is what I need. When this example operates I can read series of square pulses of a given frequency from REQ-line.
0 Kudos
Message 4 of 5
(3,667 Views)
Hi jambulat,
 
The PCI-6534 is supported by NI-DAQmx.  It is possible that you have version 7.3 or below, which did not have support for it.  I would recommend using NI-DAQmx since you are just getting started.  You can download and install the latest version, 8.0 and you will have support for your board and LabVIEW 7.1.
 
Regards,
Laura
0 Kudos
Message 5 of 5
(3,657 Views)