Disable lock by property node action problems?

Hey guys,.

I recently learned how to use the structures of the event to handle the two-step linear control. It was cool. Before, I was running a state machine, and it was a bit heavy.

I am developing a user interface to control these steps, and there are two types of movement I want the user to choose. The first might be called "motion of joystick; you press the left button (and hold it), and the scene shifts to the left until you release the button, or exit button (I have an event for each case, and they do the same thing, namely to stop movement). The second type of movement is "additional query. Here, the user should set the left button and the stage would move 1 mm to the left and stop.

Here's my problem. When I first programmed the "joystick motion", it works fine. Perfectly. Then, I wanted to make the differential movement. Also, that works perfectly. Ok. So I wanted the user to select the type of query by using a Boolean value; that is, they support "the joystick movement" and then these controls become enabled. So I thought that I'd get fancy and property nodes allows you to disable/gray keys that should not be used and select the buttons that should be used. It seems to work GREAT with my "additional query", because at the moment, these Boolean buttons are latch - when pressed and buttons on the block schema reside in the case of the event [which handles the change of value]. However, my 'motion controller' buttons reside outside the structure of the event (but inside the while loop that surrounds it) and it seems that even if the property node "correctly" their gray out when you press the selector button of movement, you can always click on them and the scene shifts. This does not happen with the extra buttons "motion".

My hunch is that

(a) I'm not smart enough

(b) that the location on the block diagram of my buttons that control the motion "joystick" is wrong (i.e. they should be inside the structure of the event somewhere)

(c) that I have to use another type of mechanical action on the buttons

I read / saw somewhere that the latch - when pressed must reside in the case case that handles the change of value, but I don't really know what to do with Boolean values buttons that have cases of event like "down/up/leave mouse". Any help would be great. Thanks in advance!

The problem is that you use the "Mouse Down" and "Mouse Up" of events for the buttons of the gamepad and that these events still occur when a button is disabled, even if the value of the button does not change. For the buttons of the gamepad, try to use the value Change event. In the case where the structure, use the NewVal (or the appropriate button terminal) to determine whether to start or stop the movement, based on whether the value is true or false. Or, if you wish to continue using the mouse down event, then you must use the value Active Joystick stored in the shift register to determine whether or not to act on these events (wrap functions VISA in the case structures so they run only when Active Joystick is true).

Tags: NI Software

Similar Questions

  • Problem with the Value property node (MacOS)

    Insofar that I tested it, the nodes of property Value (and value (signalling)) do not work under MacOS: value property is a Boolean value, the value (signaling) as a cluster (width, height).

    Even with the Boolean controls, the node does not work.

    Not such a problem in LV 8.6.

    Am I missing something? Is that some 'of use' ? Or just a bug?

    This looks like some sort of problem of indexing with the nodes property as somesort of corrupted installation.  What happens if you just delete the property node and recreate him?

    I filed a digital control and looked at the context menu of the list of the nodes property.  Below value and value (signs) are Visible (which would be a Boolean value) and Xcontrol, that when you bring through the submenus, the first choice is container bounds, a cluster of Width and Height.  If these 2 types of data which are located 2 below in the list match those you found.

    What happens if you take another node in property a few elements upwards or downwards in the context menu?  Fact is happen for other properties, and if so, are thereany properties who agree?

    Here's what look like my property for a digital nodes and I draggged the box up and down to show the natural order of the nodes property.  Notice that I have script installed, so there are a few other nodes property (and the blue box at the top) you may not have.

    PS. Verify you the signature.  Kudos button is now moved to the left since the update of the forum.

  • the property of the graph XY value node labels problem

    Hello

    I have a XY Chart, and in coding, I have introduced into different clusters (cluster of two elements, each of them is a table 1 d).

    To sort the chart "remembers" the old data labels (data type, see background windows help), and I can just change it to the new.

    Let me explain better with this picture:

    The goal is to get the appropriate data type when I read data from the XY graph through the property node. I want to see 'curve' when I ungroup by name, not a former name of "DAC (V).

    Please don't tell me to delete this graph and create a new. This of course solved my problem, but I would like to know, how I can "force" a XYGraph change its names of data types...

    I've also attached a VI test to show this behavior...

    Suggestions?

    Thank you

    Kind regards

    Yes, it seems to keep outdated information. I was able to remedy to temporarily a table 1 d complex wiring to the terminal of the XY graph, then your cluster back wiring.

  • The XY graph Plot.LineWidth Property node problem

    Hello!

    I have a loop, where I repeatedly putting curves in a XY Chart. In the first iteration of the loop, after the first corner appears on the graph (I send data from the graphical indicator), I use a Plot.LineWidth Property node to align the thicker. However, in the next iteration, when the second plotted curve appears on the graph, and the property node is pulled again, the second curve remains thin. I guess what I've done wrong, that this property node defines only the first curve? How can I set the width of the line of all the curves of the XY graph on the same value? When I directly on the properties of XY graph, I can set the width of the curve, but only one by one...

    Suggestions how set the widths of the ground on a specific chart XY?

    Thank you!

    If it is a multiplot XY, you must set each plots properties by using the property activeplot (index of the new lot), then by setting the thickness.

  • Graph plot legend colors Signal not updated when mixed with the property node

    Hello

    We try to put the colors of the trace of a graph of Mixed Signal using a property node. Although we can change the color of the data in the field correctly, the colours of the plot in the legend do not change until some apparently unrelated operator action is performed (for example, to resize the window or by double-clicking a field name).  Waveform to XY charts don't seem to have this problem.

    Anyone know a work around?  I think I saw a similar topic on the forums earlier, but I'm sorry that I am unable to find it now

    See attached vi.

    Thank you

    -john

    I should probably have joined the last post of VI, but I have has been a thread of error between the two loops.  I also deleted the text you had so I could see the I need to press the button.

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

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

  • DAQ channel property node

    Hello world

    According to the statement, NOR for the verification of the Pxi4330 procedure, I need "Disable calibration shunt for the channel by using the property node DAQmx Channel, you can find custom I/O" DAQmx - data palette purchase LabVIEW. "'" ' Select the analog input"General properties" conditioning of signals ' bridge ' Shunt Cal "activate property of Shunt Cal. "but I can't select this property that I want to say there is no property such as?

    What is everyone knows what the problem is? I lost 3 hours to solve this stupid problem, still can not find it.

    When I choose the General Properties property, analog, node there are two options that are not the answer.

    Please help me on this

    Thank you

    Hi Eric,.

    You have an SMU-4330 installed on your system? There are MANY properties of different devices, and to avoid confusion of the properties that do not apply to you, DAQmx tries to hide the properties that are not applicable to all devices in your system.  If you don't have an installed SMU-4330 (or a simulation of SMU-4330), then the property you are looking for appear by default.  To find it, you have two options:

    Option 1: turn off the property node filtered by right-clicking on the channel property node, by choosing "Select filter...". "and then selecting"display all the attributes:

     

    or Option 2: install a real SMU-4330 or simulated in your system. You can install a device simulated through the program of Measurement & Automation Explorer (MAX):

  • Programmatic property node

    I'm running into a bit of a problem with Labview which until now we were able to kind of work around, but it is more a problem, we are working on our application.  I'm using Labview as a user interface to control and retrieve the information of a Zigbee wireless network.  Part of our application requires using a large number of Boolean flags on the front panel, each representing a wireless device.  From now on, we from our application with a number of hidden indicators and making them visible one by one like devices introduce yourself on our network; This is a workaround for the fact that he doesn't seem to be a way to programmatically create indicators.  If I want to change the position of a subset of these indicators properties using property nodes, is it possible to programmatically reference an indicator?  For example, that our indicators are named Tag1, Tag2, Tag3, etc..  It would be easier to have a loop that writes the positions to a generic property node that can be referenced to specific indicators, perhaps the entry is a string for the indicator label that can easily be incremented according to the current iteration of the loop for.  Is this possible or is at - it another way to do this?  Thank you.

    Dan

    DanRW wrote:

    .. .it does not seem to be a way to programmatically create indicators...

    This is true; We cannot add new items since she would need to recompile the code running. Your method of masking/display of objects is quite valid, however, and I've seen it used in many GUI.

    ' This code snippet is similar to Jeff, and yet allows you to enter a name of a control (IE LED indicators are considered as controls in the VI server references) and move it by pressing the change Position of "boolean lock.

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

  • Local property node on the VI Analyzer VS variable

    Hi I'm preparing my review of CLD. I had this problem...

    I learned that there are two methods to update the icon on front panel using the value of the variable local node and property

    It is not a good method to update an indicator using these, but if we want to update a control, then there is no choice...

    CLD NOR recommend using the property instead of the local variable node, but when I run my code on the VI Analyzer he created an event

    believing that it is better to use a local variable for good performance...

    ???????

    Yes, the text is correct. Property nodes are useful to access things like visibility and string [] in the control of the ring, but for the value, it is much slower than a local variable.

    One of the advantages is that there wired error so you can force the data stream, and given that the nodes property are executed in order, you can use a property expanded node to find out what order things occur, especially compared to a free local and free property node, in which case you would be forced to use a sequence structure where ofc is a bad solution.

    /Y

  • [] DisabledItems property node

    Hello

    I use a couple of controls of the ring to allow the user to my GUI to make certain choices.  I want the options available in a ring of control depend on the selection made using it.  I do this using the [] DisabledItems property node.

    See the attached example.  The selection is made by using the 'Commission' control affects items that are disabled in the "Image Type" control.  However, it is still possible for the user to select an invalid option (which would cause significant dysfunction of the overall GUI) indirectly.

    For example, in the attached VI, select 'CBS' in control of "Board", then select "Initial start-up" in control "Type of Image.  Then change the jury selected in "ACB".  The type of image remains as "Initial Boot" (although gray)-a scenario that is not allowed.

    Is it possible to prevent the disabled items in remaining selected?  Otherwise, is it possible to report when a disabled element is selected, so that the user can be prompted to change their choice?

    Any advice greatly appreciated.

    Dan

    I find that the Structure of event helps out a lot in situations like this.  See my attached VI... in the case of change of value for the control of the Board of Directors, I see if the current Type of the Image is one of the newly disabled... and if so, I change its value (in my case simple, I put it to "Operational" since this seems to be a correct value for all types of room).  I hope this helps...

  • How to set the property node maximum xscale for several scale XY Chart

    Hello

    I use a graph XY with three X axis and three scales of axis Y to draw the three sets of data. This works well.

    What I do now is to set the Xscale.Maximum property node for one of the x-axis (the other two autoscale). If I click right in the (Create Blockdiagram; Node property; X scale; Maximum) I can not choose what x-axis I want to put the Maximum for.

    So my question: how to select a specific axis allows you to set the XScale.Maximum property node when having several axes?

    Thank you for your help, any suggestions are appreciated!

    Hello

    After some more research and experimentation, I found that using the scale property X Active I can determine/set for which the XScale.Maximum Xscale is used.

    This solved my problem.

    I hope someone else can save themselves a few hours with this thread!

    Thank you

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

  • Graphic property node indicator position

    Hello! I have several graphic indicators and I want them to appear on certain positions, so I created property nodes where I define their exact position. I have a tab control in my design to separate the 2 pages front and the problem is that indicators are displayed on both pages. I want them to appear only on one page, how do I solve this problem?

    Thank you for your time.

    Hi cocopa.

    On the front panel, if you drag the graphical indicator in the appropriate page then it should stay there. If the graphical indicator has a shadow, it is on the top of the tab rather than inside a page control. In the block diagram, you must have a business controlled by the tab control structure. When you want to adjust the graphic position, have the indicator and the property node in the box to the right page. That should allow you to move the chart inside your tab control page.

    Kind regards

    Daniel H.

Maybe you are looking for