From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter USB-6212 doesn't work

Solved!
Go to solution

Hello everyone,

I've got a question regarding the USB-6212. We want to use the 2 counters implemented in this module but we've got some issues there. In the pictures you can see how we created the DAQ Assistant (sorry for the bad quality). The thing is that our "student" module (myDAQ) works completely fine using the setup as seen in the pictures but the USB-6212 isn't. Does anyone have any idea why the USB-6212 isn't working? When using the USB-6212, we connect the channels PFI01 and PFI12. 

Thanks

Sebastian

Download All
0 Kudos
Message 1 of 6
(1,230 Views)

Hi bastipa,

 


@bastipa93 wrote:

We want to use the 2 counters implemented in this module but we've got some issues there. In the pictures you can see how we created the DAQ Assistant (sorry for the bad quality). The thing is that our "student" module (myDAQ) works completely fine using the setup as seen in the pictures but the USB-6212 isn't. Does anyone have any idea why the USB-6212 isn't working?


Do you mind to provide useful information?

What are those "issues"?

How is the USB6212 "not working completely fine"?

Why is the USB6212 "not working at all"?

Which errors do you encounter?

Why don't you attach your code (aka VI file(s))?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,222 Views)

Hey Gerd,

sorry for not providing any further information. I've attached the VIs we used to test the modules. When starting the VI for the myDAQ, the numeric indicator counts up as intended. When using the same VI (of course with the DAQ Assistants for the USB-6212), nothing happens and the indicator remains at 0.

Best regards,

bastipa93

Download All
0 Kudos
Message 3 of 6
(1,163 Views)
Solution
Accepted by topic author bastipa93

Hi bastipa,

 

which pins do you use on your USB6212?

Did you verify (using a simple DMM) you output a signal on your "port0/line0" pin?

Did you verify (in MAX) you are using the correct pin for "ctr0"? In MAX you get images how/where to connect your signals!

 

Btw. did you ever tried to use "plain" DAQmx functions instead of the DAQAssistent ExpressVI? They are very simple

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(1,159 Views)
Solution
Accepted by topic author bastipa93

Your USB-6212 example counts Edges on PFI8. Perhaps you should fix that, try to count the pulses on PFI0, where you create your output.

 

Regards, Jens

Kudos are welcome...
Message 5 of 6
(1,154 Views)

Yes, in fact the problem was that we put the signal on the wrong pin - although we checked every pin manually, but nevermind. Problem solved and thanks for the help!

0 Kudos
Message 6 of 6
(1,117 Views)