LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lab view experiment

Please provide me the solution for

               Invert the state of boolean indicator twice a see until program stopped by user

0 Kudos
Message 1 of 6
(1,230 Views)

Hi mukundvc,

 


@mukundvc wrote:

Please provide me the solution for

               Invert the state of boolean indicator twice a see until program stopped by user


Why should we? (This is homework, isn't it!?)

Why don't you show your VI so we can comment on it and provide recommendations?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,222 Views)

See if it is correct?

0 Kudos
Message 3 of 6
(1,215 Views)

vi enclosed , is it correct?

0 Kudos
Message 4 of 6
(1,212 Views)

Hi mukundvc,

 

first lesson: not all of us use the most recent LabVIEW version(s).

So you reach more people when you downconvert your VIs (File->Save for previous) before attaching.

LabVIEW versions of LV2021 or older are most often fine, I prefer LV2019…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(1,203 Views)

Your requirement is to toggle a Boolean 2 times/second.

 

1. Your loop is running a 1 iteration/second, which is too slow for your requirement.  Change the wait time to 500ms.

2. You have too many controls here.  Based on your initial post, you should only have a stop button and the indicator.  Initialize the Shift Register with a False Constant.

3. Think about the data you want stored in the shift register.  I will just tell you that you are storing the wrong data.


GCentral
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
Message 6 of 6
(1,138 Views)