LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing signal connection

Hi,
 
I have a NI-USB 6211 card. I want to know the angular position of my encoders. I made my VI but I have a problem.
I would like to change the default channel signals. By default they are PFI8 and PFI9. I woul like PFI0 and PFI1 to be the signals because PFI9 and PFI9 aren't even existing with my card....
 
Thank you very much,
 
Jack
0 Kudos
Message 1 of 5
(3,232 Views)
Hi Jack,

Are you using LabVIEW to create the program for your application?  Refer to the KnowledgeBase article KB 3DGAJHPS: Selecting PFI Lines Used for Quadrature Encoder Measurements in LabVIEW for details about how to configure the PFI lines used.  


Best Regards

Hani R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,208 Views)

Hi,

Thank you very much, that helps a lot! Yes I am using Labview to create the program.

Just to be sure I understand:

If I am doing this VI program with this task (attachment), it should change my initial pin define in the task (here PFI0 and PFI1) to PFI2 and PFI3 define in the channel property node??

I would also have a basic question...in the third attachment, what's the difference between programA and programB. One use a Channel and the other one a task. I don't understantd the difference between a Task constant and a Channel constant because we define both the same way......

Thank you very very much,

Jack

Download All
0 Kudos
Message 3 of 5
(3,197 Views)
Hi Jack,

If I am doing this VI program with this task (attachment), it should change my initial pin define in the task (here PFI0 and PFI1) to PFI2 and PFI3 define in the channel property node??
-Yes.  If you use the channel property node you can change the default input terminals from PFI0 and PFI1 to PFI2 and PFI3. 

What's the difference between programA and programB?
-As you mentioned, Program A uses a Global Channel constant while Program B uses a Task constant.  A global virtual channel maps configuration information, such as scaling and     input limits, to a specified physical channel.  A task is a collection of one or more virtual channels with timing, triggering, and other properties.  Refer to the KnowledgeBase article KB 2XE9HRIP: Physical Channels, Virtual Channels, and Tasks in NI-DAQmx for more details. 


Best Regards

Hani R.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,177 Views)
Hi,
 
Thank you very much.
 
My problem is resolved. It was saying the pis would be PFI8 and PFI9 wich doesn't exist on my device  but in fact it uses PIF0 and PFI1...it's just an error in the window but he takes the good pins.
 
Thank you,
 
Jack
0 Kudos
Message 5 of 5
(3,169 Views)