LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one output three inputs

VI's Attached

 

 

Results Tests (This defines the cells which the results will need to go in 12 total)

 

FreqError Results v3 (This has a total of six inputs three Inputs which come from "Results Test Vi"   and the other three come from a Vi which only has one output (my problem))

 

Results Tests vi: This vi basically determines which cell the results will go in.

 

My problem is FreqErrorResults v3 vi needs three seperate inputs and I only have one output going to it. This input changes everytime and I can't wire all three inputs with this single output without overwriting all the other inputs. I am not sure how to wire that single output.

 

 

Download All
0 Kudos
Message 1 of 11
(3,498 Views)

I'm not sure either because you didn't provide this "other VI", so it's not clear how this output relates your other VI's inputs.


That said, a couple of comments regarding your code. Well, one actually. Excessive. As in, way too much code. Also, you should learn to use cluster rather than individual input/outputs, especially if they're related, as yours are. For example, the "Result Test" VI can be reduced to about 10% of its code. See attached. Learn to think in arrays and other datatypes. I, for one, don't want to have a numeric input with a text comment telling me what 0 means, what 1 means, etc. That's what an enum is for. Smiley Wink

Message 2 of 11
(3,479 Views)

 I have attached the other vi as well as a example of who I am tempting to use it.

 

Basically depending on which variable you select Low mid high it will get the cell number so when you send the result it will properly show up. However Because I only have one output (ignore the ppm) I am un able to achieve this.

Download All
0 Kudos
Message 3 of 11
(3,469 Views)
My god man. I have so much to learn. I wish I had looked into cluster a bit more I had absolutly no idea it would be so effcient. Thank You.
0 Kudos
Message 4 of 11
(3,468 Views)

Sorry, but your example doesn't make any sense to me. Smiley Sad You're autoindexing a Boolean array to ... get the same array back. ??? Smiley Surprised Also, you autoindex the one loop, but not the other, choosing to hard-wire to N. ???

 

What is FreqError supposed to do? What is the basic operation of your process?

0 Kudos
Message 5 of 11
(3,461 Views)

All it is doing is looking at a cw and zooms in to about 5KHz Span and gives you a value which basically tells you how far the cw is above or below the center frequency i.e +5 -5 KHz ^_^.

 

Once it sends you the value The examplemain should loop 3x for 2 more values i.e I want freq error to send me 3 values for Low Middle High ( Low (low Voltage i.e 2v) Middle (2.5) High (3v)) I believe I attached an older vi look at the new vi sorry.

 

 

 I have added some explantion inside I hope it helps. I can essently have it loop to provide 3 different inputs with a single loops where basically depending on the voltage T/F array it I think using a cluster type method you did? I am not sure but even still quite a pickle I have put myself in. The only other method I can think of is to somehow come up with a differant way of saving the information in excel. 

 

Message Edited by MrSafe on 01-16-2009 03:22 PM
0 Kudos
Message 6 of 11
(3,457 Views)

MrSafe wrote:

All it is doing is looking at a cw and zooms in to about 5KHz Span and gives you a value which basically tells you how far the cw is above or below the center frequency i.e +5 -5 KHz ^_^.

 

Once it sends you the value The examplemain should loop 3x for 2 more values i.e I want freq error to send me 3 values for Low Middle High ( Low (low Voltage i.e 2v) Middle (2.5) High (3v)) I believe I attached an older vi look at the new vi sorry.

 

 

 I have added some explantion inside the vi I hope it helps. I can essently have it loop to provide 3 different inputs how would I wire that?I think it would depend on the voltage T/F array using a cluster type method like you showed?The only other method I can think of is to somehow come up with a differant way of saving the information in excel. 

 

Message Edited by MrSafe on 01-16-2009 03:22 PM

FIXED sorry horrible

0 Kudos
Message 7 of 11
(3,447 Views)

smercurio_fc wrote:

That's what an enum is for.



I know this is a noob question, but what is enum?

 

Cory K
0 Kudos
Message 8 of 11
(3,438 Views)

From My understanding and I can be completly wrong here.

 

It is a drop down menu where depending on what you select it will send a value the represents that specific  ENTRY. The nice thing about it is you can use invoke and property node with it. AGAIN this is what I think it is ^_^. Sorry I am noob myself.

0 Kudos
Message 9 of 11
(3,434 Views)

Yes it is.  Smiley Wink

 

That is one to search the LabVIEW help on.

 

It is a list of potential values where a text name can be associated with each of the values.  Similar to Text Ring, but the association between text and value is hardcoded at runtime.

 

Particularly useful for case structures used in state machines.  Rather than having case 0, case 1, case 2.  The enum gives them meaningful names such as Start, Stop, Run.

0 Kudos
Message 10 of 11
(3,431 Views)