04-19-2006 10:50 AM
04-21-2006 07:39 AM
Hi
If you have a look at your LabVIEW VI you are actually getting an error (error 1047) I think this is why you are getting different values in LabVIEW than matlab. If you have a look at the KB I have attached I think it will sort out you problem.
Why Do I Get Error 1047 When Trying to Use The MATLAB Script Node in LabVIEW?
http://digital.ni.com/public.nsf/websearch/2B3FF46C8512C4F786256CF30071BE53?OpenDocument
If you are still experiencing difficulties after you have run through the KB solution please let me know
I have also noticed you have posted on another thread with the same issue I have added a link just to tie them together
http://forums.ni.com/ni/board/message?board.id=170&message.id=180014
Regards
Tim
NI AE
04-21-2006 01:05 PM
04-25-2006 05:46 AM
Hi Dedy
I was wondering if you could send me some more points and results for both matlab and LabVIEW. I don’t know how matlab rounds numbers but there could be a difference in the way that matlab and LabVIEW handles umbers. If one handles the numbers as a U32 and the other as a U16 there could be a big difference in rounding depending with what you are doing with the data.
If you could give me some out puts for numbers -10 to 10 with increments of say .1 and -1 to 1 incrementing at 0.01 (basically as much information as you can ) then I can have a look at it. If it looks like an off set then it might just be a setting if it looks like a rounding problem it could be a compatibility issue.
You said that you are getting different values do you which one if any is the right answer?
Regards
Tim
Applications Engineer | National Instruments |