LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom truth table

hi, I am new to labview, Instrumentation engineering student, first year. 

I am trying to make a traffic light system in labview, which involves some counters and a few LED lights

but problem is I cant understand how to use a truth table in labview

In my problem, there will be 3 inputs LED (IR1, PS1, IR2) and one output counter (OC1) which will follow the table to give desired output.

I have attached the table to help understanding things better, please guide me. 

Download All
0 Kudos
Message 1 of 15
(3,666 Views)

Dear Argya,

 

There are several ways of doing this but I suggest you use State Machine Architecture to get the output when correspnding inputs go high in the manner given in table. Why don't you first reduce this table into simplified boolean expression?

Regards.


0 Kudos
Message 2 of 15
(3,647 Views)

Sorry being a noob here but can you tell me please what is State Machine Architecture ?

also i couldn't divide this into simple boolean expression as this dont follow rule of any gate, like in one place the counter output will be 2

0 Kudos
Message 3 of 15
(3,641 Views)

If doing without state machine, just use simple compound arithmetic block and select function.

 

Capture.JPG


0 Kudos
Message 4 of 15
(3,634 Views)

looks like that will do,

can you please attach the vi file for me ?

regards

0 Kudos
Message 5 of 15
(3,628 Views)

What version of LabVIEW are you running?


0 Kudos
Message 6 of 15
(3,617 Views)

Just drag and drop this image into your block diagram window.

truthtable.png


Message 7 of 15
(3,613 Views)

Labview 2010 I am using

0 Kudos
Message 8 of 15
(3,612 Views)

I did, nothing is happening 😞
only the image link came there

0 Kudos
Message 9 of 15
(3,606 Views)

Try recreating the image.  It shouldn't take but a few minutes to wire up.

 

The reason you didn't get code was that the VI snippet was saved as a 2012 version.  It would've needed to be saved as a 2010 version to drop into your LV 2010.

0 Kudos
Message 10 of 15
(3,597 Views)