LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

increment error

While I was looking into this question, I stumbled upon a bug in the numerical incremental functions.

 

Steps to reproduce:

  1. Drop a normal numerical control
  2. Right click,  Data Entry
  3. Set Maximum to 40, Minimum to -40
  4. Set Increment to 25
  5. Close the options dialog
  6. hit the 'Decrement'
    Value goes to -25
  7. Hit the 'Decrement'
    Values goes to -27.5
  8. Sequentially the value goes down in steps of 2.5 to -40

Why?

 

I consider this a bug.

Seen in LabVIEW 8.6 on Windows

In LabVIEW 8.5 the value is directly set to 10 ( a multiple of 25 from the minimum value) when you leave th eoptions dialog.

Setting the 'Increment' option to 'ignore' allows you to select a value of 0, hitting the decrement button stops at -25

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 1 of 4
(2,924 Views)

Hi TonP,

 

I've just forwarded this error internally. They will probably take a look at it very soon.

 

btw. When you set the "Respons to values outside limits" to Coerce instead of Ignore, it will not allow these 2.5 changes. In that case you can select the values -25, 0 and 25.

 

Best regards,

 

Peter S

Message Edited by Peter S on 10-24-2008 02:44 PM
0 Kudos
Message 2 of 4
(2,899 Views)

Peter S wrote:
...

In that case you can select the values -25, 0 and 25.

 

And after 25? 40 I hope so.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 4
(2,877 Views)

Hi TonP,

 

After 25 it will indeed select the value 40.

 

As told, I reported the issue to R&D and they came back to me with the following message:

 

If the (current value + Increment ) is out of the range, the control will use a (increment/10) as the new increment value. You can "Response to value outside limits" of Increment to be Coerce to avoid the automatically increment adjust.

 

This gives us the same answer as we already spoke about. So the issue is not a bug, but expected behaviour of the LabVIEW environment.

 

I hope this answers your question.

 

Best regards.

Peter S

 

Message 4 of 4
(2,784 Views)