LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6212

Solved!
Go to solution

Hallo, 

 

I have a USB 6212. I want to sample the digital signal from the channels P 0.1 to P 0.3. After reading the data sheet of the USB 6212, there is no timing engine for the digital channels. But is it possible to set the sampling rate for them?

 

Best regards

0 Kudos
Message 1 of 6
(3,569 Views)

Apparently not.  I'm kinda surprised at how few of the M-series USB MIO boards seem to support hw-timed DIO.  The desktop plugin boards that I'm more familiar with always did.

 

What kind of sample rate are you hoping for?  Can you sample the signals via AI channels instead?

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 6
(3,558 Views)

Hello Kevin,

 

sorry, I must use these three digital channels to sample the signal. I have tried to using the sampling clock with the rate 1000Hz, but it returns an error code -200077.

 

I have read some posts from the forum, another idea is to use the counter to generate a pulse, but the two counter of 6212 have already been used.

 

Best regard

 

0 Kudos
Message 3 of 6
(3,540 Views)
Solution
Accepted by topic author TUDarmstadtLLX

for the USB 6212 you have to depend on the OS for timing and read the lines repeatedly at a fairly constant rate. 


"Should be" isn't "Is" -Jay
Message 4 of 6
(3,528 Views)

Hello,

thanks for your reply. 

This link seems to provide some solutions. I have tried the third one, but it doesn't work. Can some one help?

Best regard

0 Kudos
Message 5 of 6
(3,497 Views)
Solution
Accepted by topic author TUDarmstadtLLX

Based on my quick reading of the specs for the USB-6212, none of the first 5 suggestions in that link are even possible.  The board simply doesn't (seem to) support *any* kind of hw-timed DIO, regardless of the source of the timing signal.

 

It's highly unlikely the 6th suggestion can help you either.  Sorry, but by all appearances, you're fully stuck.  You either need to change hardware or change requirements.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 6 of 6
(3,488 Views)