Polynomial implemented in LabView

Gents,
I have an third order polynomial (calculated from an function of an item):
y = ax^3 + bx^2 + cx + d, where a, b, c, d are well-known constants.
x = ?
The parameter y is connected to LabView I/O port and it is measured. I need to calculate value of x for each time-step.
I know that I will get three solutions for each calculation. Does anybodu know how it can be implemented in the LabView?
eks:
y = 5*x^3 + 7*x^2 + 3*x + 2, where a=5, b=7, c=3, d=2
x = ?
Regards
Hariss

Hi Hariss
I'm not sure, but this might be a way. It's just an idea so you have to check if it works for you.
Thomas
Using LV8.0
Don't be afraid to rate a good answer...
Attachments:
Solve.vi ‏45 KB

Similar Messages

  • I need block diagrams for audio processing effects such as echo,flanger,vibrato,chorus for implementing in labview?

    i need block diagrams for audio processing effects such as echo,flanger,vibrato,chorus  for implementing in labview? pls i need it very quickly........

    Hi komalamani,
    i need it very quickly...
    So you better start coding soon!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Control implementation in labview

    Dear Sir,
    I am a novice in Labview. I wish to implement a feedback controller on labview. I dont have a Control Design and simulation module. Can i implement the controller with this module.
    The characteristic of controller is  like a first order low pass filter.
    Could you direct me some examples where control implementation is done on pure labview.
    Regards
    Sachin

    Sachindian wrote:
    I am a Phd student. I dont have funds to to get the control system module for myself. Even if i try using it i will need it for further experiments in time to come which is not feasible with trial version. I need to do it on labview.
    Dear Sachin,
    There is nothing that you cannot do with LabVIEW (just to boost your moral ).... Now if you choose not to use any module/toolkit, you need to develop a model using primitive and other library functions available within LabVIEW... And you already know that... Now what I don't know is, what exactly is the issue.
    Sachindian wrote:
    Its a first order controller. b/(s+a).
    Just convert it in TIME DOMAIN and code for that equivalent model.
    For you example, I've attached an example, which is equivalent of 'Only P' controller (in context to PID controller).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Example of P Controller [LV 2009].vi ‏16 KB

  • How do you on board loop the memory using pci 6534 implementi​ng LabVIEW. Which VI do you use?

    How do you on board loop the memory using pci 6534 implementing LabVIEW. Which VI do you use?

    Hello,
    You will need to set the Pattern Generation Loop Enable attribute to ON in the DIO Parameter VI. This is
    specified on page 2-22 of the 653x User Manual (Jan 2001)
    Hope this helps,
    LA

  • TLS1.2 implementation using Labview

    Dear all.
    Recently, I has been developing a server in Labview for receiving the GPRS packet data from a GPRS modem.
    The packet data is SSL/TLS1.2 encypted.
    Since the Labview has no native support for SSL/TLS, is there anyway to implement the SSL/TLS 1.2 decryption at my server using Labview?
    Or plugging the SSL/TLS 1.2 implemention from other programming language into my Labview codes?
    Kindly need expert to advise.
    Thanks.

    Any advise? 

  • Looking for VCDIFF (RFC 3284) algorithm implemented in LabVIEW

    Hello forum,
    I am looking to see if anyone knows of a publicly available implementation of the VCDIFF binary differencing algorithm in native LabVIEW (G) ? 
    Here is a link to a paper on the RFC 3284 standard for those interested: http://tools.ietf.org/html/rfc3284
    There are a number of open source implementations in C/C++, but I would like to locate one in LabVIEW if possible.
    Regards!

    Implementing binary algorithmes in LabVIEW and especially compression algorithmes, while possibe is not a very smart idea. Aside from possible perfomance problems when you start to shuffle around on bit level, there is also the issue about how to proof the correctness of your implementation. Those open source C/C++ solutions have been used, peer reviewed and what else many times and all that has uncovered various flaws and bugs during the process.There is only a very small adience that will go and use your LabVIEW algorithme and even a much smaller one who is able to do any significant form of peer review.
    So all in all you are likely to end up with a somewhat to almost working implementation that nobody is going to use, for the gain of bragging that you did it in LabVIEW.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • SPI implementation in LabVIEW only

    Hi Folk,
    A couple years ago I used a LabVIEW program that implemented SPI using nothing but a comm or parallel port.
    It was from a customer and was custom code that I did not have access to.
    Does anyone have an example of a LabVIEW only SPI solution.
    Thanks,
    -SS

    Hi Simon,
    What would you be connecting to the Serial/Parallel port?  In the following article: Understanding the SPI Bus with NI LabVIEW it talks about different options for communicating with SPI in LabVIEW.
    The following link has also been helpful for me when generating SPI Digital Waveforms SPI Digital Waveform Reference Library
    Do you remember needing any specific drivers to run that previous code?
    Scott A
    SSP Product Manager
    National Instruments

  • Is matlab's fminsearch implemented in Labview?

    We are trying to implement Matlab's "fminsearch" in Labview. Has anyone else tried to do this?
    Cheers
    stu

    Hello,
    Introduced in LabVIEW 8.0, MathScript provides a general level of compatability with The MathWorks, Inc. MATLAB® software.  You may find the MathScript implementation of the function fminsearch adequate for your needs.  To try it, launch MathScript from LabVIEW by going to Tools >> MathScript Window.  For additional information about LabVIEW MathScript, check out the MathScript Forum.
    MATLAB® is a registered trademark of The MathWorks, Inc.
    Grant M.
    Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments

  • Görtzel filter implementation in LabVIEW?

    Hi.
    I am looking for a simple VI with an implementation of a Görtzel algorithm. Since I am not a signal processing wiz. I would like to know if someone in here have a VI in the desk drawer with a just this implementation?
    Thanks.
    Best regards
    Jens Christian Andersen.
    CLA, CTA

    Looks like it is part of the MathScript RT Module - link.  It also used to be in the DSP Module.
    If you are using either of those it is already there, otherwise the help for for DSP module gives the algorithm.
    Regards,
    Peter D

  • Neural net implementation in LabVIEW

        I've got a project coming up that may be a good candidate for a neural network algorithm.  I've done a search on neural net applications and examples in LabVIEW but came up with very little.  The Dev Zone has one white paper on it, but without any examples and few specifics.  Lava had a reference to a book, but not any actual LabVIEW code.  I'd be surprised if no one has done this before.  Does anyone know of some good examples?
    Thanks,
       Dave T.
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    Hi Dave,
    The DevZone example here is for version 4.1. Attached is the same example for 8.2
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer
    Attachments:
    neural_net_learner.zip ‏143 KB

  • I2C implementation using Labview.

    Hello ,
    I am trying to communicate to my IC using Labview. The board on which the IC is uses I2C interface. currently it is connected to the PC using a parallel port dongle and there is GUI which does this, I want to make a I2C interface so that I can communicate to the IC directly using Labview. Is it possible that I use the parallel port to pass the signal directly to the IC, If yes how do i do that? Or is there any other way I can go about this issue.
    Any help is appreciated.
    Thanks
    RKD

    The kind of "bit-banging" you need is defined in the Philips I2C spec. You can get a basic overview of the actual protocol from Wikipedia, or you can get the full spec from the Philips NXP site (at the very bottom there's a link to the PDF). Since the GUI developed in-house you should be able to see the code to see what it does. It should basically just be toggling two of the parallel port lines based on the I2C protocol.
    Usually when you buy an I2C interface you get drivers for it that you can use from LabVIEW. Some companies provide LabVIEW drivers directly. Examples: Cal-Bay Systems (pretty popular as it's parallel port), Total Phase, Telos, MCC (Micro Computer Control Corporation) and NI. I've used the Cal-Bay interface and the Total Phase Aardvark so I know they work. The Cal-Bay approach is to basically do bit-banging of the parallel port so it's dependent on software timing. There's an open source interface that was designed for Linux, though there's a port of the library to Windows. Have no idea whether it will work with LabVIEW. As for other sources, you can take a look at the code that was posted in reply #4 of this post. The device being talked to is a SPI device, but the premise is similar. It's using the parallel port to toggle lines to generate the protocol. This 2-year old post refers to an interface with LabVIEW drivers that user KC created. Don't know if it's still available.

  • LABVIEW HMAC-SHA1 implementation

    Hello all,
    We have need of an HMAC-SHA1 implementation in Labview. Can anyone help?
    Thanks,
    Josh

    Hello Josh,
    We have a Community example that uses HMAC-SHA1 that might help you get started.  
    SHA-1 Cryptographic Hash Function
    Searching the Community Code Exchange might be a good place to find additional code that has implemented HMAC-SHA1 in LabVIEW.
    Regards,
    M. Whitaker
    ni.com/support

  • How to understand seed and generator's polynomial in modulation toolkit

    I'm new in modulation toolkit. I wonder, e.g., for MT Generate
    BitStream.vi, why I did not see the format for PN sequence generator's
    polynomial? Is it default to something?
    On the other hand, seed means the initial state of PN generator shift
    register. why does it default to 0xD6BF7DF2? Can I set to 0 or 1?
    Thanks.

    Hello keiylh,
    I am assuming that you are referring to MT Generate Bits.vi. You can use any number than zero to specify seed. If you give zero as seed, the generator will be continuously generating zeros (This is referred to as degenration).
    If you open the block diagram for MT Generate Bits.vi, you will find "mod_Generate Bits PN Sequence.vi". This VI is creating the pseudo random bit sequence.
    The subVI "mod_GF2 Primative Poly LUT.vi" stores the polynomial co-efficients of a PN sequence in an array.
    Let me explain:
    1) If you specify PN sequence as 9, from mod_GF2 Primative Poly LUT.vi's array, we will get the 9th index which is 10001. This is XORed with the sequence in the while loop
    2) 10001 corresponds to polynomial, 1* X0 (corresponds to LSB)+0* X1+0* X2+0* X3+1* X4 (where XN --- X power of N)  which is X0+X4.This is implemented  in LabVIEW using XOR's.
    Please let me know if this helps.
    Kalyan
    Kalyanramu Vemishetty
    Automated Test Systems Engineer
    National Instruments

  • Activex question in labview

    Hello,
    I am trying to controll an 8753ES with the agilent intulink through labview using activex.  I have read about activex in labview, and and help file for intulink, which says:
    In order to use the Agilent IntuiLink VNA Automation Server, a Visual Basic program must reference two servers.  Under the Visual Basic Project | References… menu item, include the following two references:
    · BLXL Servers:  Check the box for  Agilent IntuLink Servers Common Interfaces.  As the description suggests, this library contains definitions of common interfaces.  In particular, this library defines some enumerated types, used by Agilent IntuiLink Automation Servers.
    · AgtServer8714:  Check the box for Agilent VNA Network Analyzer Automation Server.  This library contains definitions specific to the supported network analyzer products.
    Object Hierarchy
    AgtServer8714 Object
    Provides methods to obtain data, obtain graphics, save and restore calibration and state, and to establish and close a connection to a network analyzer.
    AgtMeasure8714 Object
    Provides methods to obtain scalar parameters from the network analyzer.  Most of these are setup parameters.
    AgtUtilities8714 Object
    Use the AgtUtilities8714 Object to:
    · Work with the network analyzer connection to the PC.
    · Work with the network analyzer descriptions and identity.
    Now, I have constructed what I think is the correct implementation in labview (see atachment), but when I run it I get an error that makes it seem like an i/o refernce is not included:
    Exception occured in AgtServer8714.AgtServer8714.1: CAgtServer8714::Connect method failed. CAgtCore8714::Connect method failed. CAgtConnectObject::CreateIO method failed. in vna_activex.vi
    What I really want to know is, how do the references that are required for a program in vb work in labview?  I looked up a vb sample for intulink, and they include four references:
    Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\..\..\WINNT\System32\STDOLE2.TLB#OLE Automation
    Reference=*\G{06EB23A2-C6C1-8714-98B5-080009C12B46}#1.0#0#..\..\..\..\..\..\Program Files\Agilent\IntuiLink\VNA\AgtServer8714.dll#AgtServer8714Lib
    Reference=*\G{D753C10E-EF9A-11D3-98B9-080009C12B46}#1.0#0#..\..\..\..\..\..\Program Files\Common Files\Agilent\IntuiLink\BLXLServers.dll#Agilent IntuiLink Servers Common Interfaces
    Reference=*\G{6B263850-900B-11D0-9484-00A0C91110ED}#1.0#0#..\..\..\..\..\..\WINNT\System32\msstdfmt.dll#Microsoft Data Formatting Object Library 6.0 (SP4)
    It seems like in labview, there is nothing else that is reading the reference when I do an automation open.  Any help at all is welcome.  Also, if you know of any labview examples that use intulink, that would be great.
    Thanks,
    Eric
    Attachments:
    vna_activex.vi ‏11 KB

    Here is a link to the Agilent8753ES instrument drivers from www.ni.com/idnet:
    http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=1625
    Brian
    Brian G.

  • Tcp data b/w labview and c++

    Hi
     i am trying to establish TCP connection b/w LABVIEW and C++ program. Server is established in C++ while client is implemented in labview.Although connection is successfully establish b/w server and client, both are unable to correctly understand data send/receive among them. Forexample if i want to send an int type send_array from server, i use standard WINSOCK function "send" like that:
    send(AcceptSocket,(char*)send_array,129*4,0);
    but when client in labview receive this array, it shows unexpected values.As a client, I used "simple data client.vi"  with one modification i.e. as sent data size(129*4 bytes) was fixed, only one TCP read was used . 
    Same problem exists if i send data from client to server.
    Kindly help me
    Best Regards
    Solved!
    Go to Solution.

    It's probably an big/little edian problem. If you are using the Flatten/Unflatten from String functions, you can specify which to use.

Maybe you are looking for

  • Can't import pictures into iPhoto!

    I have a problem: Pictures taken with my iPhone don't show up in iPhoto when connected. I can "see" the pictures (gray, no pics actually) but i can't import them. iPhoto gives me the error that the images aren't readable! Sam I have 1.1.3 installed!

  • Help lost audio on one session only and other faults occurred

    Hi  for some reason I have lost the audio on one session only .in multitrackAll other sessions play ok /The tracks in this session  play in edit and   also show as playing on the meter bar in multitrack but no actual audio heard.  Even more annoying

  • Is it possible to increase the size of my startup partition?

    Hello, I need to know if it is possible to increase the size of my startup partition. I have a 320gig drive that I put in my MacMini. I had given my startup partition 100Gig, and then created 2 other partitions. I've since started getting messages th

  • Need help to find something

    Okay i have a small problem maybe you could assist me . I am not quite sure how the indexof() fucntion workS I have a void method which is meant to look into the hashmap and then return any values to the screen , so say a person typed in computing th

  • Mac OSX pre-installed?

    Just received my new macbook (Core 2 Duo - 2.0 Ghz - 80 gig) for which I did not need to use the install disks as when I turned it on it asked me all my personal details, .mac memebership and then I directly hit the desktop. This is different from wh