LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Help abt LabVIEW MathScript

Hi,
i am sreenivasuluI need to generate some modulated(AM,BPSK,QPSK 4-FSK and GMSK) signal.
i successfully completed all these modulation in Matlab.how can use that m.file directly to this labview or any indirect method is there.
tell me how i ahve to use that m files or tell me procedure to generate modulated signal using LabVIEW MathScript.
 actually i am working on LabVIEW 8.2 with ni 5640R(PIC) Hardware card.
after generating this signal i can communicate with this card.if YES tell me procedure.
if possible send me some VIs.

Final my goal is i need to generate some modulated(AM,FM,FSk,BPSK,QPSK Etc) signal with Fc
21.4MHz for providing as a input to other module(RAD-2,Pentaland).

I am using LabVIEW 8.2 and card NI-5640R(PCI based) v 1.1

           Thanking you so much sir.


Thanks & regards,
Sreenivasulu.O

0 Kudos
Message 1 of 27
(10,415 Views)
Hello Sreenivasulu,

The LabVIEW MathScript syntax is similar to The MathWorks, Inc. MATLAB® language syntax.  In LabVIEW MathScript, you generally can execute scripts written in the MATLAB language syntax.  However, the MathScript engine executes the scripts, and the MathScript engine does not support some functions that the MATLAB software supports.

You can find the MathScript node on the Programming >> Structures palette.  If your .m file is a function, place it in your "My Documents\LabVIEW Data" directory.  You mentioned you are using LabVIEW 8.2.  You can change the search path by using the "path" command.  In LabVIEW 8.5, view the LabVIEW help topic "MathScript: Search Paths Options Page" for more information on how to change the default search path.  Now you can call your function from the MathScript node.  If your .m file is a script, you can place it in the same folder location, or you can use the code directly in the MathScript node.  To do the latter, right-click on the MathScript node and select Import.

MATLAB® is a registered trademark of The MathWorks, Inc.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 2 of 27
(10,408 Views)
Hi Sir,
Thanks for your reply.How to import or download data or signal from LabVIEW MathScript to  ni 5640R target.
if suppose i generated AM mdolated signal by using this MathScript,that signal how i have to download it into FPGA Target to get  as DAC output.

please tell me sir procedure to get modulated signal from DAC output.



Thaking you sir


Sreenivasulu.O

0 Kudos
Message 3 of 27
(10,395 Views)
Hello,

I am unfamiliar with the NI target you specified.  However, the procedure is not any different than sending any signal in LabVIEW to a device.  You first need to bring your signal out of the MathScript node.  To do this, right-click on the node and select "Add Output."  Type in the name of your signal variable.  Right-click the output and choose the data type to be the appropriate type.  Then you can wire your signal to the appropriate code to send it to your device.  You could try asking your question in one of the hardware-related forums.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 4 of 27
(10,346 Views)
Hi sir,
Thanks for your infomation.i have one problem sir.
i am unable to change data type what i need.i have to take complex data  give to DAC.(HOST to Target).
hera i am sending that VI please see it and correct me
Thaking you sir


Sreenivasulu.O
0 Kudos
Message 5 of 27
(10,312 Views)
You can change the data type by right clicking the output of the MathScript Node and chosing the desired data type.
 
0 Kudos
Message 6 of 27
(10,276 Views)
Hi sir,
Thanks for your reply.
i need to convert into complex(not matrix complex) type.
i am unable to do that.



Thanking you sir


Sreenivasulu.O
0 Kudos
Message 7 of 27
(10,271 Views)
Hello,

The script you currently have in the MathScript node generates a real output.  If you wish to convert it to complex, you can simply drop the "To Double Precision Complex" conversion bullet located in the Programming >> Numeric >> Conversion palette.

In looking at the second loop in your VI, you don't need to use the "Get Waveform Components" element because MathScript does not currently output a waveform datatype.  Simply use the vector directly.



Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments


Message Edited by GrantM on 03-14-2008 09:14 AM
0 Kudos
Message 8 of 27
(10,263 Views)
Hi sir,
Thanks for your reply,
if you have any VI(using mathscript) for digital modulations like QPSK,FSK,OOK and GMSK please send to me.

thanking you sir

Regards
Sreenivasulu.O

0 Kudos
Message 9 of 27
(10,256 Views)
Hi Grant M,
i tried what sed.again i got one error.here i am attaching that error(error_1.jpg).please check it and correct me.

i generated AM modulated signal using Math script and i am providing as input to  FILL OUTPUT FIFO.


like this only i am planning to generate digital modulation signal like QPSK,GMSK and FSK Etc.

please correct me sir this problem as soon as possible.


Thanking you so much sir


Regards

Sreenivasulu.O
0 Kudos
Message 10 of 27
(10,209 Views)