LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use "GPCTR_Change_Parameter" command with PCI-6023E board?

Hi all!!!
I want to use quadrature encoder in my application. But when I try to use the command "GPCTR_Change_Parameter", an error message pops up and said "Invalid Action".
The description in the help file of the command said that it could be used with any DAQ-STC board, which is what I am using right now... (I am using PCI-6023E board)
Please anyone help me.... 😃

Thanks!!!
0 Kudos
Message 1 of 2
(3,038 Views)
Sugus,

In LabWindows/CVI or NI-DAQ with other programming languages, you program the DAQ-STC with GPCTR function calls. In particular, to configure a DAQ-STC counter for up/down counting, use the GPCTR_Change_Parameter function with parameter type set to ND_UP_DOWN and parameter value set to ND_HARDWARE.

Once the DAQ-STC is properly configured and your software program correctly retrieves the count from the counter, you can convert the count into rotation.

I would recommend to take a look at the following page for more detailed information and example programs about DAQ-STC and Quadrature Encoders
http://zone.ni.com/devzone/devzone.nsf/webcategories/75CA12ECD25F39A78625679000743752?opendocument&node=DZ52326_US

Good luck with your application!
0 Kudos
Message 2 of 2
(3,038 Views)