LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help In LabVIEW Mathscript

Hi ,

    This is Sreenivas.I have started working on NI-5640R LabVIEW card.I need to generate some modulations(QPSK,GMSK,OOK and 4-FSK) with Fc 21.4 Mhz. Successfully i   completed all these modulation in MATALB.
    In  labview 8.2,  LabVIEW Mathscript future is there.
Plz tell me how i have to use it.where i  need to write my matlab code in Labview Mathscript.Directly i can copy my m-code into command window or script editor.
plz tell me procedure.

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

Thanking you

with regards,
Sreenivasulu.O
0 Kudos
Message 1 of 5
(3,102 Views)
Mathscipt is NI's version of the Matlab syntax. It is not 100% function-compatible with Matlab, but most of the time it works. To use it, you place a Mathscript structure (Programming -> Structures palette) on the block diagram, click inside it, and type away, or just paste the script in there. Whether or not it will work depends on the functions you're calling. You can find more help in the LabVIEW online help.

If the Matlab script you have uses functions that Mathscript does not support you can use a Matlab structure instead. This will call Matlab, but it requires that Matlab be installed on the computer that has LabVIEW. The Matlab structure is in the Mathematics -> Script & Formula -> Script Nodes -> MATLAB Script Node. This structure works the same way - just paste the script inside the structure.
0 Kudos
Message 2 of 5
(3,084 Views)
Hi Smercurio,
Thanks for your reply.
i ahve matlab and labview in the same system.
I need to generate some modulation.
ok i'll follow wat you told,after tat i need to get modulated signal from card DAC output,
tell me procedure how i can get this using Labviewscript.

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

Thanks & regards,
Sreenivasulu.O
0 Kudos
Message 3 of 5
(3,077 Views)
There is no such thing as "LabVIEWScript". If you mean what do you need to do to control or read from the DAQ card, for that you would use DAQmx. There's lots of examples that ship with LabVIEW on how to do data acquisition, and there's good tutorials available at the NI Learning Center, such as this one.. I would suggest looking at the shipping examples (Help -> Find Examples).
0 Kudos
Message 4 of 5
(3,067 Views)
Hi Sreenivasulu.O,

Smercurio has provided some great information on this! He is right in saying that you have to use NI-DAQmx to acquire/generate data. Here is a link that gives you information on using MathScript to get you started with it. Here is another link that gives you information on transferring information from Matlab and vice versa.

Good luck with your application!


Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(3,057 Views)