From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI Idea Exchange

Community Browser
Top Authors
cancel
Showing results for 
Search instead for 
Did you mean: 
Post an idea

I'm used to do some "object-like" coding in C, like using function pointers in structures to behave like method in classes.

 

Unfontunately, the code completion is not working as I would expect: the function is not recognized when it comes from a structure, but in cases where the field of the structure has the same name as an existing function the code completion uses the function (which may be misleading)

 

I have some other complaints about arrays in structure but I have no precise example to give.

 

Hi,

 

I'd like to suggest another command strengthening the table control: Because tables can be used also for documentation, it would be helpful to ease the printout of table controls by a dedicated command.

 

The PrintTable command should not print scrollbars, and it should include

 

- two integer attributes for the number of columns/rows that shall be printed per page

- a boolean attribute indicating if tables too large to fit on a page are split first horizontally or first vertically

- an integer attribute specifying the font size

- a boolean attribute if the header shall be repeated on subsequent pages

- a boolean attribute if the frame lines are printed or not

- two boolean attributes if the vertical/horizontal grid lines are printed

- an integer attribute specifying the thickness of the frame lines

- the option to generate graphic files (png, jpg): if several pages would be printed this should result in several graphic files

 

Right now these goals can be achieved only by creating a second, hidden table control with the requested attributes which is then filled programmatically.

Hello,

 

If one is interested in having a popup menu that shows up only for row or column headers it would be convenient to have the analogon to the event EVENT_TABL​E_ROW_COL_​LABEL_CLIC​K (which actually is a EVENT_TABL​E_ROW_COL_​LABEL_LEFT_CLIC​K event...), i.e. I am suggesting an event that is fired when a right click is received on a table column (or row) label.

 

It should be added that right now this is already possible with 11 additional lines of code, see the example colview, so I do not consider this idea as urgent Smiley Wink, but still...

 

I had a customer associated with SR# 7325346 ask how to change the maximum value for his Y axis in CVI.  I rightfully directed him to the SetAxisScalingMode function.  The customer told me that they were using an equation to determine the Max parameter for their Y axis [YMax=2*x + sqrt(x) + log(x)] or something to that effect.  He also said that the equation could change to something else, and he would like to change the equation on the fly within CVI. 

 

Basically, he's asking for functionality that would enable a text box to act similar to an Excel cell, which could evaluate simple equations such as add(val1,val2) or sqrt(val3).  We should build a tool that makes this possible.

Hello,

 

Following the discussion here, I suggest to allow the 'selection' of ring controls in order to copy and paste the displayed numeric value, even if the control is in indicator mode. For the user, an indicator ring control should behave (and look) identical to an indicator numeric control as long as both are indicators.

It would be convienent if there was a callback event that is fired after a tree/table control is sorted.  Note that this is not the same as EVENT_SORT, as EVENT_SORT is fired after the user has requested a sort from the context menu, but the items in the control have not yet been sorted.  Please see this post in the forum:

http://forums.ni.com/t5/LabWindows-CVI/EVENT-SORT-and-tree-controls/td-p/1539312

 

Thanks.

In a table every cell can have a different type chosen from:

  • numeric
  • string
  • picture
  • ring
  • combo box
  • button

I'd like a new type: Numeric Horizontal Level Slide (with color ramp, but without numeric display).

 

see this discussion

I'd like to be able to group controls together so moving them would be a single click on the group and drag.

CVI 2010 offers a great feature, I was waiting for: I'm now able to set an installation directory for e.g. program data, working data and so on using the RootDrive option building a distribution kit. But, why didn't you enabled the "make directory writeable for all users" option? On every installation, I would have to enable the user right "writeable" for all users manually as administrator.

 

Another feature for the future might be an directory option, which asks the user at the installation prompt for any installation directory to set up a specified program data directory. This option should also have a possibility to set up a registry key automatically (e.g. %UserDefinedDir), so that programs could find the user selected directory by reading the registry.

 

Thanks

 

 

It might be handy if the increment and decrement arrows on Numeric controls (as well as numeric cells in Table controls) had the option to increment and decrement by a percentage of the control's value, rather than just a fixed value.  Basically, I'm finding that I'm doing this type of thing quite a bit:

 

SetCtrlVal(panel, control, value);

SetCtrlAttribute(panel, control, ATTR_INCR_VALUE, fabs(0.01 * value));

 

This makes it so that the increment/decrement arrows on the control, when operated by the user, will change the control's value by a certain percentage of the control's value, rather than some fixed number.  It would be handy if there was some way to automate this more, in the sense that the user interface could handle this for the programmer.  I envision something along the lines of a new attribute like ATTR_INCR_TYPE where the programmer could set this to something like VAL_FIXED (for a fixed increment, as it behaves now), or VAL_PERCENT (the new proposed behaviour), and ATTR_INCR_VALUE would be either the fixed value, or the percentage.  Or perhaps someone else may have a better idea on how to implement this.  This would be especially handy for Table controls, where now I must loop through all the numeric cells on the table and set each increment value individually.

 

Also, note the fabs() above in the SetCtrlAttribute() line.  This is needed as I get a library error if I try and set the increment value to a negative.  Is there any reason that a value like -10.0 couldn't just be interpreted as 10.0 when setting the increment value?

 

Thanks.

 

In a Picture Control, with the option "Stick image to corner" the image is always sticked to the upper-left corner of the control.

 

I suggest that the user should be able to specify the corner to which the image should be sticked (upper-left, bottom-left, upper-right, bottom-right).

 

I've been thinking to this properties because I have some picture controls used as a background images, and I need the background isn't moved when I drag a splitter (see this thread)

Hi all !

 

I have some idea , it's a small thing but it can really help ,

 

When working with multiple C / H files you can switch between the open files easily in the files bar above the code area.

 

But when I'm closing the CVI and re opening it the files position in the changes , if i not mistaken i think the it's re ordering it by the previous stack status.

 

It would be nice to have the option to set a file order that will remain even after shut down.

 

Thank you.

Actually, specifically a dot matrix font along the lines of the existing 7-seg one. I know it seems like a small thing, but at the end of the day presentation counts for a lot. Remember the days when HP kit ruled? Sure it was good at its task, but there was never a shortage of frequency counters. No, what it had in spades was good looks and a kind of exuded  competance. UI's can do that too, as you know instantly when you see a bad one!

 

ps. There's probably less reason to include a set of Nixie tube fonts 🙂

I asked for this feature in this thread, but It's not available yet.

 

I'd like seeing the Y axis name displayed horizontally 0 degrees), like the X one.

I found the attribute ANGLE for control label and axes labels, but not for axes names.

 

I'd like a new attribute to set the angle for X and Y axis names for strip charts

I want to change the background color on a Ring Control drop down portion using the "paint tool" and then selecting the operate tool in the Quick Edit Window. When I select the "operate tool" to look at the background color of the drop down portion of the ring control it is always "light grey". Even if I change the color of the ring control using the paint tool the drop down background portion still remains "light grey". 

 

Provide a mechanism to allow the changing of colors to the drop down portion of the ring control to be changed programmatically also.  The current version of CVI 2010 does not provide this capability. 

 

 

I have created tables with multiple columns a few times, and seem to always have issues with my column widths and horizontal scroll bars.

 

1) Scroll Bars will show up focused on whichever column/row was added last.  So you if your columns go past your table width and the last column was last edited, it is aligned to the right.  I believe this should always be left or top aligned.  Just irritating that I have to ensure I change my row and column back to 1 so it is aligned properly.

 

2) There is not an easy way have auto-sized columns stay within the table size when fixed ones present. For example: I have 4 columns, I want the first three to be fixed width and the last to autosize based on the table size.  Currently this doesn't seem to work out in my situation with or without scrollbars.

 

3) Be able to select the column title bar to select to edit that column.  If there are no rows added, the user must manually retype which column they want to edit then click elsewhere to make it active. (Also true with no columns for rows)

 

4) Allow user to click and highlight and copy text, but restrict editing cells.  (But be able to change them programatically)  There are a few workaround with this such as double click event, but would be nice if there was a preset in the Hot,Normal selection list.

 

Feel free to chime in as I'm sure there may be a few I have not found yet. (Or perhaps I'm incorrect above and couldn't find it in the documentation.)

I'd like to suggest an enhanced version of the command GetGraphCoordsFromPoint.

 

Right now, the return status of this function indicates if the mouse cursor is within the plot area of the corresponding graph.

 

I'd like to have the possibility determining if the mouse cursor is above the plot area, i.e. within the plot area (pixelwise) and directly on top the plot area. 

The difference is in cases where the plot area is covered by other controls or menus: In this case (see the thread with example program here) the mouse may be well within the area, but not over the graph because the graph is covered (so the mouse cursor is over some other element)...

 

The motivation for this feature is the frequent wish to change the appearance of the mouse cursor: if it is located over the plot area, a cross hair cursor style might be more useful to indiciate e.g. mouse cursor coordinates, while if the mouse cursor is located above some other control element the cross hair cursor is disturbing and the default style is much more convenient.

Hello!

I have noticed that is possible to change color, visibility but is impossible to change the thikness of a vertical or horizontal cell grid!

It will be nice to have this attribute also because when printed the line has poor visibility.

Thanks a lot!

Raffaele

 

 

LabWindows/CVI is forcing a blinking cursor in the text editor window;
this I think is rather unfair; unlike all my other applications, it ignores
the Windows XP keyboard settings for cursor blink rate (=no blink).
It should never have blinked in the first place, and I can't locate any
option to disable this blink.

There should be an option to disable the blinking cursor
in the LabWindows/CVI source file editor; for many people,
blinking cursors can be disruptive to our concentration.

Hello,

 

I am using a graph with about a dozen annotations (not all of them are displayed simultaneously). Adding another annotation in the UI editor is not very convenient because I have to re-enter all the parameters glyph style, glyph color etc. Because there are about 10-15 settings I can not remember all of them and hence I have to switch back and forth between until the new annotation is ready... 

 

it would be much more convenient if I simply could clone an existing annotation and then simply change its text Smiley Happy