01-16-2009 11:14 AM
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.
01-16-2009 01:31 PM
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. ![]()
01-16-2009 02:28 PM
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.
01-16-2009 02:31 PM
01-16-2009 02:54 PM
Sorry, but your example doesn't make any sense to me.
You're autoindexing a Boolean array to ... get the same array back. ???
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?
01-16-2009 03:20 PM - edited 01-16-2009 03:22 PM
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.
01-16-2009 03:42 PM
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
01-16-2009 03:56 PM
smercurio_fc wrote:That's what an enum is for.
I know this is a noob question, but what is enum?
01-16-2009 04:01 PM
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.
01-16-2009 04:06 PM
Yes it is. ![]()
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.