LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming PCI-6534 DAQmx or traditional DAQ

Solved!
Go to solution
Hi
 
i am using  PCI-6534 card to read pulses coming from an instrument. i am using SCB-68 connecting cox alongwith the card. I connected the signal to DIOA3 pin. I confured card using both the ways (DAQmx and Traditional DAQ) but i could not get the data into the system. here the data coming from my instrument is single bit digital pulse. my purpose is to count the number of pulses in some duration of time and stop the acquisition after that duration.(or stop acquisition after getting some no.of pulses). For the first time i am dealing with the hardware, so i am a bit confused whether i am missing anything in configuration. Here i am attaching the screenshot of VI i am using for acquisition from the line specified. Please provide me a solution. 
 
 
Thanks in advance
 
Anil
0 Kudos
Message 1 of 3
(2,773 Views)
Solution
Accepted by topic author Reddy
Anil,
 
The best resource for programming in DAQmx is the NI Example Finder. There is an example called "Read Dig Chan.vi" that I think you should take a look at. If you go to Help>>Find Examples in LabVIEW, the Example Finder will open. Double-click on the folder labeled "Hardware Input and Output", then "DAQmx", then "Digital Measurements". You will see the Read Dig Chan example in that list. Take a look at the block diagram of it. Save a copy of it and modify it to fit your needs.
 
Note that in this example the DAQmx Read is the only DAQmx VI in the while loop. It is unnecessary and time consuming to create the channel and clear the channel over and over again.
--
Michael P
National Instruments
0 Kudos
Message 2 of 3
(2,760 Views)
Hi Michael
 
Thanks for your response, i checked examples and now i could solve my problem. Now i placed while loop only for  "DAQmx read" .
 
 
 
Anil
0 Kudos
Message 3 of 3
(2,741 Views)