Refnum problem

I have a weird problem with references to control. The refnum is chaning to a real number to a path to control the refnum.

I probed the refnum and it flashes between: (a)

Class name: Ring
Control label: select LPF
RefNum (in hexadecimal): 0xBB6000E0
Owner of VI: Application Development.lvlib:Applicatiom App Template.vi
C:\Program Files (x 86) \National Instruments\LabVIEW 2010\user.lib\ app Development\Templates\Application App Template.vi

et (b)

BB6000E0 which is the refnum of the control.

The result is a weird state when I try to use the refnum to change a property node.

Any ideas?

A picture would help a lot to explain what you mean. But I feel like you're chasing ghosts here. The refnum seems to remain constant as you expect it is, and in fact a refnum of control always must remain constant for a particular control, as LabVIEW uses static refnums for controls, unlike most of the other refnums. the additional information displayed by the probe window, or anything that might be a bug in the window of the probe, but as long as I'm not what you see, I cannot and would not say "bug". Even if the display in the window of the probe seems odd, it is very likely to be the cause of what you are trying to run after. Since you're using refnums (and maybe the Value property of misfortune?) I prefer to put my money on conditions of competition caused by the present.

Tags: NI Software

Similar Questions

  • Transfer config data refnum problem

    I have problem of storage and transfer of value of refnum of configuration data.

    The value displayed using the seam of the probe to be OK, but it is not accepted as soon as a continuous run is used.

    The attachment shows what I tried.

    How the value of refnum of configuration data can be managed?

    Do not use run continuously.  It is designed for purposes of debugging, not to run your code normally.  If you need your code to continue to operate, put in a while loop (with a sort of timer loop as the function of waiting (ms), while it is not run as fast as possible and consume all your CPU time).  The use of "Continuous run" is like hitting the button run over and over, and some things reset each time you press the run button.  For example, whenever a first level VI ends, all the references he opened - queues, file references, TCP connections, etc. - are closed and become invalid.  This is what you see - whenever the VI ends, it closes the file, so well that the refnum still contains a value, that value is therefore more a reference valid to a file.  Use some time to keep your code running in a loop instead, and it will do what you want.

  • RefNum path problem

    Hello

    I have a lot of Subvi. I work with binary files and I want to open them only once. Am I a subVi (1) that opens:

    and then the subVI (2) which reads the first 4 items and store them in the array:

    Then subVI (3) who uses a precedent and reads only 4. array element

    So I can't plug the first Subvi with last because they have different types.

    This who should I change/not right?

    You must replace the filepath control in of the Subvi later by refnum control.

    Copy and paste the refnum indicator that corresponds to the output of the first sub - VI and drop it in the slot - VI later.  Make a right click, change of control.  While wire to the place of the filepath control, you have now the functions of files.

  • 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)...

  • How to copy an a refnum xygraph is - a?

    Normally it's simple enough to get my own.

    Purpose:

    Col Refnum XY graph for Subvi-->

    Purpose of Subvi: PRINT XYGRAPH to file/pdf/bmp, manipulate the xy graph more (back ground color change to leaving for printing, leaving graph xy for printing size, move the legend), perform simple analyses on the data (rms, pkp etc.)

    Problem statements:

    1 when you use a refnum, any change in writing refnums property value will also change the parent, i.e. the Subvi xygraph.  This is not desired, then an exact copy of the xygraph must be made.  HOW DO YOU DO THAT?

    2 when you use a refnum for a xygraph, how do we get the xy values?  If the value property node is selected, a variant is produced.  (which, after careful examination, I was still not able to make heads or tales of this particular variant)

    PS a refnum is used because the xygraph was already formatting applied to its legend, axis, plots, etc.  A refnum passed to a Subvi is the only way I know to succeed all formatting etc. for the chart.

    PPS. I understand that there is an invoke node that will export an image, it contains certain restrictions (for example, requiring that the Subvi be open, because it works by rules similar to a print) which make the United Nations applicable to this problem.

    You must use the variant data to convert the variant into the native data.  XY charts can take data in several formats, so you can simply create a constant to your XY graph, dump all the data to get the appropriate format.

  • Creation of Refnum Automation to Excel

    Hello

    So I've worked to read Excel documents with report generation tool, but realized the document I was trying to read is password protected and requires an update link (PivotTable).

    Searching I found an accessory useful toolkit Joe_H (post #2) http://forums.ni.com/t5/BreakPoint/Excel-Board/m-p/379682 . I try to recreate its VI, but there are some things I don't understand. (I started only working with refnums & variants)

    My Questions:

    1. referring to my 'refnum.png' attachment, black refum automation is copied from example VI and purple is what I tried to do. They have the same ActiveX class, but purple throws an exception error 3005. I can't find the refnum of the black arrow.

    Googling this error, gives a solution, but I can not understand how to use or if it applies to me. http://forums.NI.com/T5/LabVIEW/error-3005-occurred-at-Automation-open-using-ActiveX-RichText-box/TD-...

    2 referring to 'excel.png' for the node invoke - workbooks, how is a person knows how to use the data types variant? For example, WriteResPassword I just tried to use a string and it worked. I noticed that the help info gets thinner when working with property/Invoke nodes.

    Thanks for your time.

    I don't know why the difference in colors between the refnums, but I doubt that's the problem. Looks like it's just an artifact weird opening a VI from an earlier version of LabVIEW. If you convert this refnum control to a constant and then again to a control, it will turn pink, but I guess it will always work. Can you show the code showing you how you use this refnum?

    As mentioned nyc, you refer to the Microsoft documentation to determine what kind of data for wire entry variant. There is no documentation of LabVIEW because it is not a component of LabVIEW.

  • Problems creating reminder VI

    Hello

    I stumbled upon a strange behavior...

    I tried to save a TestStand ActiveX callbacks, but I am facing many problems:

    My first attempt to assign the reminder VI was the right click 'create reminder VI' which then shows a VI model which, in my case, reports the following errors:

    Certainly, two typedefs are considered to be ok (at least) for the rest of this application...

    I manually deleted the controls 'broken' and replaced by the typedef'ed a and cable them connector block.

    The problem appears when running: register for the reminder node returns error 97: LabVIEW: a null or deleted refnum was passed as input.

    What I am doing wrong?

    See you soon

    Oli

    Oli,

    can attach you the VI of the user interface and the controls here (as in the project, which means: in the lvlib)?

    Without lvlib, I have had no success in a very brief attempt to reproduce the problem from scratch...

    Norbert

  • Type of descriptor & cast a refnum

    Hello

    This question is a re-opening of this old thread, which ends with a non-response... (given that the proposed solution is supposed to disappear one day)

    http://forums.NI.com/T5/LabVIEW/LabVIEW-8-2-control-RefNum-type-descriptor-missing/m-p/592060/highli...

    So how can we actually down a generic refnum (command in the following example of VI) at its initial type?

    What I don't understand is that typeDesc property missing node, but type descriptor is still (and always will be of course, see http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/type_descriptors/ )

    So what?

    OpenG libraries use the descriptor type for many operations, but for refnum, apparently to stop down at the generic class of 'Server VI'.

    (in case you're wondering, I'm essentially looking for the same things, made the library of OpenG_Variant_Configuration_File, but rather than use the dataset, I want to use the cluster of references to data)

    I guess (and hope) it is very simple replacement of the old node of obsolete property or solution to this problem, but I can't.

    Any help?

    OK, been looking for this for hours, but of course, that I found the obvious answer right after asking.

    Just need to "unzip" the type descriptor internal using the node property value... OO...

    Display answer to my problem just in case something one day asking the same thing.

  • Problem with ActiveX / Excel / LV7.1 in the program who has worked on an old installation of LV7.1...

    Hello

    I have a LV7.1 program that worked when ran on an old installation of LV7.1.

    I installed Office XP and LV7.1 and you can open the program without any problem.  After the opening I ctrl + shift + click on the run button to force the recompilation and the arrow becomes broken.

    All the mistakes I found are the same: invoke node contains terminal unwired or bad.

    Here is a screenshot of one of the erroneous block diagrams.  I hope that the error is recognizable.

    Only two issues I can think of are:

    1. I'm running Windows 7 - maybe the ActiveX does not work the same way?  I'm currently installing Windows XP to see if this corrects the problem.

    2. perhaps, there was an Office toolkit or something used with LV7.1 to create this program?  If so, any ideas on what it was and where I can get hold of it?

    Thank you

    Dave

    I suppose that the node to invoke in the picture is the node throwing the error.  Have you tried right-clicking on the refnum automation on the front panel control and a link to the ActiveX component.  If this solves the problem, it's probably the version of changing object model.

    Good luck!

    -Bob

  • RefNum Slide 'Visible '.

    I have a Refnum to a slide (which is passed to the Sub - VI).  The slide is on the Panel of the parent.  I spent the Refnum zipper to the Subvi using 'Static Reference of VI' and 'Invoke node with Val.Set Ctrl', the problem is that the slide is visible only when you use it.  I can't see how to get to the Visible property of the blade in the Subvi through its Refnum.  Is this possible?

    Hi Christopher Povey,.

    Check the attached report. Let me know if it helps.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a Solution If your problem is resolved)

  • Mechanical action and control refnums button

    LabView 8.6 running full (not 8.6.1) on Windows XP SP3

    I have two buttons for which I created references to pass to a subvi (to control

    visibility of the buttons during initialization).   On the Sub - vi are two Refnum controls

    strict ("Include the data type" is checked).    However, at the higher level, the two refnums for

    the (apparently) identical buttons are different.   A refnum is strict, and the other is not!

    Of course, it was a problem because it wouldn't let me connect the refnum at the

    Sub - vi.

    I tried different combinations of duplication and re - bind the objects of reference, but it

    always came with a strict and the other not (always the same the same)

    way).

    In the end, I found that the only difference between the two other than buttons

    the name of the label and the Boolean text is that the mechanical actions were different:

    -the button which the reference was strict "lock when press".

    -button with the non-stricte reference a 'Switch to exit.

    Is there a reason why the choice of mechanical action

    should affect the "rigor" to a Boolean control refnum?

    Or is this just another trait 'unexpected '?

    (Not a problem because it was the wrong mechanical action)

    has chosen to start with the option - which fixed and solved the problem.  But it

    looks like it might be something interesting to learn here.)

    Thank you and best regards,

    -- J.

    When you have a mechanical locking action, you cannot use the Value property to read the value of the control. Thus, its data type (which is what makes it strictly) is not included. That's my guess.

    In general, the right thing to do would probably be to click with the right button on the reference control and uncheck the box include Data Type, which would make it not strict. In addition, could have tried cast of the reference to the class that you want to, but you would want that it works as if it were in fact of the class concerned.

  • event recording refnums data types do not match

    Hi all

    I'm new to LabView and I need help. Here's the situation:

    I am trying to add a user event by using the function 'create a user event '. The output of the function 'create a user event' placed in a control "Event Reg Refnum" (do not know if it is a control), but see diag2.png. But as soon as I add the user, the thread event at the entrance to breaks "event Reg Refnum".

    I think I know sort of what the problem is, as stated in the context-sensitive help, where the 'Reg Refnum event' has only one data type, which is "User event - Quit Application event". The user event that I add, 'Event to end execution', is not in the "event Reg Refnum".

    The question is: how to extend to the Reg Refnum 'event' to include 'Event - event to stop executing user' to solve my problem?

    Can experts out there if you please help me?

    Yours,

    chati

    Hi chati,.

    the fastest way to do this is to cut the connection, create a control on the exit of 'register of events' and add this to the cluster instead of the original refnum.

  • Cannot create a control or the indicator for a refnum of the display of images in LabView

    I need to move a refnum to a control to display the Image, but find that I can not create a control or an indicator for such refnum.  I can create the refnum without problem, and when I right click on the refnum I gives me the options to create a command or the indicator; However, when I select one of these options no command or the indicator is created.

    I am running XP.  I installed Vision 8.6 at a given time, but had to uninstall because it damaged this control.  I don't know if it affects this type of control to a lower level.

    You can probably do it the hard way by using workaround.  Convert your reference to a Variant or flatten it into a string or cataloged full - some LV allows.  In the Subvi, convert it back into a reference.

    Bruce

  • is it possible to use a file refnum as mathscript node entry

    Hello world

    I started using the LV and mathscript recently. A problem confuses me a lot.  It's

    Is it possible to use a file refnum as the entry or exit of the mathscript node? A picture is attached for your reference.

    Thank you very much!

    Gary

    What would you hope to do with the reference?  The Mathscript node is not a file of reading ability.  You must read the file and transmitting the data in the Mathscript node.

    EDIT: I was wrong.  You must use the functions fopen and fclose inside the MathScript node to be able to read a file inside.

  • Error: using a bow instead of a refnum

    Hi, I have a basic question. I plugged the 2 terminals of the same type (e/s FPGA), however, I get an error (I have attached a screenshot). The source is an FPGA of IO from a node and the sink came FPGA of e/s of a FPGA Read/Write.vi. The terminals are of the same type; Why do I get an error? Connect a refnum at the vi does not cause an error. Why?

    The problem is not the node against refnum, this is the channel you have selected.  In the picture in your initial post, show you the node IO SEO Module1/DIO2 and refnum Port8/DIO0 SEO.  These channels may not support the same set of methods.  According to the e/s node name control FPGA configuration (FPGA Module) (sorry for the link broken in the previous post), "when you use a control FPGA IO as input on a Subvi, entry accepts only the I/O that support a superset of the methods and properties that you enable for the FPGA i/o control.".  You can configure the properties that are needed by right-clicking on the control on the front of the Subvi and choosing "Configure IO Type."  If you eliminate the methods or properties that are supported only by Port8/DIO0, you should be able to connect successfully to the Module1/DIO2 even a knot of IO.

Maybe you are looking for