Jump to content

Ravi Beniwal

Members
  • Posts

    97
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Ravi Beniwal

  1. Hi Phillip,

    This is how I've been alternate coloring the rows too. I wish there were a way to select all odd or even rows with some odd index (-3 or something). That'd be awesome (and probably faster if there were too many rows to color, even with panel update deferred)!

  2. You could use the following code to set all cells of mclb to the same format.

    post-853-0-56691200-1324396823.png

    This not a "clear formatting" method, but it works and it's efficient.

    Regards,

    Olivier

    I've also used this and its other variants (for selecting all columns in a row etc.). It works pretty well.

    Now we need a way to select all alternate (even/odd) rows/columns. That'll help when you are trying to color alternate rows/columns for ease of following a large table across/down.

  3. Another display option could be visually changing the appearance of the plot to "highlight" it to show that it was "clicked" or "selected" and then scroll the plot legend to show which plot that was. Conversely, you can click on a plot name in the legend and it can "highlight" the corresponding plot in the graph.

    I've wrapped all this up in XControls; works great. In the screenshot below, the red plot was clicked. The legend scrolled to bring the corresponding plot on the top and also highlighted the plot name (in blue).

    post-9308-0-74554100-1318254437_thumb.pn

  4. So could there be a setting called "Auto-wire Shift Registers in Loops" which could add wires where it thinks you mean to (or need to) have them? :)

    Not that it really matters either way; many times what LabVIEW thinks we are trying to do is not actually what we are trying to do and we end up changing it.

    We are already creating shift registers and wiring through them for errors and references. Now we are just talking about how much automation makes sense in this case.

  5. I disagree - something so fundamental as tunnel behavior, particularly in a niche case, shouldn't be a setting. I don't have a solution to the problem, but I don't think functional behavior should be squirreled away in configuration.

    But how is this different from the setting that currently lets us "Auto-insert Feedback Node in cycles", which when turned off results in a broken arrow? I believe it is turned off by default.

  6. A noob that does it after the change will have a broken VI because the SR on the output side are un-wired.

    That makes sense, but what happens when a noob wires something out of a case structure? He gets a broken arrow, which pretty soon makes it obvious that the output tunnel either has to be connected from every case or be set to use default for unwired cases.

    But I guess there could be an easy solution for it. While a shift register could be automatically added when a ref or error is wired, may be it can also be automatically wired through the loop to the other end of the shift register.

    Another option could be to add this feature, but turn it off by default so noobs don't run into it.

  7. If putting the LEDs in an array or a cluster an option, instead of having individual LEDs and then adding them to one event case, it would make the whole thing easier. Then you can just use the the single value change event for the array/cluster, which will give you the old and new values and then you can

    If you XOR the old and new values, all the changed booleans will be True.

  8. This may be due to the coercion dot, as reported here: http://forums.ni.com...scending#M6325.

    It appears to still be there, though I don't recall if this was ever determined to be an actual problem.

    In the case of the For Loop, when the string is converted to a U8 array, some memory was claimed, which would cost some time. Including this time, this case completed within 1391ms. Now in the int to string case, we can think of the coercion as claiming another same size memory location with its added time cost. So wouldn't we see more like twice the time it took for the first case instead of about 13 times?

  9. I didn't know queues behaved like that (error input true to the queue returns a blank element). That's really weird, why not just have it return nothing, i.e. no dequeue and pass the error cluster?

    Hi Alex, that is exactly what the dequeue element did. It did not dequeue any element and returned "nothing". Nothing in case of a string is an empty string. Also, it passed the error cluster, which is why the error kept circling through the loop and it couldn't even read the Exit message and you had to abort the VI.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.