LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Bug reporting guidelines:

See here for the proper LabVIEW bug reporting procedure.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> MathScript bug?, Mathscript
thomas2609
post Mar 13 2007, 10:26 AM
Post #1


Active
*

Member
Posts: 14
Joined: 10-August 06
From: Innsbruck
Member No.: 5825
Using LabVIEW Since:2006
LV:8.0.1 ,7.1 ,.
Austria Nothing Selected Nothing Selected


hello,
i just wonder why only one of these 2 Math scripts workes.

1.) x= 0:0.1:1 does not work in LabVIEW 8.0 but In MATLAB
2.) x= 0:1e-1:1 workes in LabVIEW 8.0 and in MATLAB

ad 1 error message "Error in function range at line 1. You cannot specify a step size of zero for a range."

aha, well 0.1 is not zero in my eyes. can anyone tell me whey my LabVIEW 8.0 does that?
my guess whould be that it is a bug. :-)

cheers thomas


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Mar 13 2007, 10:26 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
JFM
post Mar 13 2007, 11:25 AM
Post #2


Extremely Active
****

Member
Posts: 369
Joined: 24-August 06
Member No.: 5958
Using LabVIEW Since:1995
LV:8.5 ,8.2.1 ,7.1.1
Sweden Nothing Selected Nothing Selected


QUOTE (thomas2609 @ Mar 13 2007, 11:26 AM) *
hello,
i just wonder why only one of these 2 Math scripts workes.

1.) x= 0:0.1:1 does not work in LabVIEW 8.0 but In MATLAB
2.) x= 0:1e-1:1 workes in LabVIEW 8.0 and in MATLAB

ad 1 error message "Error in function range at line 1. You cannot specify a step size of zero for a range."

aha, well 0.1 is not zero in my eyes. can anyone tell me whey my LabVIEW 8.0 does that?
my guess whould be that it is a bug. :-)

cheers thomas

Have you tried with comma (,) instead of period (.) as decimal character?

/J

--------------------
Wired but not weird...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Antoine Châlons
post Mar 13 2007, 12:34 PM
Post #3


Extremely Active
****

Premium Member
Posts: 323
Joined: 8-January 07
From: Geneva
Member No.: 7452
Using LabVIEW Since:1999
LV:8.5.1 ,7.1.1 ,5.1
France Switzerland Spain My Gallery


QUOTE (thomas2609 @ Mar 13 2007, 11:26 AM) *
hello,
i just wonder why only one of these 2 Math scripts workes.

1.) x= 0:0.1:1 does not work in LabVIEW 8.0 but In MATLAB
2.) x= 0:1e-1:1 workes in LabVIEW 8.0 and in MATLAB

ad 1 error message "Error in function range at line 1. You cannot specify a step size of zero for a range."

aha, well 0.1 is not zero in my eyes. can anyone tell me whey my LabVIEW 8.0 does that?
my guess whould be that it is a bug. :-)

cheers thomas




I think JFM is right...

x= 0:0.1:1 does work om my LabVIEW 8.0.1

Go to Tools >> Options >> Front Panel >> on the second line you can enable/disable "use localized decimal separator". the default setting depends on your Windows settings. wink.gif
Attached thumbnail(s)
Attached Image
 

--------------------
____________________________________________________________________________________

It's better to stay out of the rat race because if you win, you're still a rat


_____________________________________________________________________________________


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
thomas2609
post Mar 14 2007, 02:03 PM
Post #4


Active
*

Member
Posts: 14
Joined: 10-August 06
From: Innsbruck
Member No.: 5825
Using LabVIEW Since:2006
LV:8.0.1 ,7.1 ,.
Austria Nothing Selected Nothing Selected


"use localized decimal separator" worked, after restarting labview.


thx for your help thomas

This post has been edited by thomas2609: Mar 14 2007, 02:07 PM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 02:42 AM