LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous event queue ?

yes i have and i think i know what i am doing wrong.. i was hoping to mock up my messy (and actual) code with a simple example given by altenbach.. here is my scenario:

I am reading from a server continuously using TCP Vis every 5 seconds..this is my first loop.  I am using queues to pass the data to the second loop, which processes the data..i have a 3rd loop that is event driven by a boolean's value change which consists of a subvi that allows to configure the settings of the server by writing to the server via TCP write.  The configure subVI has multiple events, such as changing transmission time, changing settings etc. which are all event driven as well.... I'd like to be able to pass the data from my first loop into the subvi such that the subvi contains the streaming data in the first loop.

Problem:  I am unable to continuously send the data to the subvi because my configure subvi is supposed to open its FP when called.  I have posted this code in another similar discussion forum and someone suggested to use Globals within the event structure of my Configure VI... this works fine only when the event is triggered... however, i'd like the data to be continuously updated in the subvi and use the current data for my events.

I hope what I explained makes sense... I'd appreciate if you can suggest a method to implement my code.
Thanks
KM
0 Kudos
Message 11 of 16
(1,290 Views)
km,
      Is the user changing the boolean control that triggers the event?  I have modified your code heavily and also added it to a project in order to use a shared variable.  Take a look and see if that is closer to what you are looking for.

Thanks,

NathanT
Message 12 of 16
(1,266 Views)

hi nathan,

Could you post the code in LV 7.0 or 7.1.1? I don't have LV 8.0

thanks

0 Kudos
Message 13 of 16
(1,261 Views)
km,

Here you go.  Unfortunately I had to take the shared variables out since they are not supported by 7.1.  Keep in mind this is just an example to demonstrate the use of VI server and property nodes.  Use it as a rough starting point if you would like.

NathanT


0 Kudos
Message 14 of 16
(1,248 Views)

Sorry for the delayed response Nathan.  Thank you for posting the code. 

R,

km

0 Kudos
Message 15 of 16
(1,226 Views)
I am glad to help you out km.  Good luck with the rest of your application.

NathanT

0 Kudos
Message 16 of 16
(1,204 Views)