LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to build a table

Hi , i want to create a table with a report of different test.

 

I want to put in the columns , te value of the frecuency, amplitude, pulse width, etc. 

And a final column where i show the result of my test, for example: OK - FAIL

 

i try to use the table, but i cant find where i can put some strings deppending on some comparations i did.

 

Please help 

0 Kudos
Message 1 of 7
(3,921 Views)

The table is nothing but a 2D array.  Use Build Array to combine your various strings into a 2D array.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,919 Views)

and if i want to put a variable that is setted by an usser in the front panel, how can i do this ? 

 

i didnt find where to create a 2D string array and how to put elements there.

0 Kudos
Message 3 of 7
(3,895 Views)
You have a whole palette of array functions. What is confusing? There is nothing special about a string array.

What sort of front panel control and what do you plan to do with it? You are making people guess instead of posting your code with details on what you don't understand.
0 Kudos
Message 4 of 7
(3,887 Views)

You will need to create a 2D array of strings. If you have a variable that you want to insert into your 2D array, you will need to use Replace Array Subset, which will let you swap an element or an array in your 2D array. Does that help answer your question ?

 

Screen Shot 2015-09-02 at 1.08.32 PM.png

 

 

 


Kudos are the best way to say thanks 🙂
0 Kudos
Message 5 of 7
(3,884 Views)

You should define your UI.  it seems a bit hazy right now.  A table and maybe some interaction.  I think it best to think it out clearly as a set of requirements before going further.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(3,847 Views)

Hi Sebuken,

 

Read THIS first

 

Now, how you can fill the array(see the atached VIs)

 

Method 1, (simplest to just get the idea)

See the simple example attached (just 2D array and the table)

 

Method2,

Your application seems big so you may use the ‘Value Property’

  1. Right click on table >Create>Property Node>Value,,
  2. Then on Block diagram change this property to read (Right click and browse)

Method 3(Best and Reusable)

Make a SUB VI which will fill the table for you using

  1. Table reference: Right click to table>Create>Reference
  2. Input the 2D array of information which you want display.

 

Now, you have some set of parameters you motioned (frequency, amplitude, pulse width, etc )

Think how you can gather them in 2D array and can show in the table.

 

Besides above explanation, every time you need to append the latest ROW to your table, think about how you going to that, browse the properties of table, and see what parameters of table you can get and how you can use those for making your application easy.

 

Good Luck.

-
Amit
CLAD
0 Kudos
Message 7 of 7
(3,810 Views)