a bilinear transformation without Matlab or MathScript module

Hi all

I've been searching the forums all morning and have not found what I'm looking for.  I have found information, you mind, but it seems that I'm smart enough now to put all the pieces together.  So I'll just ask, and we hope for the best.  Maybe someone can point me in the right direction... everything is blurred together at this stage.

Is there a relatively simple way to run a bilinear transformation in LabVIEW without using Matlab or MathScript?  I don't have access to either one.  If there is a built-in function of LabVIEW, I'm not find it.

The MathScript code looks like this:

W3 = 2 * pi * f3;

B = [1/w3 1];

W4 = 2 * pi * f4;

A = [1/w4 ^ 2 1/T4 1];

[b, a] = bilinear(B,A,fs);

Help?

Thank you!

d

Since you're using the representation of transfer function you will need to do the transformations and representation of the State space and perform the bilinear transformation in the meantime.  Normally, it's hard to make from scratch, but LV has the built-in Polynomial.vi feature so it's pretty easy (once you get the right formula).

StateSpace <->transfer function screws that I have used it before so I think that they are correct.  Bilinear transformation was just thrown together using mathworks.

Tags: NI Software

Similar Questions

  • MathScript module required for the performance of nodes?

    I am considering buying the mathscript module but have a question that I can't find an answer to.  Once a program including mathscript node has been developed, it can be run with a LabVIEW license that does not include the module?  I write software for customers who are not currently that this module and want to make sure that it will be able to use the program without purchasing the add-on.  Is this possible without creating an .exe?

    When you have a VI that includes the Mathscript RT module, any time you want to open and run VI only, it must be on a computer with LabVIEW and the MathScript RT Module. Once VI is built in a .exe then it can run on a computer with only the runtime engine.

    If you need end-user to modify a VI that uses your RT code, you could always build the VI in a DLL, and the end user can access this DLL and feed in the parameters and results.

  • Rasterize a vector transformed without pixelation

    How does one rasterize a vector transformed capture it is new dimensions without pixelation?


    Challenge : To render a bitmap to a vector display transformed without pixelation object. Specifically, after a mx.controls.Text turns, a snapshot of the bitmap is required to take the new object whose dimensions.  I would like to point out that the reason why I need to get a snapshot of the bitmap image to for formatting to the text.


    Problem: However, so results in pixelation or the original dimensions of the transformed text. It seems that flash.display.BitmapData::draw cannot get the new transformed view.


    Example of : http://sources.novelastudios.com/Flash/matrix_adustments/MatriciesAndDimensions.html#
    Creating the complete application is triggered a snapshot is made. Change the width of the matrix (transform.matrix.a), and then perform a new made a snapshot / bitmap. Notice that it retains the original, unprocessed values. Therefore, and in view of the instant highlights, it is when the instant/bitmap capture is resized it becomes pixelated. Version of the example now is 1.1.0.0

    Also at http://flashmoment.blogspot.com/2009/11/rasterize-transformed-vector-without.html

    You may have to wrap the object to scale in a relative and take a snapshot of the parent company.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • loading images without Vision and Development Module

    How to load an image and convert it into a matrix of values threatened without the NI Vision Development Module?

    Very easily. Change read PNG BMP reading or any other file that you use

  • How can I return 'Default' Firefox (topic: config) without losing all my modules and Persona settings?

    I changed a couple of parameter in previous versions, to speed things up. These parameters have been "inherited" from version 6.x which I think has more need.
    I want to return my Firefox settings by default, (processing pipeline, server calls etc) but don't want to lose my Add-ons, Extensions or Persona settings.
    Is this possible?
    My Firefox will REALLY slow and crashes often

    cordially.
    Paul Wade
    PulpKult...

    Creating a profile will return all of your default settings of Extension/add-ons, you will need to re - install the Extensions/additional custom modules in the new profile

    Most of the settings that you have probably set different values are in about: config, then filter = network.http (I watch 24 elements in Firefox 6, all with the 'status' = default)

    • Those that are displayed in the lower panel in fat and as a user set are items that have been modified by you and/or an extension/add-on.
    • You can right-click on these elements, in your case those typically shown as "whole" types and choose "Reset".
    • Those who re - appear after restart of Firefox are possibly be changed/added by an Extension; There were / are many extensions to change these settings
    • After "Reset", not with an empty value (there should be none in network.http unless you added), will be deleted when you restart Firefox. those are elements that are not the default set of preferences hidden in your version.
    • Make a list of what you change hidden preferences (topic: config) so that you can reverse these changes later if needed.
    • List of preferences network.http: _ http://kb.mozillazine.org/Firefox: _FAQs_:_About:config_Entries #Network.
      • The list is not entirely current or complete, but is the best we have at this moment
      • Do not add new products to your preferences, unless you know what you're doing
      • Do not delete all the elements of your preferences, unless you know what you're doing
    • See: http://kb.mozillazine.org/About:config

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • How to use matlab code Labview without MATLAB software. I tried to convert files ".m" in .dll files. But I could not do. Please help me...

    Please help me...

    MathScript using maybe?

    http://sine.NI.com/NP/app/Flex/p/docid/NAV-104/lang/SV/FMID/2031/

    BR,

    / Roger

  • C1841 without the BUILD - IN Module, Bill VPN is a VPN MODULE?

    Hello

    Yesterday, that I just got a new router found on eBay.

    When I boot it I see 2 FastEthernet Interfaces (this is normal and I see them) BUT it also shows me 1 Module of virtual private network (VPN).

    Before I open this new router I try something like:

    Material SH

    SH crypto multicylindres

    HS cry engine Accelerator stat

    Here below you have the results:

    I opened the ROUTER and I see:

    NO ADDITIONAL MEMORY

    NO VPN MODULE

    Did you do something with a built-in CISCO VPN module

    Thanks in advance for your help

    Best regards

    Didier

    Router hardware #sh

    Cisco IOS Software, 1841 (C1841-ADVSECURITYK9-M), Version 12.4 (24) T1, VERSION of the SOFTWARE (fc3)

    Technical support: http://www.cisco.com/techsupport

    Copyright (c) 1986-2009 by Cisco Systems, Inc.

    Updated Saturday 19 June 09 14:00 by prod_rel_team

    ROM: System Bootstrap, Version 12.4 (13r) T, RELEASE SOFTWARE (fc1)

    The availability of router is 9 hours, 47 minutes

    System to regain the power ROM

    System image file is "flash: c1841-advsecurityk9 - mz.124 - 24.T1.bin".

    This product contains cryptographic features and is under the United States

    States and local laws governing the import, export, transfer and

    use. Delivery of Cisco cryptographic products does not imply

    third party approval to import, export, distribute or use encryption.

    Importers, exporters, distributors and users are responsible for

    compliance with U.S. laws and local countries. By using this product you

    agree to comply with the regulations and laws in force. If you are unable

    to satisfy the United States and local laws, return the product.

    A summary of U.S. laws governing Cisco cryptographic products to:

    http://www.Cisco.com/WWL/export/crypto/tool/stqrg.html

    If you need assistance please contact us by mail at

    [email protected] / * /.

    Cisco 1841 (revision 7.0) with 118784K / 12288K bytes of memory.

    Card processor ID FCZ1217905C

    2 FastEthernet interfaces

    1 module of virtual private network (VPN)

    Configuration of DRAM is 64 bits wide with disabled parity.

    191K bytes of NVRAM memory.

    250880K bytes of ATA CompactFlash (read/write)

    Configuration register is 0 x 3922

    Router #.

    Router #sh crypto multicylindres

    crypto engine name: virtual private network (VPN) Module

    crypto engine type: hardware

    Status: enabled

    Geographical area: 0 on board

    Name of product: edge-VPN

    HW Version: 1.0

    Compression: Yes

    A: Yes

    3 a: Yes

    AES - CBC: Yes (128,192,256)

    AES CNTR: No.

    Maximum length of the buffer: 4096

    Index maximum DH: 0000

    Maximum ITS index: 0000

    Maximum fluidity index: 0300

    The maximum size of the RSA key: 0000

    version of crypto lib: 20.0.0

    engine crypto in the slot: 0

    platform: hardware VPN Accelerator

    version of crypto lib: 20.0.0

    Router #sh cry engine Accelerator stat

    Device: FPGA

    Location: on board: 0

    : Statistics for device encryption since the last clear

    counters 35534 seconds ago

    68607 68607 out packages packages

    49819692 bytes in 50341181 bytes on

    1 paks/s to 1 output paks/s

    11 Kbps in 11 Kbits/sec out

    29298 decrypted packets 39309 encrypted packets

    4074464 bytes before decipher 45745228 encrypted bytes

    2537109 bytes decrypted 47804072 bytes after encrypt

    0 0 packets compressed decompressed packets

    0 bytes before Dang 0 bytes before comp

    0 bytes after Dang 0 bytes after model

    0 packets bypass decompression 0 by-pass compressor packages

    Derivation of 0 bytes 0 bytes decompression work around compressi

    0 packets not unzip 0 uncompressed packages

    0 bytes not decompressed 0 bytes not compressed

    1.0:1 overall compression ratio 1.0:1

    last 5 minutes:

    11 packages into 11 out packets

    0 paks/sec output paks/s 0

    32-bit/s at 28 bits/sec out

    496 bytes decrypted 329 bytes encrypted

    13 decrypted Kbps 8 Kbps encrypted

    1.0:1 overall compression ratio 1.0:1

    FPGA:

    DS: 0x6538DE50 idb:0x6538CD08

    Statistics for virtual private network (VPN) Module:

    68607 68607 out packages packages

    1 paks/s to 1 output paks/s

    11 Kbps in 11 Kbits/sec out

    29298 decrypted packets 39309 encrypted packets

    package overruns: 0 packets output dropped: 0

    tx_hi_drops: 0 fw_failure: 0

    invalid_sa: 0 invalid_flow: 0

    null_ip_error: 0 pad_size_error: 0 out_bound_dh_acc: 0

    esp_auth_fail: 0 ah_auth_failure: 0 crypto_pad_error: 0

    ah_prot_absent: 0 ah_seq_failure: 0 ah_spi_failure: 0

    esp_prot_absent:0 esp_seq_fail: 0 esp_spi_failure: 0

    obound_sa_acc: 0 invalid_sa: 0 out_bound_sa_flow: 0

    invalid_dh: 0 bad_keygroup: 0 out_of_memory: 0

    no_sh_secret: 0 no_skeys: 0 invalid_cmd: 0

    pak_too_big: 0

    tx_lo_queue_size_max 0 cmd_unimplemented: 0

    flow_cfg_mismatch 0 flow_ip_add_mismatch: 0

    unknown_protocol 0 bad_particle_align: 0

    35535 seconds since the last cleaning counters

    Interruptions: Notification = 54892

    Router #.

    vpn module on board can certainly improve VPN performance comparing to pure VPN software, but is not as good as the AIM - VPN module.

    So, this will depend on your vpn traffic load, etc...

  • MathScript - using MatLab code

    There were a number of comments about Mathscript and MatLab throughout the area of web pages, but I wanted to just ask a few pointed questions that likely should be easy to answer so that I can be sure my needs will be met with the add-on MathScript. So now,

    (1) one of my colleagues has some programs written by some of the students is no longer with his lab to be able to pack up and send some of his colleagues in different universities who perform the same research, such as it is. The courage of the LabView programs is in the MatLab code; He MatLab and can run them, but external colleagues likely will not. I guess the Mathscript Module will allow me to:

    ___a) transfer the MatLab Code MatLab lymph nodes MathScript and have the same functionality (it does not appear to be an advanced MatLab functions in there, but it's long makes me not want to re - write in graphical programming LabView)

    ___B) create an exe file of these programs with my Application Builder without the need for MatLab or other processing engine must be installed on the destination computers

    Is this the case?

    (2) one thing I noticed on the code MatLab in these programs is that it seems to be variables that are created in a single node and are then called in another (without linking to them via cables which is what I'd be used to it). Is this standard 'persistence' for the use of MatLab nodes and Mathscript has the same functionality? Never used these so I wasn't sure.

    That's about all. I just wanted to be sure before that I go ahead with this option.

    I took a peek at your code and managed to implement your code with a MathScript window. Only, I've declared the variable in each node and has been able to run the VI. The warning, seen in the image below stating when you use global variables with the MathScript node, your code may run more slowly than normal.

    With respect to the use of the Matlab Script node, I don't know if this would work because this node calls into orders Active X of Matlab, which I'm not too familiar with. The Matlab script node does not have an engine that runs in the background, it is actually calls to Matlab and the user must have Matlab installed on their computers to use the Matlab Script node.

    From what we have discussed, I would like to use the MathScript node for your application so that your end user must only installed LabVIEW runtime engine to run an executable file.

  • Call MATLAB MathScript SOAP

    Hello

    I have a generic question about whether it is possible to call functions that belong to non-standard MATLAB of MathScript box. In particular, I have the interface for communication with a web server using the Toolbox of Matlab WSDL and I have a pretty "as what", or with minimal changes, in a fellow engineer Labview module so that the instrument can send data to our centralized, system that uses SOAP as the interface.

    I prefer not to use if possible native SOAP of Labview modules.

    Thank you

    Fernando.

    You actually talk to the node in Matlab? MathScript is version or a language similar to Matlab. There is a MathScript node and a node of Matlab. The Matlab node called Matlab code using ActiveX server of Matlab. As such, it requires that you have Matlab installed on the computer. While MathScript is similar to Matlab, and Matlab code can be run "as-is" in the MathScript node, there are many differences (particularly with certain functions provided). The differences would be in the documentation.  The MathScript node does not call for Matlab code. However, you can call a shared library MathScript. You must compile your Matlab code in a shared library using the Matlab compiler. The target machine would need to have the execution of Matlab engine.

  • Questions MathScript Matlab function calls

    I have a question about the m-script function call (MATLAB) in Mathscript Labivew 2009. I have attached my buggy vi for an example:

    1. I called a function 'remodel (Sigma0, [O O Q M])"in Mathscript, it gave me a syntax error, but not in Matlab R2009b. I guess that it does not tolerate a great deal of input parameters. Any idea as how use the reshape feature in Mathscript?

    2. Another problem is that I've defined a function m-script with 2 parameters, in Matlab, I can call the function with a single parameter provided, however in Mathscript, system reports error if I only provided 1 parameter to a function of 2 parameters. Any idea as how to cope with this problem?

    Because I have a lot of code in the format m-script, I don't want to rewrite a lot of new code.

    Thanks for any help.

    Hi aggressor.

    Indeed there is a small difference in the matlab function and labview mathscript reshape function reshape. The difference is that Matlab is considered always any 2D array from the perspective of lines... where LabView considered from the perspective of columns... that is, if a table 2D likeX = [has and b, c and d] is here and the (x, 1, 4) reshape in labview will give out like a, c, b, d in an array, matlab, the output will be has b, c, d in a table.

    And in Labview syntax you gave will certainly give a syntax error. Please visit the labview syntax help.

    Thank you and best regards,

    srikrishnaNF

  • Access the file "ndgrid' MATLAB

    Hi, I am a novice user of LabView MathScript module, I have two problems when integrating my MATLAB LabView code, for the process of image reconstruction:

    1. for example, I have a table that contains positive and negative numbers: a = - 5:5 (this will give me a table 'a' - 4-5-3-2-1 0 1 2 3 4 5)

    If I want to get rid of negative values in this table, under MATLAB, I do: (a<0)=0 (this="" will="" give="" me="" an="" array="" 'a'="" of="" 0="" 0="" 0="" 0="" 0="" 0="" 1="" 2="" 3="" 4="">

    However, in LabView Mathscript, this command gives me the following error:

    90026 error occurred to the error in function = on line 44: indexes for a matrix of indexation of operation must be real and positive integers.
    LabVIEW: Index for an index of the matrix operation must be real and positive integers.

    Is it possible to avoid this error message?

    2. in my program, I tried to call a built-in MATLAB function called "ndgrid.m".

    LabView don't know initially, this function that shows me the following error message:

    Error-90031 occurred at an unknown symbol on line 18: ndgrid

    I then copy the file "ndgrid.m" in the MATLAB folder and copy it into the working directory for LabView, but find the following errors:

    90162 error occurred at line 38, column 12: unexpected char: ' {'}

    C:\Documents and Settings\ms350\Desktop\MIT_KENT\ndgrid.m

    LabVIEW: A recognition error occurred when generating a stream of tokens.

    It seems that MathScript complains of the "{" "}" symbols. Is it possible to overcome these errors?

    Hi hykwei,

    Extract VI below deals with two issues:

    1. the code:

    a = - 5:5; a (one<0) =="">

    should work without a doubt.  If you have a warning glyph (), however, you will get the error you mentioned.  This was reported to R & D (#223605) for investigation.  If you look at the code snippet, you can use for loops and if statements to create the same result.  Refer to this post for more information on the resolution of the glyphs of warning (MathScript Nugget #6: warning glyphs).

    2 ndgrid doesn't seem to be a default command for MathScript (functions of the MathScript RT Module support).  I'm also sure that the module does not allow brackets in its syntax, what could be the reason for the error, you see.

    What you can do in the meantime is the meshgrid2d function allows to assign values to 2 variables (if you use context-sensitive help, you can get the documentation or type help meshgrid2d in the MathScript window).  I added a code example in the extract VI below to show how to use the function.  In addition, the instructions of the custom function can be a good help: http://zone.ni.com/reference/en-XX/help/371361F-01/lvhowto/mathscript_function_syntax/

  • Mathscript weighting filter

    I am trying to apply a weighting filter in MathScript following the m-files found here.  My VI is attached, but the signal filtered of bilinear transformation is zero.  I do not have MATLAB, and I don't know what I'm missing.

    Hello

    It doesn't seem to be something to do because the filter coefficients are huge.  We will study this, but in the meantime, try the scale of values of the sampling frequency.  Change lines 20 to 23 in your MathScript node
    F1 = 20.598997/Fs;
    F2 = 107.65265/Fs;
    F3 = 737.86223/Fs;
    F4 = 12194.217/Fs;

    and line 31 to
    [B, A] = bilinear(NUMs,DENs,Fs/Fs);

    Grant M.
    Senior Software Engineer | LabVIEW MathScript | National Instruments

  • Use of user defined function in mathscript containing a structure

    Hi, I am a novice user of LabView MathScript module,

    I have the following problem when integrating my code MATLAB, LabView, for HMM: in my program, I tried to call a MATLAB called "mixgaussinit.m" user-defined function, it shows this error...

    "

    I just noticed that these files appear to be copyrighted. My first question is do you have author permissions to post them in a public forum? If this isn't the case, then you can remove them. That being said, I have reviewed the code and it seems easy enough to work around your problems (provided that you have the copyright permissions). How to bypass the problems is to replace the fields of the struct with variables. There is of course allows you to change some definitions of functions for input and output the necessary variables which I think was the best 5 variables. You will also need to redo the code that uses a table of error checking cell. In total, I estimated about 30 minutes of work. I would have given you work around these files had not been protected by copyright. So, unfortunately, you will need to implement the work around you.

  • reshape the array in matlab coding labview

    I have following matlab code and I want to do it without using LabView MathScript. I want to do it using labview reshape function array. Can any body guide me how do.

    Reshape a 3- by -4 matrix in a 2- by -6 matrix in MATLAB

    A =
        1    4    7    10
        2    5    8    11
        3    6    9    12
    
    B = reshape(A,2,6)
    
    B =
        1    3    5    7    9   11
        2    4    6    8   10   12
    

    So how this in LabView using array reshape. See picture attached below for more details.

    The result is not as same as matlab. Can any body me guide how can I get same result as matlab.

    Thank you

    JK

    Hi Joseph,.

    at least a two-step process in quick & dirty:

    (Using an older version of LV that I can't use the tunnel exit concatenation)

    Altenbach can simplify this.

  • MathScript bug with 3D zeros in LV2012?

    Hi all

    There seems to be a problem with 3D "zeros" method of mathscript module?

    Matlab documentation gives the following example:

    Table 3-d, of zeros

    Hi Roger,

    You should consult with MathScript help instead of Matlab...

Maybe you are looking for

  • Satellite L300 - 17l - need Touchpad drivers for Windows 7

    I have the Satellite L300 - 17l. I can't find the touchpad for Windows 7 drivers, so I can't scroll using my pad. How can I solve this problem: S

  • Two questions with Satellite A660-12th

    Hello I'm afraid that my English isn't the best but I think in English I get more answers, the German replies are alo ok. I have two problems, perhaps they are connected somehow. The first problem is that my laptop heats verry. In Windows 7 there are

  • Password verification failed error

    Şifre başarısız oldu denetimiHata Olumcul... Sistem halledCNU9301LXT (COMPAQ MİNİ 110) YARDIM

  • How to participate in hard drive

    I have Lenovo y530 How do I make c: d: size new new sizes I like to c: 100 GB dther size Help me please do leave boot what control I click how?

  • Structure of the event edit window

    I'm using LabVIEW 2013. When I place a structure of the event on the BD and right clikc and 'Add event box' or "Edit events managed by this case" edit events window appears.  An animation happens as it widened, but the window is not the case to be se