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.
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.
08-13-2018 06:01 PM
Hi All
I'm hoping someone can take a look at the attached code I am having trouble with. My ultimate goal is to implement an auto scroll for a Table in my main VI as I continue to populate it with test results using a subVI. Right now I am just trying to get the concept down since I haven't done this before, but I keep getting an "Error 1077 occurred at Property Node (arg 1)" for the IndexValue and I cannot figure out why. I have tried looking at other examples and dont see the issue.
As a secondary question, I want to change the "Pass" or "Fail" active cell to green or red as I continue to populate the table, is there an easy way using a property node to re-initialize all table cells back to the default blank color when I start my program? If so I can't seem to figure it out and cells retain their colors unless I write over them again one at a time.
Thanks!
08-13-2018 08:29 PM
I just wanted to say I found my issue with the first part, I was reading a negative number for the row, didn't know this would be an issue because I was copying examples.
Am still trying to figure out the second part. Thanks
08-13-2018 11:24 PM
First Q
You cant feed Negative values as Index Values to a Property node. [Table holds the index values from 0 to n]
Second Q
Make sure your default Table contains white BG in the status column. and use reinitialize to default at the start of program.
08-14-2018 11:04 AM - edited 08-14-2018 11:12 AM
OK I think I understand the second Q now. Thank you
08-15-2018 11:14 PM
For your First Question "Revisit your subtraction logic which gives negative values"
08-16-2018 09:09 AM
Understood. The reason why I had missed that part is that I was following the autoscroll table.vi found in this thread:
https://forums.ni.com/t5/LabVIEW/auto-scroll-table/td-p/226100
I still don't quite understand why it works as the row value is a negative number as well up until the point that it starts scrolling.
08-16-2018 09:17 AM
For the Q about setting the entire table to default color...
Use (-2,-2) for the active cell before setting the BG color.
See the help for "active cell"
Name | Description |
---|---|
Row | Sets the row(s) of the active cell(s). Possible values are 0…n, where n is the total number of rows - 1. Enter –2 to select all rows. |
Column | Sets the column(s) of the active cell(s). Possible values are 0…m, where m is the total number of columns - 1. Enter –2 to select all columns. Enter –1 to select the column header. |
The following table lists example values for this property.
Row | Column | Result |
---|---|---|
–2 | 0 | Selects all cells of the first column, including the column header. |
–2 | –2 | Selects all rows and columns, including column headers. |
–1 | 0 | Selects the header of the first column. |
–1 | –2 | Selects the headers of all columns. |
Ben