NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
9885110417
Posts: 7
0 Kudos

mathscript using .m file

Hello all..

Iam trying to implement an .m file in math script node.

I have written an .m code of extended kalman filter in math script which has two inputs(sensor's data) and two outputs.

My question is how give my sensor's data as inputs to the script? Iam using serial communication for accessing the sensor's data.

 

 

thanks in advance..!

Active Participant
Jeffrey_P
Posts: 380

Re: mathscript using .m file

 9885110417,

 

Once you have the inputs created on the left border of the node, "wire" your data in from the LabVIEW block diagram:

 

Figure3.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I hope this helps.

Jeffrey P.
LabVIEW Product Management
National Instruments
Member
9885110417
Posts: 7
0 Kudos

Re: mathscript using .m file

Hi you have completely mistaken me.

Iam attaching two VIs which i need to relate.

One vi is for accessing sensor's data and another one is for filtering.

Should i use the 2nd vi as sub vi for the 1st vi?

thanks in advance..!

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page