Does Labview have function Mod() ?

Hello, everyone,
I am trying to parse an array only for all its odd/even number elements.  
I am thinking of use Mod function upon 'iteration' but labview seems have 
nothing there.   
Does anyone know something about that?  
Thanks in advance,
-Kunsheng
Solved!
Go to Solution.

Stu Turner wrote:
I found my way to this page because I was looking for a modulus function in the mathematical sense, i.e. In mathematics, the absolute value (or modulus) | a | of a real number is the numerical value of a without regard to its sign.
Interesting.  I never heard absolute value be called modulus before.  I just hit wikipedia to check.  In every sense I've heard of modulus (including a few math and cryptography classes), it is remainder (http://en.wikipedia.org/wiki/Modular_arithmetic).
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Does Labview have Try Catch exception handling?

    1) Does Labview have Try Catch functions, exception handling?
    2) Can Labview access a file or download a file using http or https?
    3) How can labview  read data from an ex ternal server http or https?
    This is in labview 2009 or 2011

    Hi E,
             1. you can chain together your VIs with the error wires, such that if an error occurs in one of them, none of the following VIs will execute.  That's  like throwing an exception - it interrupts the execution chain.  You then "catch" that exception by putting an error handler wherever necessary, but not necessarily in every single VI.Hope  You wouldn't put try..catch inside every single .NET function, instead you handle the exception at the level at which is most appropriate. Same thing can be done in LabVIEW.
    Also see this.
    2. The attached example downloads a picture with http "GET" command.
        Dilbert.Main_LV71.vi 160 KB
    3.see this thread:
       http://forums.ni.com/t5/LabVIEW/Read-a-text-file-from-Labview-web-server-http/td-p/267434
    Yes!!The same thing pointed out by nijims.
    Thanks as kudos only

  • Does LabVIEW have any kind of source control?

    I want to use a source control tool such as git and svn.
    Does LabVIEW have such a tool?

    Hi icat,
                Yes.See these: (Sorry as GerdW pointed out not embedded in.)
                https://decibel.ni.com/content/docs/DOC-1681
                http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/configuring_scc/
    Thanks as kudos only

  • Does SAP have  function to allow the prices for the activities type to copy

    Hi Expert,
    Would like to seek for your help refer to above subject.
    Does SAP have  function to allow the prices for the activities type to copy from previuos fiscal year to current fiscal year so that we do not need to manually set up the acitvities types prices via KP26.
    What are the T-code and what are the configuration need to be set in order to use the function.
    Please help.
    Regards,
    KH

    Hi,
    Thank you for the prompt reply.
    However, would like to seek for your advise does SAP provide standard report to view the cost of activities incur?What are the T-code?
    Thank you.
    Regards,
    Karen

  • Does LabVIEW have support for entering Urdu language script?

    Hi All!
    My LabVIEW application requires users to enter their observations in a string control which is then stored in an excel file.
    Now the issue is that the user wants to enter the data in Urdu language.
    Now my question is, Does LabVIEW have support for entering Urdu language script in a string control?
    If yes how can I implement this? If no, is there any possibility that National Instruments could extend some help in this regard upon request?
    Regards,
    Reeves

    My experience from Hebrew, which is also right to left, is that it can be done if the operating system supports it, but it will work badly if you include anything in the text which is not an Urdu letter. This causes it to be displayed in the wrong side of the control and is only solved if you add more Urdu text after it.
    One option you can try is including an ActiveX control (such as the rich text box) for editing the text and then you can probably get the text from it using a property. I don't remember trying it (my users don't usually need to input Hebrew text themselves), but I think it should work. I wouldn't have any hopes for NI doing anything about this, because it's considered to be a relatively small market.
    Try to take over the world!

  • ADE 2.0 does not have functions of divided page and single page- like ADE 1.7?

    I have a question for specification between ADE 1.7 and ADE 2.0.
    ADE 2.0 does not have icon buttons for "divided two-page" and "single page" like ADE 1.7? Since ADE 1.8 Preview version was temporarily available to download, there has been disappeared such functions....

    There are lots of bugs in ADE2.0 (and 2.0.1).  Try replacing ADE2.0 with the older but more reliable v1.7.2.
    (You can have them both installed at once if you like.)
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html
    The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172
    Some people have found ADE trying to upgrade automatically. 
    It appears (not 100% sure) that if you install ADE2.0 as a new install (not as an upgrade) that your 1.7.2 will continue to run.
    Probably best to say no if 2.0.x installation asks if you want to migrate your library.

  • Does labVIEW have a function to solve the following math problem?

    In Labview what is the easiest way to solve the following problem?
    |----             ---|  -1       |--     ---|                |--       --|
    |  1   1   0       |            |   a     |                |    x     |
    |  1   0   1       |            |   b     |     =         |    y     |
    |  0   1   1       |            |   c     |                |    z     |
    |__             __|            |_       _|                |_       _|
    from the equations:
         a = x + y
         b = x + z
         c = y + z         where a, b, c are know values.    The problem I actually have is a system of 9 equations.
    Thank you.

    You have a known matrix, a known vector, and a vector you need to solve for given the equation Ax = b.  This is exactly the problem this VI is designed to solve:
    With the values I made up for a, b, and c, the solution is [2, 3, 4].
    Chris M

  • Does labview have a 2D FP high/low pass filter?

    After digging through labview for quite a while, and then trying Google I'm starting to think there really is no floating point filter functions in labview for 2D arrays?  I tried the IMAQ kit, but even after all the frustration involved in actually getting an array into an "image" it doesn't seem to support floating point (at least as far as I can tell).  
    Am I missing something or does this really not exist in labview?

    Hi, Am not sure whether i understood your question. what does this floating point filter functions means? Have a look that attachment. Different kinds of filters are there in LabVIEW and it accepts floating point input. If you want to pass 2D input pass it thru for loop.
    Hope this helps you.
    Attachments:
    f1.JPG ‏137 KB
    f2.JPG ‏150 KB

  • Does Labview have a Random Number Generator for U16 with a periodicity greater than 64 Million instances of U16words and one with SEED as the connector?

    We are doing some testing that requires 64MegaWords be written to our DSP memory  with random values to do a validity check and without repeating sequences with using the previous value as the seed for the next and us passing it the initial seed.  The dice one doesn't meet that criteria, and I was not sure how the continuous random number generator parameters work and if any of them would meet this criteria. Anyone have any information that might help?
    Thanks,
    Sue

    Hi suem,
    There is no reason why you couldn't simply write a pseudo-random number generator by yourself. Simply select a random number algorithm you want to use and implement it in LabVIEW. You do not need to interface code written in another language in order to implement a pseudorandom number generator. If you have a DAQ card or something, you can also use inputr noise or some other hardware soruce to generate real random numbers. For that also LabVIEW is an excellent tool.
    Tomi
    Tomi Maila

  • Does LabVIEW have USB Support?

    Can I read/write to a USB port using LabVIEW?

    Hi
    USB is a bus. You cannot write/read to/from the PCI bus through LV, and the same is with USB. There are no read/write VI's. It's not to compare with RS232, where you have read/write VI's in LV.
    Check this link for further informations:
    http://digital.ni.com/public.nsf/websearch/42B604435E3F9604862565E20043CD30?OpenDocument
    Regards,
    Luca

  • Does LabVIEW have facilities for printing graphs for reports?

    Hello,
    I was wondering if LabVIEW has facilities to print nicely formatted hardcopy printouts of graphs or chart data on a vi? Thanks.

    Check "Report Generation VIs and Functions" in LabVIEW help.

  • Does LabVIEW have CCITT filter?

    Hi
    I'm writing a program need CCITT filter. I have sound and vibration toolkit but it doesn't have CCITT filter. Are there anyone tried to use or implement it in LabVIEW?
    Bill.

    Bill,
    You may be interested in this discussion; If I'm not mistaken a psophometric filter is the same as the CCITT filter.
    It comes down to having the correct shape of the filter and apply it to the FFT data.
    Hope this helps.
    Regards,
    Juan Carlos
    N.I.

  • Does labview have drag and drop capability while a program is running

    Suppose I have a cluster with controls of various datatypes on the front panel of one vi. Is it possible to represent that cluster with an icon, and then drag that icon on to the front panel of a second vi? The information in the cluster would then be available in the second vi.

    I did this. Take a look at G Toolbox/Drag&Drop on my web
    page.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • For Experts: Why does LabView cause System reboot while accessing hardware with driver?

    Hello NI Developers!
    I use LabView 7.1 under Windows XP
    I have a programm console application which accesses through Jungo Windriver PCI-E board.
    This program works fine - and performs DMA data transfer between PC and Board's memory.
    In order to implement this console application work together with LabView I did following:
    1) Added this function inside the source:
     _declspec(dllexport) void LVMainFunction(uInt32 *IntValue);
    _declspec(dllexport) void LVMainFunction(uInt32 *IntValue)
        AllocConsole();                   //Open new console window
        SetConsoleTitle(L"Debug Window"); //Set a title for console window
        freopen("CONOUT$","a+",stdout); //redirec standard output stream to current window so
                                        // so we are able to see "printf" outputs
       freopen("CONIN$","a+",stdin);    //redirec standard input stream to current window so
                                        // so we are able pass inputs from keyboard
       main();                          //Call applications main function which does all the work
    2) Compiled this new source as DLL library
    3) Call  LVMainFunction(...) function from LabView using Call Library Node
    In the result: Executing VI - opens new console window, shows debug outputs and receives keyboard inputs.
    It works fine till the last function, which perform DMA data transfer - and reboots PC.
    1) Why does this happen?
    2) I understand that opening console from Call Library Node, attaches together this console window and running VI. So If I close one of them - both windows closes.
         So does LabView have somekind of restrictions of accessing Hardware's functions? 
    I can read Board's resource information and view size of memory on board, interrupt functions and other information about device, but when I try to reach
    DMA my system reboots. And I understand that this should be some kind of LabView problem, cause I tried different implementations, even without use of
    console window - and the result is the same.
    3) Should I split the program in to two separate processes and perform data exchange using Sockets or Pipes techology?
    Thank you in advance!
    ACiDUser
    Message Edited by ACiDuser on 11-13-2008 09:37 AM

    Hello!
    At LAST!!!
    I solved this problem!
    From the beginning I was following National Instruments manual on how to build DLL with external IDE:
      http://zone.ni.com/reference/en-XX/help/371361A-01​/lvhowto/building_library_project/
    Set the Struct member alignment control to 1 Byte.
    Now this option caused my PC to reboot!
    So could someone explain  why this happened? and If it is a bad tip, so it's better to remove from manual. Then other people will not have such problems as I did
    - wasting 2 monthes of time determining the problem. 
    I changed it to  Set the Struct member alignment control to DEFAULT.
    and now everything works fine.
    Regards
    Message Edited by ACiDuser on 11-13-2008 11:14 AM

  • Does anyone have an example VI about how to call the animatewindow function in the user32.dll using CLN in Labview?

      I want to call the WinAPI function-animatewindow in user32.dll to produce some special effect when showing or hidding windows, but i don't know how to using this Win API to achieve my purpose?
      Does anyone have an example VI about this application?
      Thanks in advance for your help.

    You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.

Maybe you are looking for