LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wire potentiometer counter

Hi All,

I need to understand how I can implement a counter in labview that increment the count after each movement down to up and up to down of my wire potentiometer. Look the attachments example:

png.png

Can you help me?

thanks

0 Kudos
Message 1 of 5
(717 Views)

Hi Jacob,

 


@JacobRisk wrote:

I need to understand how I can implement a counter in labview that increment the count after each movement down to up and up to down of my wire potentiometer. Look the attachments example:


What is Position 1 to 4?

 


@JacobRisk wrote:

increment the count after each movement down to up and up to down of my wire potentiometer.


IF "movement down to up" THEN "increment count1"

IF "movement up to down" THEN "increment count2"

 

  • IF-THEN-ELSE is a case structure in LabVIEW.
  • Increment is a "+1" function.
  • Data (like count1/count2) is stored in shift registers.

See how far you get.

You can also attach the VI you already created so we could suggest improvements!

Best regards,
GerdW


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

A wire potentiometer is an analog device with an infinite number of settings.

 

  • Who operates it?
  • How is it connected to the Analog input of your DAQ device?
  • What defines a "movement"?
    • Any change in one or the other direction (above thermal noise)?
    • A full turn?
    • Hitting one of the limits?

 

0 Kudos
Message 3 of 5
(667 Views)

@JacobRisk wrote:

Hi All,

I need to understand how I can implement a counter in labview that increment the count after each movement down to up and up to down of my wire potentiometer. Look the attachments example:

png.png

Can you help me?

thanks


Hmmm, we call that a "string pot" and use one to measure displacement on our seismic table.

 

If I was to do what I think you are trying to do a counter would not be what I would use.

 

Since a string pot is a potentiometer you need to measure its resistance or apply a voltage across it and measure the voltage at the "wiper".

 

The center (resting position) would be your "zero". Increasing resistance or voltage drop would mean it's moving on one direction, decreasing resistance or voltage drop would mean it's moving the other direction.

 

With the proper scaling you should even be able to determine the amount of displacement.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 5
(653 Views)

here show I interpreted the question

I used levels and hysteresis to detect the not clear up->down ..

 

po.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 5
(620 Views)