LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Throttle body control using 6341

Hi all,

 

I have a LabVIEW program already to control a throttle body. The program was originally written for a different set of national instrument device (cDAQ9178 with internal counter). I need to change the program to use it with USB 6341. I have attached the original code. I am guessing that I have to change the names of the counter (internal?and  the PFI channel to use it with my new NI hardware (USB 6341). 

 

Could anyone suggest the changes that I have to make it work with my new hardware.

 

Many thanks,

Ajith

0 Kudos
Message 1 of 3
(2,565 Views)

Hi AP2013,

 

Thank you for posting to the forums.

 

You are correct in that you will need to reference the new device aliases from within your LabVIEW program.

 

As the USB-6341 has multiple counters and PFI channels, you should be able to make the change to the new device very easily.

 

All you will need to do is select on the counter input drop down list and go to 'Browse'. Here you can then select on ctr0 from under USB-6341. The same can be done for the PFI line used for the Counter Pulse Term attribute of the DAQmx Channel Property Node. 

 

This should then work as you expect as the USB-6341 as 4 counters and internal routing is possible with this device.

 

Here are some links for your perusal:

 

NI USB-6341 X Series Data Acquisition

 

NI 634x Specifications

 

I hope this helps!

 

Kind Regards,

Dom C
0 Kudos
Message 2 of 3
(2,530 Views)

Hello Dom,

 

Many thanks for your reply and all the information. 

 

regards

 

AP

0 Kudos
Message 3 of 3
(2,526 Views)