used in a Subvi LabVIEW property node

I have a group of Boolean control front, I want to minipulate the visibility and color (4) in a Subvi.  I created a Boolean refnum cluster and spent by them in VI.  In VI, I created a group of CTLRefnum that I used as entrance pole.  In the Subvi, I am able to control the visibility through the time property node, but the Color property node (4) does not appear as a selection in the Sub - VI.  Any ideas on how I could control the colors in a Subvi.

Hello HEJ@WR,

Looks like you may have thrown your refnums Boolean to more generic control refnums - as the Color property is specific to Boolean values, you will need to ensure that you are now the reference type.  Visibility is a property more generic that applies to all types of controls. Refer to this article for more information on casting refnums:

LabVIEW Help: For more specific class function

http://zone.NI.com/reference/en-XX/help/371361H-01/Glang/to_more_specific_class/

LabVIEWWiki also has a very good discussion of types refnum and properties specific to the class here:

LabVIEWWiki: Control references

http://labviewwiki.org/Control_References

Also - if you set the example code showing what you're trying to do is much easier for other users of the forum help!

Kind regards

Tags: NI Software

Similar Questions

  • Sample quantity sample DAQmx channel property Node substitute in LabVIEW when = 1

    [cross posted from LAVA] 

    Problem:
    LabVIEW seems to be the substitution of a value of 1 to a value of 2 for the node property DAQmx Sample Quantity.Sample per channel for a continuous acquisition mode.

    Information:
    I have a task created in MAX (version 4.4.0f1).
    When I updated To Read samples 1 the task runs successfully in MAX.
    When I read the task in LabVIEW (8.5), the property node Sample Quantity.Sample per channel (i.e. the samples to read) is converted to a value of 2.
    If the value is greater or equal to 2 to the MAX, then the Sample Quantity.Sample by channel in LabVIEW property node returns the correct value.

    I get the same problem with a real or simulated device.

    Question:
    Is this desired behavior?

    Side note:
    If N samples (acquisition of buffer finish) is selected samples To Read cannot be 1 because it causes an error 200077 - must greater than or equal to 2.
    But no error will occur when the task is saved as a continuous (continuous buffer acquisition). I don't know if this is related. The error generated is:
    Error-200077 occurred to the DAQ Assistant
    Possible reasons:
    Measurements: Requested value is not supported for this property value.
    Property: SampQuant.SampPerChan
    You asked: 1
    Valid values begin with: 2
    Valid values ending with: 8589934590

    Shouldn't

    Hi JG,.

    Remember that the number of samples (one associated with DAQmx sync settings) is not relevant for continuous acquisition.  To read a sample at the same time, you simply specify this in your DAQmx playback function.  When you configure MAX to read an excerpt, it makes this same functionality automatically.

    You will not be able to get the value of another property node as the value is converted as soon as the channel is created (the value non-sous the constraint is not stored anywhere by the driver).  It should not be a need to this value in your code, if you want to read a sample to a schedule the DAQmx read simple example of function.  The amount of samples by reading is not part of the task itself, but is defined when running as an input to the function read DAQmx.

    You get the error message indicates that your device supports should not single-point HW timed - I would have probably asking which device you were using.

  • Using the table as a MATLAB script for entry into a Subvi - labview crashes

    Hello

    I have problems in creating a Subvi, which includes a matlab file that has a table as input.

    I created a VI, who runs a simple matlab script, with a table as an input and a table as output. It worked well, until I assigned the terminals in order to to use as a Subvi.

    After that the terminals have been assigned, labview crashes instantly when you run the file.

    I also created a VI to test the Subvi, but I couldn't make it work at all, labview always crashed...

    Does anyone know a solution to my problem? They only thing I can think is to not use it as a Subvi, but then my master file will get huge as all the matlab code would be in there...

    attached are two files, so that you can better understand my problem. (test_... is the main file)

    any help will be greatly appreciated!

    -Jarno

    Edit: I'm using labview in 2013 with windows 7 and matlab 2014

    Hey, Jarno,.

    This is indeed a bug, unfortunately. Currently followed by using identification number of the 446431 cause. The question arise when moving from an array of doubles in the Script node. The only 'solution' at the present time is to use an array of singles instead. We are currently looking to identify a fix.

  • LabVIEW 7.1 IVI - C Wrappers and VISA property node do not work together?

    Hello world

    I want to use the property node VISA with LabVIEW 7.1 Wrapper of two companies different well known instrument, Rodhe-Schwarz and Agilent Technologies.
    The two companies releasead their IVI - C for NI LabVIEW 7.1 drivers version NI Instrument Driver network and they are ready to be installed and used.

    I found a bug manifested that the LabVIEW 7.1 version that the bug is not present in whhen versions 8.0 LabVIEW or LabVIEW 8.6 than these IVI LabVIEW of LabVIEW 7.1 wrappers are used.

    Everyone could exeperience this bug if they have LabVIEW 7.1 installed and are trying to use the version of LabVIEW 7.1 of these wrappers which are published in NI Instrument Driver Network under the links below.

    Agilent ag81150ni IVI Driver for LabVIEW 7.1 install from here. Used in simulation that by definition simulate = 1

    http://sine.NI.com/apps/UTF8/niid_web_display.download_page?p_id_guid=55798957B1A633BDE0440003BA7CCD...

    Rodhe Schwarz rsngpt IVI Driver for LabVIEW 7.1 install from here. Used in simulation that by definition simulate = 1

    http://sine.NI.com/apps/UTF8/niid_web_display.download_page?p_id_guid=E3B19B3E91D6659CE034080020E748...

    After the installation of these two complete drivers close LabVIEW 7.1, if it was open, and then restart LabVIEW 7.1. You can see two new ready to be used as LabVIEW 7.1 IVI drivers in the LabVIEW Instrument Driver pallet wrappers in a LabVIEW 7.1 VI test.

    Open a new white VI and of the use of the Instrument Driver Palette two VI known, initialized with Options.vi and Close.vi adding them on the block diagram, connect all THMs. Accept all default settings except simulate parameter which must be defined as = 1 simulation.

    The two VI run OK mode of simulation without errors.

    Now select a property in the advanced Panel of VISA node and press this node between 'Initialize them with Options' and 'Close' VI and make all necessary in-out connections and error.

    Run these two simple screws of simulation

    1. When I run pilot Rodhe Schwarz IVI the property node going OK until the end. No error
    2. Whne I run Agilent IVI driver the property node is always out of the error Code 7.

    Question is why they behave different with regard to the property of node when it is used with the LabVIEW 7.1 envelopes? BTW, the failing VI of wrappers Agilent LabVIEW 7.1 works very well in labVIEW 8.0 and 8.6. That means that this problem is limited only the version of LabVIEW 7.1.

    I posted the same question on the set of LabVIEW and nobody chose their interest in there so I decided to post here. As this question is also linked to IVI, VISA drivers, it is possible the person of this group to get a clue about this annoying behavior.

    I've attached screenshots of the PNG files that show the difference of different behavior of VISA property between these two drivers node.

    ScreenTestShots.zip (152 kb)

    Thank you

    Sorin


  • How to use property nodes?

    Hello world

    I am a beginner of LabVIEW. So I want to know about the property in detail node. Please please someone help me to know the function of each property node...

    Thank you in advance,

    Hi Achuthaperumal

    I understand that you are a beginner of the LabVIEW. But I think it's too difficult to explain the function of each property node.
    Because there are a lot of property node in the LabVIEW.

    The main reason we use a property node is we want to change a LabVIEW action programmatically.

    When you create a LabVIEW program, you can change the behavior of "every indicator/controller etc." by changing the property.

    But in this method, you cannot change during the execution of the program.
    For example, if you want to control "the color of the Boolean indicator."

    You can use this property of node

    => Can I programmatically change the colour of the façade? http://digital.ni.com/public.nsf/allkb/0DDBDB2FE2F54A5286256918006D7BB9.

    If you want to know the function of each property node, I will recommend you to use LabVIEW HELP.

    Tepig

  • How to change the value of the array element by using the property node

    Hello all :)

    IM using a table in the drop-down list box. the size of the array is not fixed.

    I want property strings [] from the drop-down list box to enter text in selection, but since I placed it inside the table im unable to use this property.

    I used 'arrayelem' reference property and property node connected to it but got no strings [] in the selection.

    so is it possible that I can use property strings]


  • Bytes to Port property node. When to use and when not?

    Hi all

    Ive frequently used bytes to port property node performing bed series and have not experienced any problems.  I've heard mixed on this subject reviews and I would like to know when to use and when not to use it.

    Thanks for any input.

    I will start by when it should not be used.

    When there are (as readable) ASCII data to come through and it is separated by a termination character.  Select the stop character and read more bytes than you ever expect a given message.

    When there are binary data, but a protocol where you know clearly how the message package is put in place.  In this case, you want to disable the stop character because any octet can be given legitimate and be interpreted as the stop character.  With these protocols, if you know the message is always X bytes, read X bytes.  If the message is of variable length, but the Protocol is set to tell you low for a long time the message is, and then make partial readings.  So if each message starts with 2 bytes that says follow X bytes.  Then read 2 bytes, which converted to a number, then read this number of bytes.

    When to use:

    The only time will really use bytes to the port is if you use a terminal of the installation type.  Just enter and display on-screen what never happens happened at the port since the last time it was read.  When you don't care where are message breaks.

    If you use bytes to the port and care message breaks, then you're obligated to all your new message concatenated to a string, you store in a shift register and each reading analysis through data to determine if you have a complete message and valid.  If you do not, do nothing and go back and read more.  In fact, you will need to run through the chain of data several times in a row before coming back to reread in the case where the message ever resulted in a single reading packets.

    The vast majority of applications falls into one of the above situations.  The last situation is not as common, and if you use bytes to the port with a system of e-mail that has defined a defined protocol or packages, you do a job more in programming to maintain a software buffer of data as well as the hardware buffer to the serial port.

  • Crash of LabVIEW with nodes of Boolean property

    I work with a set of Boolean buttons and when I call a node property for the button and try to set the class for the reference entry in a script of NI845X I2C or configuring LabVIEW 8.0 give me a tile of error indicating that:

    LabVIEW .exe has incountered a problem and needs to close.  We are sorry for the inconvenience.  I joined the main array with Boolean properties that I'm changing the class on.

    The main Boolean buttons are in a cluster and loop until one of the buttons is true.  While the index rose so I can retrieve the text of the button to bring the state machine.

    Gary Tyrna

    Tahoe RF Semiconductor, Inc.

    ggaryt wrote:

    Jeff,

    If you can open the VI and go to the block diagram and one property buttons and right click on it.  Go down to "select class", NI845X, and then choose between the two choices of NI845x I2C.  Then once you have selected one of the two classes down the cursor down to the property select box below the error in and out and out property and config in.  Once my LabVIEW aura error within 5 seconds and then close after I click on the 'OK' button in the slab of the error.

    Try this and see if you get the same results.

    Gary

    What you do makes no sense at all!

    Why you try to change the property node of a Boolean control to a class of N845x?  We do not have this installed class, so we will not be able to reproduce your problem.

    You don't have any kind of reference wire connected in these property nodes.  If you did not have a wire of the correct class reference, then perhaps LabVIEW would know what you tried to do and would not crash on you.

    If you dropped an empty property node in the palette of control of the selected Application class, it always crashed on you?

    What happens if you have disconnected the chain wire coming out the property text node, then tried to change the class, it would break.

  • distinguish between the indicator and controls using property nodes

    How can I distinguish between controls and indicators property nodes?

    I find that the controls and lights on the Panel before all come from the same class... a digital control and a digital indicator share the same properties... I am trying to find a way to distinguish between the two.  I would like to be able to analyse a reference VI pull only the references to the "controls" or "indicators" on the front panel... but when I try this, I shoot all...

    Although I found this case a knot of property ' control value: get all ' referral of VI, I can choose between only indicator or only the values of the controls... it's close to what I want, but instead, I like to shoot only the references to the Group of the "indicators" or only the references to the groups 'controls '.

    does anyone know if there is a simple way to do this?

    Thank you very much!

    Suprisigly to search for flags search controls

  • refnum and the Boolean property nodes

    Hi guys,.

    I have a weird problem where if I create a property node and connect it to the refnum of a Boolean value, I use in my Subvi what happens with the variant data type.

    Now, I know normally it means that the Boolean control is set to a lock rather than a State of the switch. However, even when I configure the refnum of the switch on the Subvi "switch when press ' it still maintains a variant data type.

    Bascially, so what I'm asking, it is, is it possible to get the mode of Boolean data back using these property nodes?

    The main objective of this code must be able to have a "Stop executing" button on the front panel and who put an end to the Subvi, which will run at the time and return to the main program any when that button is pressed.

    The joint screws are written in Labview 2012.

    Bravo guys.

    Hello

    Home screen to the type of data in the control of reference of the Subvi.

    You may have noticed a red dot on the Sub - VI control reference entry in the main VI Boolean node.

    Also attached are the VI.

    I hope this helps.

  • Error: The property node (arg 1) in .vi VISA set up a Serial Port (Instr)

    Hello

    I've seen people once they have gotten this error, but none of them really apply to my situation.

    Right now I use LabVIEW example code to read from a device manufacturer. This device is connected using a Tripp Lite USB adapter series (http://www.tripplite.com/en/products/model.cfm?txtSeriesID=782&txtModelID=2430) for the connection from the PC to device with RS232. The adapter works fine when using the software prepared in advance (not LabVIEW) given by the manufacturer and the COM port is seen by LabVIEW. When I run the program, I get the property node (arg 1) visa set up a Serial Port (Instr) .vi (I've also attached the VI but it's a standard VI I got of LabVIEW). I get this error despite the fact that I use the same COM port, who has worked with the manufacturer's software.

    I have attached manual of Protocol RS232/debit BUS (not sure if this applies) that requires the device. The device is a mass flow controller whose operating instructions is: (http://nemu.web.psi.ch/doc/manuals/device_manuals/Bronkhorst/917023--Operation%20instructions%20digi...

    I'm using LabVIEW 10.0.1

    Any help is appreciated

    Try to restart the PC and then try the LV version before trying other software.

    I have seen thrid party serial interfaces work on the first try but fail when you switch to another application. It was as if the pilot did not know that it was no longer the first process.

    Ben

  • Line break in the name of the Enum element? (no further questions on the property node)

    I don't know what is the meaning to allow element enum with line feeds them names (\n):

    It is easy to do by directly editing the control over the public Service or a constant on the comic, but it's somehow not if you use the context menu 'modify Items... "who jumps to the top of the Properties window.

    As a subsidiary question, if I try to do it programmatically:

    It fails with this error:

    which simply means

    That's the script as an indication only (never used script before)? If I disable the "Show script methods, etc." option, it is still available though...

    This type of property node is useful if you use LabVIEW to write LabVIEW.  The main example of this is the DAQ Assistant, but things like the right frame click JKI also do.  You usually encounter when writing automation tools development.  For example, this particular node would be useful in a tool that converts a task manager based on a string to an enum-based task manager.

    You can find the full properties of each property and method using LabVIEW.  This includes whether or not it will work in the execution or change environments.  The enum is an interesting case that confuses many.  Modification of strings of the enum of the code changes.  Most people who want to change the strings of the enum runtime should use a ring or a listbox, instead, since you can change their strings at run time.

  • niDMM property node

    niDMM property node I use LabView 2011 on Win7. I'm working my way through the part of the "verification Procedure" of the "NI PXI-4071 calibration procedure. Step 5 of the procedure of verification of applications invoking an "accessible property niDMM node in writing to set the resistance of the NI 4071 entry" with the schema of Figure 5.» How is called this property node? Is there a control it is called from? Please provide the required steps. Thank you

    For me, the Instrument of e / s->-> NI-DMM instrument Drivers

  • Why property nodes are not accept input?

    Well, this one is driving me crazy.  I have a Subvi, which contains a string indicator and a drop-down list box, as well as a few buttons on the front panel.  My problem is that when I run the program (in LabVIEW, not an exe file) sometimes the window Question (the light) accepts the string and updates the property of Caption.Text, sometimes it doesn't.  At the same time, sometimes the answer box (combo box) accepts the Bay of cluster in it is StringsAndValues well, sometimes it doesn't.  They both either work, or they do not.  Never a problem with accepting Question window indicator string.

    The block diagram:

    Here is an example of the code powering the Subvi.

    I don't get any kind of error message.

    Sensors at the entrance of the property offending nodes indicate that the correct data are happened to them, it is just 'ignored '.  Once it starts to spoil, it usually continues to do.

    It seems that the only way I can get to behave correctly should quit LabVIEW, and then restart LabVIEW and run the vi.  Then it will usually works a few times until it starts to work.

    (Win 7, LabVIEW 9.0f3)

    Thoughts?

    THX

    What is the source of the wire that goes into your sub - VI Q & A mistake?  Is it possible that you have found errors on this thread?

    If there is an error, these property nodes will not run.

  • RT - property node error 1055

    Hi all

    Currently I develop an app RT on LabView 2014 SP1 which consists of three parts:

    • A PC vi that read the data and sends it to the target of RT;
    • A RT vi running on the CRio-9074 which receives data, convert it to current values and send it to current output modules. It also sends PFGA a number of pulses must be generated.
    • A FPGA target that receives a number of pulses to be generated and then do the work by a module ttl

    Things will work perfectly when the RT vi cover is open on the PC. This happens when I enter debug mode simply run the vi RT of the Project Explorer.  The problem started to happen when I tried to run the program without the RT vi front open. After some research, I discovered that the application of the RT was generating an error 1055 in a stream property node. The strange thing is that this does not happen while the RT vi façade is displayed on the PC!

    Althouth it seems to be a problem known as I found on the Web site of NOR, it is not clear for me, how do I solve the problem. Should I just close the RT VI, open it, close the vial, compile and deploy it finally? Well, if it is that means that workaround, it did not...

    537230

    Return

    Changes to the VI with dynamic references breaks VI with the error-1055 the Node property
    When a VI deployment that allows to get a dynamic to refer to a control on a x 64 Linux target in real time, the VI deploys successfully. After you make a change to the VI, error-1055 is thrown from any node property is trying to access the dynamic refnum. The error says "error-1055 has occurred to the property node...". »

    Workaround: Close, and then reopen VI.

    Report version: 2014 SP1    Solved Version: N/A    Added the: 23/07/2015

    Thank you all for the help. I use a few cards in the RT vi and was the use of the nodes properties to clear the history. These cards are only for the control of the application while it is still in development, and it worked fine while I ran the RT application with its façade exposed on the PC screen. At the moment I leave be executed only in the CRio, he started planting and throwing the error 1055. I removed the nodes properties because they are not indispensable and everything works fine.

Maybe you are looking for