Jump to content

MathScript bug?


Recommended Posts

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

Link to comment

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

Link to comment

CITATION(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. ;)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.