LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event or file activation

Reading a user front panel with 12 digital switches (some grouped into clusters) and 4 analogue inputs. Used event structure to read these inputs and then with state machine diagrams execute relevent DAQ modules.
 
This worked fine but an additional requirement is for the user to also be able to execute an automated 'run' that would read an excel file and then operate the front panel controls/DAQ as it executed. Some of the DAQ routines are controlling hydraulics and servo motors hence in a close approximation to real time with PID loops etc. As such they are in parallel loops to each other and obviously the event structure.
 
Is there any method to pass the demand from the excel file to both the front panel controls (that are in the event structure) and the DAQ?
 
Thanks
 
Jack
 
LV 8.5
Labview Version 8.5
Labview Version 8.6
Labview Version 2014
0 Kudos
Message 1 of 6
(3,060 Views)
Have you checked-out the producer-consumer design pattern? In general it is a good place to start for these sorts of applications. In terms of communcations between loops you have a variety of options including Notifiers, Queues, User Event, etc...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,046 Views)

Hello Mike

Tried various combinations of event structure and queue on 2 loops but event structure stops both loops until a front panel control is operated. Problem is that the second loop will need to be able to accept data from either the front panel control, manual mode or an excel file in auto mode. Tried combinations of state diagrams to hold the event structure and front panel outputs but no joy, if connected by queue both loops stop until an event. Have attached original attempt before trying to build in auto/manual switch, any ideas would be welcome

Thanks

 

Labview Version 8.5
Labview Version 8.6
Labview Version 2014
0 Kudos
Message 3 of 6
(3,023 Views)

Still no luck with mixing event structure and notifier or queue. Attached a version that works fine but uses variable to pass data from event structure to main loop. Can anyone suggest how I could implement the vi without using the local variable to pass data? As mentioned before if a queue is connected beween the two loops the main loop stops.

Thanks

Labview Version 8.5
Labview Version 8.6
Labview Version 2014
0 Kudos
Message 4 of 6
(3,007 Views)
You're not using the queues properly. Go under the file menu in LV and select New... . In the resulting dialog box, expand the following items:

VI->From Template->Frameworks->Design Patterns

Take a look at the templates you find there, they will demonstrate several correct methods for passing data between loops.

Mike...

PS: you might want to consider taking a LV Basics course.

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 6
(2,984 Views)
Sorry
 
Won't trouble you again
Labview Version 8.5
Labview Version 8.6
Labview Version 2014
0 Kudos
Message 6 of 6
(2,982 Views)