Table 1 d to refnum

Hello

I'm filling table 2D with 0 using 2 for cycles and writing to a binary file, but I have the problem with the types of data - source type is table 1 d, but sink's refnum. Can you help me?

Hi enapolo,

convert the tunnels of input/output of the reference file for registers to shift (by right clicking on them)...

Tags: NI Software

Similar Questions

  • Make a table of user events refnums?

    Hi all

    I have a question about dynamic user events. I have 6 events of different users I create and would like to put in a table. (I can use them in a loop pass, taking off from an event by loop and assigning it a control to a vi) So far I have not found a way to do this, because if I just wiring the refnums of user events in a table I broke my son. (Even though I have them the wiring to a structure of cluster construction.)

    I think you'll understand what I'm trying to do if you look at my code labview in the vi attached.

    In vi, I create user events and then their son for the control of two vi which will communicate to each other using these events. In the code, you will see 6 structures invoke node where I use the 'Ctrl' Val.set to move the events to the two vi. Of course, this is why bad to do things. Because if instead of having 6 events, I got 100, then I need to put 100 node structures rely on the block diagram (making very large relative to the size of my computer screen!).

    So I want to do is put the refnums of user events in a table, then put the structure of nodes an Invoke in a loop, and the array index to assign events to the vi program.

    Is anyway to do this? Or is there an alternative (/ best way) to what I did?

    (Baisically I have 2 vi that run in parallel and communicate with each other using the user events. I need to move events to two vi, how do I do it in the minimum of mouse clicks and less space on the screen.)

    Thank you!

    Paul.

    The problem you have is related to the fact that your event user have different data types.

    Two ways (or more) to solve:

    1 convert for variant and then in a table, you will need to convert vback inside your dynamic VI

    2. use a different approach:

    Take a data type of single event consisting in a cluster containing an enumeration and a Variant. The enum contains all the type of event you want. The conatins variant corresponding to the event data type.

    Now in sending, you can add the event data to the variant and upon receipt of the enum with the event type tells you how event data should be converted. In this case you don't need a series of events to the user, because you have only one.

  • passage of clusters to a Subvi table

    I have an array of clusters (with different types of controls) I want to go to a Subvi. I can do this easily by creating a control of the original array of clusters and using them as an input in the Subvi. However, if I add or remove a part of the cluster, the Subvi breakage. I have to recreate the Subvi (Ref in the attachment table) entrance of the original array of clusters. Is there a way to prevent this? I know he'll give me errors if I delete an element that uses the Subvi (for example: table Ref or channel) but it would be great if he did not do it as long as I added new controls or deleted controls that are not used in the Subvi. I just intend on adding controls more later but do not want to change each single Subvi that uses the array of clusters.

    Ok... You will need Flash Player

    Try to follow this...

    1. create a typedef of the cluster and save it as a .ctl.

    2. open a new VI.

    3. create a table control with the element as the cluster of typedef.

    4. in the palette controls, access refnum palette and place a refnum Contol on the front panel.

    5 right-click on the refnum control and select "Show Control.

    6. drag and drop the table control in the refnum.

    7 right-click on the refnum control and select 'display the icon '.

    8. use this refnum in your subVIs.

  • Refnums and casting table

    I have 8 bays on the front of my VI. I created refnum for each table.

    I build an array of these refnums and pass this array to a Subvi.

    LabVIEW is cast some the refnums and not others as evidenced by the red dot on the table element to build.

    The berries of all of the double rooms.

    Why is this happening?

    A table must contain elements identical types, differing only by value.  Indeed, the elements must have the same properties!  Its likely that some of your double arrays have different dimensions (1 d, 2D), display, or even that some formats are controls and other indicators.  The refnums will be get under duress to 'type common less generic.'  Sometimes it's OK but often dangerous if you are working with any property other than 'value '.

    Grouping clustered Refnums can avoid these coersions.

  • The use of tables with void / vi

    Hello!

    I have a question about the correct method for the use of a Subvi to update an array of integers. How to pass the array to the Subvi, without creating a second table to the output (or what is returned)?

    It is for the calculation of the histogram data. Basically, I have a set of input values are evaluated to determine which bin location (array index) to increment the counter on. I then want to use the same Subvi to update table (let's call it "BinsIn", for the sake of discussion) and return to the main VI. Think in terms of textual programming I want to pass the array of reference, so I'm not wasting resources.

    I read a few posts that deal with using Ctl Refnum, but I don't know if that's what I want to do...

    Any help would be appreciated.

    Thank you

    Shaun

    Don't think in textual languages.  There is no difference in passing by reference and by value.  If the compiler determines that the input array can be reused as the output array, and then she'll do.  You can give him some advice that he should do by writing your code to perform operations "on the spot" (search for this term on this forum) and avoiding the functions requiring a copy the table as delete table.  Best thing to do is probably to write your code to make it work, then download it here so that other contributors can comment and help to make it more effective.

  • write a graph in a cluster using a refnum does not?

    Hi all

    A little bit of a weird (I think). I'm trying to update a table that is in a cluster using a refnum.

    See the attached example, Boolean updates correctly, but not the graph (above). Y at - it something I'm doing wrong or can graphics simply can't be updated in this way?

    With the help of LV 8.6 in Win XP (SP3).

    Ideas?

    PNR

    It does not work. You must remove the reference for the cluster chart and update it in this way. See attached mod.

  • How can I delete a table NaN values?

    I'm testing if an array values are less than 0.001. They are all... BUT the problem is that some of the elements of the array are NaN values. I want to do two things:

    1 remove NaN of the array elements and put them to zero to make the test work.

    2 to understand that NaN elements are tested.

    The results in an array of Boolean values of T, F. If all the values of the boolean chart are T, resulting in a single Boolean value of t. # 2, I I want to test if an element of the array is less than OR equal to 0.001 NAN.

    twolfe13 wrote:

    I'm testing if an array values are less than 0.001. They are all... BUT the problem is that some of the elements of the array are NaN values. I want to do two things:

    1 remove NaN of the array elements and put them to zero to make the test work.

    Various positions have been in the past to the deletion of items in a table. I'm sure that you took the time to research before you posted, right? In any event it seems not that order is important here, so the best way to proceed is to sort the array and then search for the first occurrence of NaN. Just do a comparison on the subset of the front table of this index.

    2 to understand that NaN elements are tested.

    The results in an array of Boolean values of T, F. If all the values of the boolean chart are T, resulting in a single Boolean value of t. # 2, I I want to test if an element of the array is less than OR equal to 0.001 NAN.

    Use the Boolean function gold and the function of Not a number/path/Refnum .

  • Conflict table chart control reference

    My vi has 6 graphics, and I need to change them through nodes of property through on my vi, then I wanted to store all references to graph in an array and pass it.  When I do that, I'm a class conflict between my entry table and a table in the cluster.  They are two waveform signals Refnum (strict), so I don't know why there is a conflict.  See the attachment for more info.

    I will usually use a group instead of a table so that I can access all the properties, but in your case...

    Unplug the broken wire, create an indicator of the output of the generation of table.

    Copy it and go back and change your type def and replace the stone with your new version. He should associate after that.

    Note:

    In your Subvi (if you stik with the table) you may need to perform the wire (more specific) class get the properties you need.

    Ben

  • FPGA dynamic Refnum

    I am trying to auto index a table of fixed-size FPGA of IO constants. The wire and the loop tunnel in the loop for the error even "possibility of dynamic Refnum not supported for the current target. What does that mean and what someone has suggestions to work around this problem.

    Hey Waldo, I would recommend having a look at the following KBs. Occurancs and refnums must be statically defined in LV-FPGA applications. This is by far the most common reason for this error.

    By passing an instance of a Subvi in LabVIEW FPGA

    http://digital.NI.com/public.nsf/allkb/30496B921D344B8686256FEF005224D6?OpenDocument

    Can I get a reference to a Subvi, which runs in the FPGA?

    http://AE.natinst.com/operations/AE/public.nsf/Web/searchinternal/9bb42c865405ef3e86256fc6005107ed?O...

    I hope this is useful,

    Best wishes

  • refnum image processing

    I want the camera to stream to USB (buffer image0) with treatment in time real simple image (image1 buffer).

    After a treatment, I want to copy the image to another buffer image2.

    However, I have observed some interference between the pads.

    For example, I copied image1 image2 buffer. Whenever image2 buffer has been modified, image1 is also changed.

    I suspect my mistake in the refnum image processing but can't find it.

    Before posting my code shot, I want to check again with your comments because LV is not installed on this computer.

    Anyway, what is the rule in the definition/treatment image buffer?

    It is desirable to define the new back buffer image whenever I changed the image?

    I found a few examples of creating image inside the loop buffer without deleting the refnums.

    Is it safe to the memory of the control system?

    What I picture reference must be transferred with shift register?

    labmaster using LV2011 (no SP1)

    What image of buffers are you referring to the IMAQ Image?

    If so (or if not possible), these aren't the sons of Norway in labview, they are more like pointers than a thread that keeps the sata, so if you wiring buffer image 1 in the image of the stamp 2 make you actually point towards the same area of the image, copying data between buffers, there is a function of copy IMAQ This puts the data to the image specified by buffer 1 in the space of the image indicated by buffer 2.  (I say space image of table instead because IMAQ images are more complex than just a chunk of memory).

  • ActiveX refnum probe custom in the numeric form

    Hi all

    OK this can be simple or impossible, but I can't understand it.

    When you explore a thread of refnum ActiveX on the diagram, it shows a unique number (or 0 if its not valid).  This is useful if the refnum changes (like walking through an XML using DOMDocument)

    However when I tried to make a customized probe, the probe is refnum control icon if you do not see a number.  This doesn't help me.  I tried to change this control in the custom to a digital probe, but it breaks.  (in fact when I tried to use a table as the probe custom LV2010 for a table of refnum, it gave me a message about incompatible type and then it crashed)

    Is there a way to show the number of the refnum in a custom probe?  I guess it would be the same as showing the number instead of the control in a regular front diagram, so maybe he has to be separated first, but how the probe simple builtin it do?

    On a side note, using the window spy Probe, 1 d or 2D tables, the probe display just a single element.  Is there a way to expand the table to display more than 1 item in this window? All values on the left side in a single line, but with 2D especially tables it's hard to see where the next column starts.

    Thanks for your help.

    TS9,

    Please refer to the following Knowledge Base when you attempt to display a value of refnum in labview. Using type cast to U32 I could extract the refnum and the output of an indicator number using the following code. I had to make the display format of the hexadecimal indicator; You can do this by clicking the indicator and click the display format.

    You can use this idea when you create a custom probe. Make sure you select 'New'... custom probe (and select new probe). This will create a vi with a panel front and block diagram. You could create a custom probe that does the same thing as this indicator.

    I hope this helps.

  • In my table there are some values as inf and Nan, before to save my table I want to eliminate these values. How can I do this?

    In my esperiments I get certain values such as the inf and Nan and I want to eliminate these values before you save my table in a file because then I would take the average of those values that are stored in a file

    How can I do this?

    Thank you

    Here's a quick example:

    Make sure you use not A number/path/Refnum? Function, because direct comparisons with for example a diagram NaN constant could give surprising (for some) results. For example, you think you could add a NaN value to the constant table diagram and remove some code, it is not working properly.

    (Of course if you have an older version of LabVIEW, you might not have the conditional tunnel. In such a case, it should be a bit more code in view)

  • entries in table of cases within a lower hierarchy of VI

    Hello

    I wish I had access to a table in a Subvi to lower hierarch. Now using the property of the "appellants", that I have access to VI refnum at the top level and 'number of elements in the array reference' allows to write in the first item in the table to the right, but I would like to have access to all the elements separately.

    Please consider that I'm using LV 8.2.

    Best regards

    Afshin

    Afshin salvation,

    as you already use the nodes property you should connect the 'IndexValues' property to show the search item and then read its value of "ArrElem.Value". Or search the Forum as there are also other threads on this topic

    In general: the better (faster, without thread switches, [no] datacopies) is to wire the table itself to the Subvi.

  • What class of object for a subset of table vi?

    I use VI of script to create a subset of the table function.  The problem is that I don't know what class of object VI plug on the new node of object of VI.  I tried the function and Index table, but these two cause errors of execution, who say that the selected style (subset of the table) is not compatible with the class.

    And just like a more general question, how do you determine the class to use in general?  I know that the point is that the selected class determines the type of refnum that came out, but I think that whenever I encounter this problem it is a matter of trial and error to determine what will work class VI.

    As you know, a table subset function is not a peer of the front panel, so I can't right click on it to create a reference to know what type it is...

    Thanks for the help

    Use GrowableFunction for the purpose of vi class and the subset of the table for the style. GrowableFunction covers a multitude of nodes...

  • Several tables to excel file

    Hello

    I get this error when writing two different tables for the same excel file. I think the problem is that the excel file must be closed to be written the new. But I am unable to use the narrow leader because he is not a refnum. Should I use the notifier? If Yes please tell me how to thank you.

    In your VI, you have two instances of "Easy Excel Table.vi" that will run in parallel. This is likely to cause a conflict, because as we open and written on the worksheet, the second will also try to open the same spreadsheet and write at the same time. You must apply a sequential operation in order to ensure that the second simple Excel table can operate only when the first has been completed. The easiest way to do this in your VI is over the error of the first VI on the second VI error, so the second can run only after the first ended.

    Secondly, the second VI also has a function of "New Report.vi", pointing to the same file, so there is a good possibility that this will overwrite your changes. You say there is no reference to the excel file, but in fact there. The right upper bound of the first easy table Excel vi is the report's reference. The wire that directly in the Terminal to the second function Excel easy table report and get rid of the new Report.vi.

Maybe you are looking for

  • Error App for Apple TV Disney XD

    Apple TV, 3rd generation everything up to date, Disney XD app connected through gets of the Charter: "error you may not be allowed to play this content." Please adjust your parental control level to view this content. "message when you try to play so

  • Thorlabs Piezo controls - manually ActiveX control

    Hello I use T - Cube Piezos Thorlabs for Nanomax stage - TS, I control through LabVIEW. I managed to connect the piezo controls in the program and it works well, but I'm for the accomplishment of the piezo through a slider or an automated outside of

  • Two copies of super windows imposed on other hard disk

    I think I have 2 sets of windows OS XP Home Edition superimposed on each other on my hard drive.  How can I cancel this situation.  It is slow and a lot of exhausted memeory. After a take-over of the factory, it shows more than 7 GB without something

  • creation of menus

    Hi, how can I create menu including a few positions (es close, do_smth1, do_smth2, etc.)? I took a quick look on the Menu class, but it is is not clear to me how to add positions.

  • Apps are now released automatically?

    There be a box that is checked by default, and it says something like "automatically put app on sale when approved.»   If it was unchecked, then we could put manually the application up to the sale.  I don't see anywhere.  Have I missed something or