LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster button pressed / 1553 communication

Solved!
Go to solution

I am Communicating over pcmcia 1553 condor card. i have a 3 frame sequence structure. in frame 1 i am initializing the 1553 card. In the second frame  i have a big while loop with a smaller while loop inside of it sending a 1553 string command to my hardware instrument, which is updating every second. outside of the inner small while loop i have my clusters with boolean buttons. When those buttons are pressed  they to send a 1553 command  to the hard ware instrument. I think this is causing a race condition. In my  3rd frame i close out my 1553 messages.   How do i change this to allow my inner loop to update every second unless i boolean button is pressed it would send that 1553 message command,  then continue on with sending the updating string every second? So i would like only 1 string to be sent at a time.

 

Is there a way that  would allow when a boolean button is pressed. the string with inside of the true case of the case structure be send out the the hardware and then jump back into the inner while loop and update every second  or if no boolean button is pressed stay inside of the inner while loop and update every second?

0 Kudos
Message 1 of 17
(3,006 Views)

First thing you need to make your code in a standard design pattern. For better understanding check this link

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 17
(2,994 Views)

Thanks for the reply. I may have chosen the wrong design pattern but i tried using a producer consumer loop but i was having an issue in trying to figure out how to get a loop constantly running in the back ground updating every second.

0 Kudos
Message 3 of 17
(2,986 Views)

Can you post a snippet of your code/ or the VI itself so that its easy to find out the issue.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 17
(2,984 Views)

Here is the code

0 Kudos
Message 5 of 17
(2,973 Views)

Here is the code

0 Kudos
Message 6 of 17
(2,972 Views)

The code you have posted is not the right way of doing it. You need to explore LabVIEW more and understand the functions and options available to construct an application. For Continously updating command you have to have a seperate while loop and for sending command depending on the button click you need to have another while inside that you must have an Event structure so depending on the button press you can send the command to your 1553 card.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 17
(2,964 Views)

If you post your code we will help you fix it.

Tim
GHSP
0 Kudos
Message 8 of 17
(2,960 Views)

Thanks for the reply!

0 Kudos
Message 9 of 17
(2,956 Views)

Tim,

I posted my code a few comments up. 1 & 2 . Thanks for the help!

0 Kudos
Message 10 of 17
(2,955 Views)