From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

precise height control using motor and a 10turn pot

Hi Pallavi:)

 

In the block-diagram, right-click your double. Then select Properties. Then navigate to display format as shown on the picture.. Here you can select how man digits you want after comma.2digits.png

 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 11 of 17
(577 Views)

thanks for replying even..

What you've suggested only changes the display format for that particular indicator but does not round off the number itself. 

Thanks...

Pallavi
0 Kudos
Message 12 of 17
(570 Views)

 


Palchen wrote:

@altenbach : Is there a way to control which local variable gets updated first?


Eliminate at least one of the locals. Writing to the same local from different places, even of you know the order, makes little sense overall. Right?

 

0 Kudos
Message 13 of 17
(566 Views)

 


Palchen wrote:

What you've suggested only changes the display format for that particular indicator but does not round off the number itself. 


 

Computers operate in binary, and a lof ot exact decimal fractions cannot be fully represented in binary (e.g. 0.1).

 

What you could do is multiply by 100, round to the nearest integer, then divide again by 100, for example.

0 Kudos
Message 14 of 17
(564 Views)

Hi Palchen,

 

Here is the vi's in 8.5.

 

Hope it helps.

 

Rgs,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 15 of 17
(557 Views)

thank u all..i'll try out the suggestions and update ..

Thanks...

Pallavi
0 Kudos
Message 16 of 17
(537 Views)

Pallavi,

 

From the numbers you provided I think you will have some difficulty meeting the requirements directly.

 

A Bourns 3540 wirewound 10-turn pot has a resolution of 0.019% or about 2 parts in 10000.  To get 1 mm resolution in 10 m, you need 1 part in 10000.  If the pot has a cermet or conductive plastic element, then you may be OK, because those types have essentially infinite resolution.

 

At 15 seconds to move 1 m it will take 15 ms to move 1 mm.  That means that to control directly you need to make the voltage measurements, do the filtering, make a decision, write the stop command to the motor, and allow the motor to coast to a stop all within 15 ms.  If you are using a desktop operating system, the OS latencies alone could be larger than 15 ms, at least occasionally.  Unless you are using a very high performance motor and driver, the motor will not stop within 15 ms of receiving a command.

 

Please take a look at your overall system and at the specifications to see if you are being realistic.

 

Lynn

Message 17 of 17
(527 Views)