thomas2609 Posted March 14, 2007 Report Share Posted March 14, 2007 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 Quote Link to comment
Mellroth Posted March 14, 2007 Report Share Posted March 14, 2007 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 Quote Link to comment
LAVA 1.0 Content Posted March 14, 2007 Report Share Posted March 14, 2007 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. Quote Link to comment
thomas2609 Posted March 15, 2007 Author Report Share Posted March 15, 2007 "use localized decimal separator" worked, after restarting labview. thx for your help thomas Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.