Necesito hacer un array con node node labview

Pues tengo el siguiente problema y es que quiero hacer una especie de array en c con la formula node
Meto un valor entrada y quiero sacar del node X y hago esto
//conversor de voltios
//variables
int16 X;
int valor[]={1000,500,200,100,50,20,10};
//programa
X=valor[entrada];
pero me dice que tengo el siguiente error
Error on line 1 is marked by a '#' character: "...t16 Y; int16 valor[]#={1000,500,250,100,"
¿alguien sabe qhago mal y que debería hacer?Soy nueo en labview llevo 1 semana y cada dia que avanzo más dudas surguen
Gracias de antemano
Attachments:
capturada.jpg ‏96 KB

Que tal, 
Recuerda que existe la comunidad en español y alli te pueden responder mas rapidamente. 
http://forums.ni.com/t5/Discusiones-sobre-Productos-NI/bd-p/6170
En cuanto a lo que quieres hacer esa funcion de inicializar arrays NO esta soportada por el Formula Node, para hacer lo que quieres es necesario inicializarlas uno a uno .
Saludos.
Jonathan Cruz
CHALLENGER
K U D O S __ B I E N V E N I D O S

Similar Messages

  • Hacer arrays con nodo

    Muy buenas a todos es mi primer post. No tengo casi idea de Labview y estoy haciendo un osciloscopio con una daq para el proyecto de un ciclo formativo.
    Tengo una duda q no se resolver
    tengo hecho esto
    Y me dice lo siguiente en errores:
    Error on line 1 is marked by a '#' character: "...t16 Y; int16 valor[]#={1000,500,250,100,"
    no entiendo muy bien el error porque en lenguaje C esta bien
    ¿Alguien sabe que deberia de hacer?
    Muchas gracias de antemano

    ------> http://forums.ni.com/t5/LabVIEW/necesito-hacer-un-array-con-node-node-labview/m-p/2301738#M724706
    Jonathan Cruz
    CHALLENGER
    K U D O S __ B I E N V E N I D O S

  • Como hacer un telerruptor con labview

    necesito saber como hacer un telerutor con labview o en dado caso como prender y apagar un led con un solo push botton

    Google translation:
    "I need to know how to telerutor with LabVIEW or given case as turning on and off a LED with a single push button"
    What is a "telerutor"?
    Perhaps you should post on the Spanish board.

  • Can anyone please tell me how the attribute node in LABVIEW ( ver 5) in builtin INSTRUMENT I/O exampe file

    Can anyone please tell me how the attribute node in LABVIEW ( ver 5) in builtin INSTRUMENT I/O exampe file works and how it is being made.............

    Samura,
    After running LabVIEW 5.1 I found in the Search Examples help file a link titled Instrument I/O. Under there I see several examples, one of which contains many attribute nodes. It is difficult for me to tell you pecifically what the purpose of each and every attribute node in this forum.
    Generally, attribute nodes in LabVIEW 5.1 are used to set the properties of the front panel controls and indicators. The properties available in an attribute node are very similar to the properties made available by right clicking on a particular front panel control or indicator.
    If you have a question about a specific attribute node, I would like to ask you to post in a new thread with a detailed description of the attribute node.
    Thank you, and have a great day
    Scott
    Applications Engineer
    National Instruments

  • Swapping values in an array of type Node

    I have a simple class called Node that is storing integers and from this class I am creating an array:
    public class Node {
    private int iData;
    public Node(int key)
    iData = key;
    public int getKey() {
    return iData;
    public void setKey(int id) {
    iData = id;
    } When I insert an integer into the array, I need to be able to look to the previous value and swap it if necessary so that for each insert the smallest number is always the first element.
    The problem is that I keep getting "Incompatible Type" errors. I know the solution is very simple, but no matter what I try I keep getting this error.
    //assume array has already been created
    int temp = array[numOfNodes -1].getKey();
    array[numOfNodes -1] = array[numOfNodes];
    array[numOfNodes].setKey(temp); I understand why this is wrong, since temp is an integer and the value should be of type Node, but I do not know how to do this correctly.
    Thanks
    Edited by: jaden403 on Sep 22, 2007 1:17 PM
    Edited by: jaden403 on Sep 22, 2007 1:17 PM

    do not know how to do this correctly.
    import java.util.Random;
    public class IntNodeTest {
        public static void main(String[] args) {
            Random rand = new Random();
            int range = 20;
            int size = 5;
            IntNode[] nodes = new IntNode[0];
            for(int j = 0; j < size; j++) {
                nodes = addNode(new IntNode(rand.nextInt(range+1)), nodes);
            showArray(nodes);
        private static IntNode[] addNode(IntNode node, IntNode[] nodes) {
            // Make a new array to receive the new element.
            IntNode[] temp = new IntNode[nodes.length+1];
            // Copy the existing array into temp.
            System.arraycopy(nodes, 0, temp, 0, nodes.length);
            // Assign node to the last element in temp.
            temp[nodes.length] = node;
            return temp;
        private static void showArray(IntNode[] nodes) {
            for(int j = 0; j < nodes.length; j++) {
                System.out.print(nodes[j].getKey());
                if(j < nodes.length-1)
                    System.out.print(", ");
            System.out.println();
    class IntNode {
        private int iData;
        public IntNode(int key) {
            iData = key;
        public int getKey() {
            return iData;
        public void setKey(int id) {
            iData = id;
    }

  • How to use matlab program in formula node in labview?

    hi,
    i've got one equation of voltage regulation. so i did create program for that in matlab.and want to use it in formula node in labview.but i don't know how to do that.can someone please help me for that?
    regards
    bhavin

    If you have already written Matlab code it is easier to import it straight into a Mathscript node. If you use a Formula node you need to translate m- syntax to c-syntax which may take longer. Note that the Mathscript node
    may not support all the functions you used in Matlab so you may need to replace them with native LabVIEW functions. If you want to add inputs/outputs in your program you can just right-click on the border of the node to do that.
    These structures can be on the block diagram under Programming>> Structures.
    KostasB
    NI UK Applications Engineering
    Message Edited by KostasB on 05-28-2008 08:39 AM
    Attachments:
    mathscript-form node1.PNG ‏8 KB

  • Are you using the MathScript Node in LabVIEW or the MathScript Interactive Window?

    Are you using the MathScript Node in LabVIEW or the MathScript Interactive Window? I am very excited with the MathScript Node inside LabVIEW. However, I would like to see what other people think.
    Avalim

    Avalim,
    Personally, I am determining that I like to use the MathScript Node in LabVIEW.  It makes it easier for me to pass my data in and out of the LabVIEW environment!!  But, like you, I am excited to see what any other users think!!
    -Jeff P
    Jeffrey P.
    LabVIEW Product Management
    National Instruments

  • Script Node: Node not supported on current target

    Hi,
    I'm trying to export a program that involves the use of MATLAB script nodes onto the CompactRiO. The script nodes do not use toolboxes, except those installed on the host computer. However, everytime I try to build it, it gives me an error in which it says:
    Script Node: Node not supported on current target
    I was under the impression that you could upload MATLAB script nodes to the RiO as long as it doesn't contain code that MATLAB uses for it's tooboxes. Can someone give me an explanation of how exporting programs, involving the use of MATLAB script nodes, to a CompactRiO would work or if it would work at all?
    Thanks.

    bilaln,
    There are two different script nodes I think you are confusing:
    The MATLAB script node passes your m code to a locally installed copy of MATLAB for execution.  This will only work on desktop computers with both LabVIEW and MATLAB installed.
    The MathScript RT Node executes your m code natively in LabVIEW.  This node can be deployed to real-time targets (such as the CompactRIO) and does not require MATLAB to be installed but does require the MathScript RT Module to be installed on your development machine.
    Your implementation is using the MATLAB script node and your expectations are consistent with the MathScript RT node.
    Regards,
    Simon
    MATLAB® is a registered trademark of The MathWorks, Inc.

  • Qué espacio de trabajo es mejor en Photoshop CC para hacer una imagen con texto?

    Hola: soy principiante en Photoshop y estoy ocupando la version CC. Necesito hacer imagenes con texto pero no encuentro el espacio de trabajo (Diseño) entiendo que es el mas adecuado para hacer lo que necesito. Algun consejo?? Gracias.

    Los Overlays o superposiciones creadas en ID siempre aparecerán por encima de todos los elementos estáticos, tienes que incluir las montañas en otro overlay y situarlo sobre el del texto deslizante.
    Dejame pensar como, despues de apurar los ultimos rayos de sol en la playa.
    Sent from my iPad
    Asi que seleciona las montañas y duplicalas y pegalas en el mismo lugar (en realidad creo que ni siquiera hace falta) ya tienes dos objetos iguales (el mismo en realidad).
    Selecciona ambos y crea un Objeto multiestado. En el panel de Overlays defínelo como un Slideshow, y dile que Reproduzca una vez (Play Once).
    Y ya está, ahora sitúalo encima del otro overlay, el del texto.
    De esta forma ese elemento (estático) aparecerá por encima (al formar parte de un overlay) de otro overlay.
    Espero haber sido claro y que fuera esto lo que querías hacer.
    Confirma por favor si funciona.
    Otro bañito?

  • Can I convert 3D image to an array of pixels in LabVIEW?

    Hi all;
    I am still new with labview. I has 1 question, can I convert 3D image to an array of pixels using labview?
    Most of the examples I found they only convert 2D image. Hope anyone can give me some hint.
    Thank You

    look at this thread.
    It has links to other threads where the 3D graphs were used.
    You should also search for "gif reader" to find threads where images are read from gif files.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • "Using a CIN to Create an Array of Strings in LabVIEW" example crashes LV on Linux

    Tried to utilize this NI example: "Using a CIN to Create an Array of Strings in LabVIEW" (http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B4B282BE7EF907C8E034080020E74861&p_node=&p_source=External)
    Compiles OK with the makefile made by the LV's lvmkmf utility. Nevertheless when I try to run the VI (with the code loaded into the CIN, of course), LabVIEW 7.1.1 on a SUSE 9.3 Linux machine crashes:
    LabVIEW caught fatal signal
    7.1.1 - Received SIGSEGV
    Reason: address not mapped to object
    Attempt to reference address: 0x0
    Segmentation fault
    Any ideas? Did anybody try this on a Windows machine?

    H View Labs wrote:
    Tried to utilize this NI example: "Using a CIN to Create an Array of Strings in LabVIEW" (http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B4B282BE7EF907C8E034080020E74861&p_node=&p_source=External)
    Compiles OK with the makefile made by the LV's lvmkmf utility. Nevertheless when I try to run the VI (with the code loaded into the CIN, of course), LabVIEW 7.1.1 on a SUSE 9.3 Linux machine crashes:
    LabVIEW caught fatal signal
    7.1.1 - Received SIGSEGV
    Reason: address not mapped to object
    Attempt to reference address: 0x0
    Segmentation fault
    Any ideas? Did anybody try this on a Windows machine?
    This code is badly broken. In addition to resizing the actual handle to hold the number of string handles you also would need to create the string handles itself before attempting to write into them. NumericArrayResize is the fucntion to use as it will either resize an existing handle (if any) or create a new one if the value is uninitialized (NULL).
    /* resize strarr to hold handles to NUMSTRINGS strings */
    err = SetCINArraySize((UHandle)strarr, 0, NUMSTRINGS);
    if (err)
    goto out;
    /* perform this loop once for each element */
    /* of array of strings being created */
    for (i = 0; i < NUMSTRINGS;) {
    LStrHandle handle = (*strarr)->arg1[i];
    /* determine length of string that will be element of strarr */
    strsize = StrLen(str[i]);
    err = NumericArrayResize(uB, 1, &handle, strsize);
    if (err)
    goto out;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    /* moves strsize bytes from the address pointed to */
    /* by str[i] to the address pointed to by the data pointer in the handle */
    MoveBlock(str[i], LStrBuf(*handle), strsize);
    /* manually set size of string pointed to by *strarr */
    (*((*strarr)->arg1[i]))->cnt = strsize;
    /* manually set dimSize of strarr */
    (*strarr)->dimSize = ++i;
    return noErr;
    out:
    return err;
    Rolf KalbermatterMessage Edited by rolfk on 06-30-2005 03:15 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Bound data node Node of InteractiveForm must not be empty

    I try to generate a pdf document with name and surname in web dynpro.
    I have this context
    Pdf
         - Name       (string)
         - Surname  (string)
         - pdfSource (Binary)
    I set this options in the properties of InteractiveForm:
    dataSource :  Pdf
    displayType:  activeX
    mode         :  updateDataInPdf
    pdfSource   :  Pdf.pdfSource
    In the implementation tab I add the following code lines (Add the source code to the wdDoInit method):
    wdContext.currentPdfElement().setSurname("xxxxxxx");
        wdContext.currentPdfElement().setName("xxxxxxx");
    But when I deploy my applications I have this error:
    Bound data node Node(SchedaView.Pdf) of InteractiveForm must not be empty!
    Can you help me?
    Thanks!!!

    Hi shanto aloor,
    I have configured the ADS, but now I have another error:
       java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:134)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
        at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:806)
        ... 43 more
    Can you help me?

  • Bound data node Node must not be empty- error

    Hi All,
    We created a new value node in the context for our data source and set the cardinality to 0..N. We know that we need to initialize and bind this but don't know how so we're getting the erro "bound data node Node must not be empty" when we run the form.
    Please help.
    Thanks,
    Tyken

    Hi Jurgen
    Were you able to find out the solution for this? I am getting the same error on a much simpler application - I am trying to do the tutorial given on SAP Help Site at
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
    Thanks
    Pankaj

  • Me aparece Ipad esta desactivado, que necesito hacer para activarlo, gracias

    Me aparece que mi ipad esta desactivado, que necesito hacer para activarlo.. gracias

    Google translate:
    Buy an iPod touch 5G in best buy last week in NY, when he returns to Argentina, the iPod is linked to an ID (d. ... @ yahoo.com) I do not know, so when I want to start using it, I ask for a 4 digit passcode tengo.y nor ultimately remains locked.
    Try to unlock it in various ways but always come back to be immobilized on the same screen asking me the key ID do not know.
    Nor can I activate it from the itunes because I associated the ipod back to that ID not know. Is there any way to unlock your ipod?
    From already thank you very much!
    Contact the personel with that email addess and ask then for the password so you can unlock the iPod.
    That is a new feature added by iOS 7.
    See:
    iCloud: Find My iPhone Activation Lock in iOS 7

  • He olvidado mi contrseña de administrador y necesito hacer cambios que devo hacer

    necesito hacer cambios en mi mac pero olvide mi contraseña de usuario que puedo hacere

    Hola, si éste es inferior a 10,7 ...
    1. Inserte el Mac OS X disco de instalación, a continuación, reinicie el ordenador mientras mantiene pulsada la tecla C.
    2. Cuando el equipo haya terminado de arrancar desde el disco, seleccione Cambiar contraseña en el menú de instalación en la parte superior de la pantalla. (En Mac OS X 10.4 o posterior, debe seleccionar su lengua materna.)
    Importante: No haga clic en Continuar en la primera pantalla del instalador. Si lo haces, tendrás que reiniciar desde el disco de nuevo para acceder en Restablecer contraseña.
    Si 10.7.0 o posterior ...
    El arranque de la celebración de Cmd + R, o la opción / alt tecla para arrancar desde el partitirion de restauración y uso de restablecimiento de contraseña desde allí.

Maybe you are looking for

  • Read Only Folders

    It may have been discussed before but I haven't found it. I from when I found out about mp3s have always saved Artist-track title release year. It works for me. So why when I rip from Itunes am I stuck with their format. I recently found out that WMP

  • Scratch Disc Questions using Firewire External Drive & Imac

    Hello. I've read through the existing questions regarding scratch disc and Photoshop, yet can't seem to find an answer to my questions. I would greatly appreciate any tips/advice. Here is my setup and situation: I am running an iMac with a 2.16 intel

  • Output to File using SAPScript

    Hello Friends, How can we get output as .PDF file from SAPScrip. I dont need to print the output instead I want to send it as attachment. Please help me in finding the solution. Regards, Shabbar

  • Some more points on sql developer

    Starting to use sql developer more and more now. There are a few reasons why I end up back on sqlplus etc. 1) If you run a sql query in sqlplus and there is an error it tells you the line number. In sql developer you just get a pop up error message w

  • Sun App Server 8.1 2005Q1 & Netbeans

    I noticed that Netbeans EJB deployment is no longer compatible with the app server, because some API has changed. It was one of those features that was really, really useful for development...