LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read Discrete Input at 10 Khz clock rate using 6210

Hi guys

I have Ni USB 6210 which is 16 bit 250 kS/s Multifuntion I/O

Now i have to read digital input which is comming at 10 KHz rate(the clock is 10 KHz and at each raising edge i have to read the value which is avalible at another input line)

But the example which are shiped with are not really helpful for my use

Do anyone has any code or link which can be useful

Thanks in advance

Niladri

 

P.S I dont have RTOS or any RT module even RT modulation toolkit so can it be possible.. 

0 Kudos
Message 1 of 12
(2,987 Views)

Hi Newbee,

 

use the digital input as trigger source for your "other input line". It will be used as "external trigger" and there are examples available for such tasks!

Best regards,
GerdW


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

Actually I, some how able to write some code but it is showing an error  "Property not available for the device". What does it means ?

Thanks in advance

Niladri

0 Kudos
Message 3 of 12
(2,928 Views)

Hi Niladry,

 

which device do you use?

Where does that error pop up?

Did you try any debugging?

 

Why do you create and clear tasks in each iteration?

Have you looked at the examples regarding external triggers?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(2,924 Views)

The Device is USB-6210 and error comes in the  digital trigger.vi and yes I try almost everytype of application that I can think of and I changed the vi as per your recommendation but still the error persists and it says "Specified property is not supported by the device or is not applicable to the task"

Thanks in advance

Niladri

0 Kudos
Message 5 of 12
(2,909 Views)

Hi Newbee,

 

then read the specs and manual of your device.

 

It says an page 7.2: You can route PFI as AI sample clock. I'm sure there are examples for that specific use case...

 

Best regards,
GerdW


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

It is not AI it is Digital input and I am connecting to PFI SRC should it be connected to PFI Gate???

Thanks in advance

Niladri

0 Kudos
Message 7 of 12
(2,903 Views)

Hi Newbee,

 

yes, it's a digital input that is used as sample clock for an analog input.

 

AFAIK MAX will show you how to wire that when creating a task in MAX...

Have you considered calling NI when having problems with your hardware?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(2,901 Views)

I got a loner kit from NI after 1 month I have to return it back so I a  just testing that this module will serve my purpose or not so no point calling NI for hardware and if you see my vi then I know you can understand where I am making some mistake I am new to LabVIEW.Smiley Sad

Thanks in Advance

Niladri

0 Kudos
Message 9 of 12
(2,894 Views)

Hi Newbee,

 

you should not ask for other hardware but for support in using the hardware you have right now...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 12
(2,891 Views)