LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting data in table

Hello everyone,

      I'm trying to build a not gate using labview with its truth table. But I'm unable to plot the truth table of gate.

     I think to print the input and output of the truth table in a table format on the click of print button. 

   But I'm unable to get values to the table.

    I've used "build array" and "insert into array" to create an array of input and output and then transport that data into table but each time it shows error of data type conversion.

 

I want table in this format...

20201221_111622.jpg

 and I'm taking input from the input and the output wire of not gate in this.

IMG_20201221_111647_413.jpg

0 Kudos
Message 1 of 2
(1,063 Views)

If you want to show us code, attach an actual VI, not a photograph of your monitor.

 

Since you want 0/1 instead of true/false, you need to covert between numeric and boolean datatypes.

You only have two possible cases, so a while loop that spins millions of times per second is probably not the solution. Try a FOR loop with two iterations, one for each state, combine the input with the output and display it in a table.

 

Did you do a few of the simple tutorials listed on the top of the forum.

0 Kudos
Message 2 of 2
(1,055 Views)