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

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

Similar Messages

  • 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

    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
    Attachments:
    ToComplex.png ‏4 KB

  • User defined function error in Labview mathscript

     I m Labview 2011 user. I had a problem when i use a user defined func in mathscript.
     I have used it well, but it doent work suddenly. It looks like below.
     function name turned to grey color suddenly. Plz help me.

    The last time I dealt with this, it was very confusing.  If I remember correctly, there were 3 different places that I had to set the correct search path for the .m file:
    1) Tools>Options>MathScript
    2) In the Project, right-click on My Computer and select Properties>MathScript
    3) Tools>MathScript Window>File>LabVIEW MathScript Properties
    The documentation seems to indicate that at least 1 and 2 should be the same and 3 only applies to that window, but like I said, last time I did this I remember having to change all three.
    Good luck!
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • What is LabVIEW MathScript​?

    The subject of this forum, LabVIEW MathScript, is a new
    feature for LabVIEW 8 that adds math-oriented, textual programming to LabVIEW.
    MathScript joins graphical dataflow programming as another means to define the
    custom software you develop using LabVIEW. Working with LabVIEW, you can choose
    a textual approach, a graphical approach, or a combination of the two. You can
    choose the most effective syntax for technical computing, whether you are
    developing algorithms, exploring signal processing concepts, or analyzing
    results. The significance of LabVIEW and MathScript lies in this “best of both
    worlds” approach that it facilitates.
    At the heart of LabVIEW MathScript is a high-level text-based
    programming language with syntax and functionality that abstracts the
    complexity of tasks related to signal processing, analysis, and math. MathScript
    includes more than 500 built-in functions for such work so you can define your
    own new user-defined functions. MathScript is generally compatible with m-file
    script syntax, the syntax widely used by alternative technical computing
    software such as The MathWorks, Inc. MATLAB® software, Comsol, Inc.
    COMSOL ScriptTM software and others.
    Such compatibility means that you can work with many previously developed m-file
    scripts such as those available in engineering textbooks or on web sites that
    distribute open-source m-file scripts.
    Please visit http://ni.com/mathscript for more
    information about LabVIEW MathScript including:
    Inside
    MathScript
    A white paper with a more extensive overview
    Function
    Lists
    Complete and abridged lists of built-in LabVIEW MathScript functions
    Examples
    Links to online examples for LabVIEW MathScript
    Much more…
    MATLAB® is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.
    Sam Shearman

    Hello,
    Thank you very much for your idea. It is just what I was looking for. I have used the polynomial evaluation.
    My origin polynomial is an acquired signal V(t) and I get a new signal G(t) that takes value each second. I would like
    a more continues signal. For example it changes each 0.2 second. Have I to modify something in the polynomial evaluation.vi?
    Thank you very much for your time. Sincerely,
    John
    Attachments:
    draw.jpg ‏961 KB
    V(t).jpg ‏600 KB
    G(t).jpg ‏600 KB

  • In-browser LabVIEW MathScript Online Evaluation is now in beta...

    MathScript Online Evaluation Beta is Live!
    http://www.ni.com/mathscript >> Test Drive LabVIEW MathScript Today
    National Instruments LabVIEW MathScript adds math-oriented, textual programming to NI LabVIEW. You can use the MathScript Online Evaluation to test your scripts in MathScript before you purchase or download the LabVIEW development system.
    Free online utility generally compatible with widely used m-file script syntax 
    Easy-to-use interactive script prototyping environment 
    Streamlined algorithm development for Math, Signal Processing, and Control Design
    http://www.ni.com/mathscript for more information

    I already owned 10 copies of MathScript as part of the NI Developer Suite.  All ten Serial Numbers were, and are now, currently on SSP.
    MathScript was taken away from me as part of the LabVIEW 2009 Upgrade.
    Everybody that owns Developer Suite and MathScript and has a current SSP has had their MathScript taken away from them as part of LavVIEW 2009 upgrade.
    They will need to repurchase MathScript again.
    Shame on you NI.  This is appalling and horrific. 

  • LabVIEW MathScript - loadlibrary

    in Matlab, the below commands are able to produce neat results to display functions from NI-488.DLL. However in LabVIEW MathScript, it has problems.
    >> loadlibrary('ni488.dll', 'ni488.h')
    >> libfunctions('ni488')
    Functions in library ni488:
    AllSpoll        SendDataBytes   ibcac           ibloc           ibsad          
    DevClear        SendIFC         ibclr           iblock          ibsic          
    DevClearList    SendLLO         ibcmd           iblockxA        ibsre          
    EnableLocal     SendList        ibcmda          iblockxW        ibstop         
    EnableRemote    SendSetup       ibconfig        ibnotify        ibtmo          
    FindLstn        SetRWLS         ibdev           ibonl           ibtrg          
    FindRQS         TestSRQ         ibdiag          ibpad           ibunlock       
    PPoll           TestSys         ibdma           ibpct           ibunlockx      
    PPollConfig     ThreadIbcnt     ibeos           ibpoke          ibwait         
    PPollUnconfig   ThreadIbcntl    ibeot           ibppc           ibwrt          
    PassControl     ThreadIberr     ibexpert        ibrd            ibwrta         
    RcvRespMsg      ThreadIbsta     ibfindA         ibrda           ibwrtfA        
    ReadStatusByte  Trigger         ibfindW         ibrdfA          ibwrtfW        
    Receive         TriggerList     ibgts           ibrdfW         
    ReceiveSetup    WaitSRQ         ibist           ibrpp          
    ResetSys        ibask           iblck           ibrsc          
    Send            ibbnaA          iblines         ibrsp          
    SendCmds        ibbnaW          ibln            ibrsv          
    >> libfunctions ni488 -full
    Functions in library ni488:
    [int16Ptr, voidPtr] AllSpoll(int32, int16Ptr, voidPtr)
    DevClear(int32, int16)
    int16Ptr DevClearList(int32, int16Ptr)
    int16Ptr EnableLocal(int32, int16Ptr)
    int16Ptr EnableRemote(int32, int16Ptr)
    [int16Ptr, int16Ptr] FindLstn(int32, int16Ptr, int16Ptr, int32)
    [int16Ptr, voidPtr] FindRQS(int32, int16Ptr, voidPtr)
    voidPtr PPoll(int32, voidPtr)
    PPollConfig(int32, int16, int32, int32)
    int16Ptr PPollUnconfig(int32, int16Ptr)
    PassControl(int32, int16)
    voidPtr RcvRespMsg(int32, voidPtr, int32, int32)
    voidPtr ReadStatusByte(int32, int16, voidPtr)
    voidPtr Receive(int32, int16, voidPtr, int32, int32)
    ReceiveSetup(int32, int16)
    int16Ptr ResetSys(int32, int16Ptr)
    voidPtr Send(int32, int16, voidPtr, int32, int32)
    voidPtr SendCmds(int32, voidPtr, int32)
    voidPtr SendDataBytes(int32, voidPtr, int32, int32)
    SendIFC(int32)
    SendLLO(int32)
    [int16Ptr, voidPtr] SendList(int32, int16Ptr, voidPtr, int32, int32)
    int16Ptr SendSetup(int32, int16Ptr)
    int16Ptr SetRWLS(int32, int16Ptr)
    voidPtr TestSRQ(int32, voidPtr)
    [int16Ptr, voidPtr] TestSys(int32, int16Ptr, voidPtr)
    int32 ThreadIbcnt
    int32 ThreadIbcntl
    int32 ThreadIberr
    int32 ThreadIbsta
    Trigger(int32, int16)
    int16Ptr TriggerList(int32, int16Ptr)
    voidPtr WaitSRQ(int32, voidPtr)
    [int32, voidPtr] ibask(int32, int32, voidPtr)
    [int32, voidPtr] ibbnaA(int32, voidPtr)
    [int32, voidPtr] ibbnaW(int32, voidPtr)
    int32 ibcac(int32, int32)
    int32 ibclr(int32)
    [int32, voidPtr] ibcmd(int32, voidPtr, int32)
    [int32, voidPtr] ibcmda(int32, voidPtr, int32)
    int32 ibconfig(int32, int32, int32)
    int32 ibdev(int32, int32, int32, int32, int32, int32)
    [int32, voidPtr] ibdiag(int32, voidPtr, int32)
    int32 ibdma(int32, int32)
    int32 ibeos(int32, int32)
    int32 ibeot(int32, int32)
    [int32, voidPtr, voidPtr] ibexpert(int32, int32, voidPtr, voidPtr)
    [int32, voidPtr] ibfindA(voidPtr)
    [int32, voidPtr] ibfindW(voidPtr)
    int32 ibgts(int32, int32)
    int32 ibist(int32, int32)
    [int32, voidPtr] iblck(int32, int32, uint32, voidPtr)
    [int32, voidPtr] iblines(int32, voidPtr)
    [int32, voidPtr] ibln(int32, int32, int32, voidPtr)
    int32 ibloc(int32)
    int32 iblock(int32)
    [int32, voidPtr] iblockxA(int32, int32, voidPtr)
    [int32, voidPtr] iblockxW(int32, int32, voidPtr)
    [int32, voidPtr, voidPtr] ibnotify(int32, int32, voidPtr, voidPtr)
    int32 ibonl(int32, int32)
    int32 ibpad(int32, int32)
    int32 ibpct(int32)
    int32 ibpoke(int32, int32, int32)
    int32 ibppc(int32, int32)
    [int32, voidPtr] ibrd(int32, voidPtr, int32)
    [int32, voidPtr] ibrda(int32, voidPtr, int32)
    [int32, voidPtr] ibrdfA(int32, voidPtr)
    [int32, voidPtr] ibrdfW(int32, voidPtr)
    [int32, voidPtr] ibrpp(int32, voidPtr)
    int32 ibrsc(int32, int32)
    [int32, voidPtr] ibrsp(int32, voidPtr)
    int32 ibrsv(int32, int32)
    int32 ibsad(int32, int32)
    int32 ibsic(int32)
    int32 ibsre(int32, int32)
    int32 ibstop(int32)
    int32 ibtmo(int32, int32)
    int32 ibtrg(int32)
    int32 ibunlock(int32)
    int32 ibunlockx(int32)
    int32 ibwait(int32, int32)
    [int32, voidPtr] ibwrt(int32, voidPtr, int32)
    [int32, voidPtr] ibwrta(int32, voidPtr, int32)
    [int32, voidPtr] ibwrtfA(int32, voidPtr)
    [int32, voidPtr] ibwrtfW(int32, voidPtr)
    %% below script written for MathScript, but it gives some errors. why?
    %% take note ni488.dll and ni488.h files must be in the working directory. I attached both files here.
    if libisloaded('ni488.dll')
    unloadlibrary('ni488.dll')
    end
    loadlibrary('ni488.dll', 'ni488.h')
    libfunctionsview('ni488.dll')

    Hola;
    La versión de LabVIEW 64 bits no tiene este módulo, de hecho es una versión limitada únicamente a ciertas herramientas. Te recomiendo que descargues e instales la versión de 32 bits (aunque tu máquina esté corriendo en 64).
    Yo estoy corriendo win 7 64 bits con LabVIEW 2013 de 32 y funciona a la perfección.
    Puedes descargar la herramienta desde aquí debajo de LabVIEW 2013 Toolkits and Modules
    Exito en tu aplicación

  • Can LabVIEW Mathscript be used with Speedy 33?

    I am having SPEEDY 33. Whether I can program Mathscript functions using LabVIEW 8.6 or 2009? Or any solution to include Mathscript in SPEEDY 33?

    Hello,
    Unfortunately, at this time, LabVIEW MathScript is only supported on the desktop platform.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • Help Using Labview to control Kikusui power supply with a PIA4850 controller

    HI I need some help using Labview to control 4 Kikusui power supplies. We have a PIA4850 Kikusui power supply controller. I can use the visa test panel and see the PIA4850 but can see any of the power supplies. I have very limited use of Labview and only wrote a couple programs using GPIB. The PIA4850 is a USB controller and can control up to 32 PS. I can get it to work with a Excel demo software that came with the controllers so I know that it is working. Any help will be appreciated. I am using LabView 8.2 and have updated to the Ni-DAQ 9.0. I have a program that I need to incorporate the PIA4850 into once I figure out how to operate it. Thanks in advance.

    HI and thanks for the help. I did get one power supply to work but have another problem. I need to control 4 power supplies at the same time and can only operate the one that is addressed N5!C1. If I set the other to N6!C1 and so on I get an error stating
     “Error -1074135008 occurred at ki4800_2 Configure Voltage Level.vi Possible reason(s):IVI Error in the method "get_Item" in the component "Kikusui4800". E_IVI_UNKNOWN_CHANNEL_NAME: Unknown channel name (N6!C1)”
      I am assuming that I should be able to change the node number and that will change the supply that I need to use. Everything works great if I use N5!C1 I can change any of the supplies to address 5 and can control it with no problem. I can even have multiple supplies with the same address N5!C1 (don’t think I should do that) and change them all at once. I need independent control of each supply.
      I am in a pinch here and need to figure it out but could use some help. Any ideas will be greatly appreciated.
      Thanks
    GBlair
    Attachments:
    KIKUSUI PS.llb ‏179 KB
    Kikusui Ps Controller.JPG ‏63 KB

  • Can Labview Mathscript be use with speedy-33?

    i had Labview version 7.1, 7.1 embedded, 8.0 and 8.2 but it seem like i cant use mathscript on speedy-33.

    Hello,
    Unfortunately, at this time, LabVIEW MathScript is only supported on the desktop platform.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • Mathematica output formula to labview mathscript

    I've been working on developing general error propagation equations based upon empirical equations in mathematica, and the outputs are extremely long.  Instead of sitting and copying each line of the output to labview mathscript, is there a quicker way to copy this over?

    You can save all the equations to an m-file and then import the whole file.
    Jarrod S.
    National Instruments

  • How to build FM radio receiver on PXI 5600 and PXI 5142 with help of labview

    How to build FM radio receiver on PXI 5600 and PXI 5142 with help of labview?
    PLZ TELL ME!
    Solved!
    Go to Solution.

    Dude,
    Your way of asking questions sucks!
    - Do not use such fonts!
    - Try to find things out yourself first (apparently GovBob was able to find info, so could you)
    - Have you asked GovBob if he likes it that you mail him for more questions?
    You ask for a complete solution on a project YOU have to do. (you dont learn of it if you dont try it yourself first)
    Hopefully you will ask questions in a less DEMANDING way next time.
    Good luck with your project

  • Help with LabView and Java

    Hi any help would be greatly appreciated: I have the following JAVA code:
    //File: Hello.java
    class Hello {
     public native void Steve();
     static {
      System.loadLibrary("steve");
     public static void main(String[] args) {
      Hello h = new Hello();
      h.Steve();
    It finds the loadLibrary fine, but I get the following error message:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Steve
    at Hello.Steve(Native Method)
    at Hello.main(Hello.java:10)

    Okay......
    Where does Labview fit into this question?

  • Help in LabVIEW +ni 5640R

    Hi,
    I am Sreenivasulu.
    I have started working on NI-5640R LabVIEW card.I am able to do simulations using
    labview8.2. But I am unable to interact with NI-5640R to get the
    output through output ports.I studied the manual given by NI. But I am confused fully
    with the procedure and i did not understand.I tried the example projects ni5640R,but I
    failed.
    So please tell me the procedure to be followed, how the ni5640R card ADC and DAC
    working(how to give I/P to ADC and how to get the O/P from DAC),and how to interface
    host(my PC)and Target(ni5640R) using VIs.
    Please tell me that how the signal flows(inter connection between)through the parts of
    VI(both in HOST and FPGA modules).
    Final my goal is i need to generate modulated(AM,FM,FSk,BPSK,QPSK Etc) signal with Fc
    21.4MHz for providing as a input to other module(RAD-2,Pentaland).
    plz tell me  can i get this by using  LabVIEWmathscript or modulation tool kit Etc.
    I am using LabVIEW 8.2 and card NI-5640R(PCI based) v 1.1
               Thanking you so much sir.
    Thanks & regards,
    Sreenivasulu.O

    Hi Sreenivasulu:
    The example of the Getting Started Guide (manual), that probably you made has an updated version from April 2007 ( http://www.ni.com/pdf/manuals/371621b.pdf ).  This example is only designed to acquire a signal and visualize it, but it doesn't generate any signal through the output ports (read this very carefully cuz this are the basics which have to be totally understood).  You can try the Input Output example, which acquires and generates two independent signals.  I think the generated signal is a QAM which is totally unrelated to the input signal. You can also try the Frequency Translation or Sine Generation example.  Put special attention to the Local and DMA FIFOS, which transfer data between input and output (at FPGA level) and between FPGA and HOST respectively.
    I also recommend a lot reading in this forum all the posts related with the probelms that other people had, and the possible solutions tha the comrades recommend.  Most of the time are common problems between 5640r users.  Good comprehension of the theory behind ADCs, DACs and FIFOS is also recommendable. Also there are some cool tutorials an videos in the NI's FPGA website, try them to understand the concepts.
    OK, I'll try to explain how the dataflow works (as i have understood)
    1) Analog data comes through the input and is converted by the ADC.
    2) Digital data can be:
    Manipulated at FPGA level: Once manipulated, the digital data is transported to the DAC (with the Local FIFO) .  The DAC converts the binary data to an analog signal, which then can be read throug the AO port
    Transmited to the host to be manipulated or seen in the HOST (with the DMA FIFO
    I hope this helps you
    Cheers!

  • Help for LabVIEW.

    Project to pilote ADC-12 form picotech:
    We are 2 students, and we 've a job with LabVIEW 5.0.
    We have an pico ADC-12 digital converter. And We should realise an driver
    for it with LabVIEW. We need some HELP how to create sub driver?
    Thanks for all

    You need to identify what operations you want the driver to perform (i.e.
    set the gain, set the triggering and read the current value) and decide
    whether you want to implement this as a single driver or if you want a
    sub-VI for each task. You then need to look in the manual and find out
    exactly what you want to send to the instrument and receive from it in order
    to do this- what I tend to do initially is write a "shell" so I can type
    things in from the manual and see the response, to make sure I understand
    it. Once you know what to send and receive, then you write simple bits of
    code to carry out each function.
    This is obviously vague; I don't know what the instrument is or how it
    connects. It sounds to me like it's a card, in which case I'd have thought
    drivers wo
    uld already be supplied.
    Matchak wrote in message
    news:[email protected]..
    >
    > Project to pilote ADC-12 form picotech:
    >
    > We are 2 students, and we 've a job with LabVIEW 5.0.
    > We have an pico ADC-12 digital converter. And We should realise an driver
    > for it with LabVIEW. We need some HELP how to create sub driver?
    >
    > Thanks for all

  • Need help writing Labview Program!!!!!

    I have a labview project that needs to be finished. I was not the original creator of the program and the guy who created no longer is involved with the project and I am left to finish it. Could you make the final adjustment so I can turn this into my professor and get the final grade. Thanks! Willing to pay! Negeotiable price!!!!!!!!

    Need help completing assignment! Could anyone assist me in this project!
    Attachments:
    dial tone detection.zip ‏1253 KB

Maybe you are looking for