LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure

Does anyone know how to change correct the problem i have? The error states "A wire must be connected to one and only one data source, such as a control's terminal or a function output. This wire is connected to two data sinks but zero sources. You must add a source, perhaps by changing an indicator to a control." Pls send help thanks

Download All
0 Kudos
Message 1 of 7
(3,209 Views)

Attach the entire VI (the file ending in ".vi"), not a tiny picture of a tiny part of your VI.

 

Bob Schor

0 Kudos
Message 2 of 7
(3,204 Views)

Hi Mac,

 

This has nothing to do with your Event Structure, but rather to do with whatever you have connected to the boolean from inside the Event Structure (or perhaps you removed what was connected?).

 

The error is exactly as the messages states: you have no source value for that wire. Probably, you have some sort of "Exit" or "Stop" case, and either the boolean control in that case is an Indicator (in which case right click and choose Change to Control), or you removed the source (perhaps a boolean True Constant?).

 

All wires in LabVIEW must have a single data source, although they can have as many sinks as you want. A source is something that provides a value (like a constant, or a Control), and a sink is something that reads a value (typically an Indicator, or a SubVI's input controls).

 

You might find the posts linked at the top of the forum, under training materials, helpful. If you have access to an SSP, I'd recommend the online training available through that link. Failing that, the written material is also worth a read (although you presumably already know some/most of it).


GCentral
Message 3 of 7
(3,201 Views)

sorry here is the entire VI, all the errors are the ones i cannot seem to solve. Thanks for looking into it

0 Kudos
Message 4 of 7
(3,197 Views)

When I opened your VI on my computer, the number of errors is staggering - however, I think this is related to licensing. Several told me licences had expired, or modules weren't properly licensed, so I'm not sure which errors are real for you, and which are just due to me not having some toolkits.

 

With regards to the error you initially mentioned, the Event Structure has only two cases and neither of them provides a value to the black box leading to the broken wire. One (case 0) also has no events that trigger it, which will cause another error. You'll need to set this to have some event, or delete the case to fix that error.


GCentral
0 Kudos
Message 5 of 7
(3,191 Views)

I dont need case 0 but i need case 1. i cant delete only case 0 without deleting everything. Is there a way to delete only Case 0? I have attached the list of my errors.

0 Kudos
Message 6 of 7
(3,181 Views)

1.  Right click, Delete Event Case.

2.  Put a boolean constant inside the remaining event case and connect it to the tunnel.

 

I would recommend you learn more about LabVIEW from here. How to Learn LV

Message 7 of 7
(3,152 Views)