08-17-2007 10:07 AM
08-17-2007 10:08 AM
08-17-2007 10:08 AM
08-17-2007 10:23 AM
08-17-2007 10:39 AM
08-17-2007 10:41 AM - edited 08-17-2007 10:41 AM
Glad to hear you've got things workin', and I definitely know how those long mornings go. ![]()
As far as concatenate arrays by default, I don't know of a way to do this, unless the inputs are of different dimensions (in which case, concatenate is not only the default, but the only option).
Message Edited by corys on 08-17-2007 10:42 AM
08-17-2007 02:43 PM
08-17-2007 02:58 PM
Using a string as the selector, you will have to physically select where it says "True" and change it to "Transistor", or whichever the case may be you wish to add. Doing this, however, you will have to be careful about spelling errors, such as in the posted example (several elements are spelled "Transisto" rather than "Transistor"). When using case structures like this, I tend to use enums, which not only make available cases as with a boolean, but is added protection against spelling errors. If you were to go that route, you could bundle it into a cluster with the your data array.
In short, you have to change the cases yourself with a string wired into the selector, and be wary of spelling errors, as they are easy to acrue and sometimes difficult to debug, as we tend to read what we think we wrote, rather than what's actually on screen.
Good luck!
08-17-2007 03:19 PM
08-17-2007 03:29 PM
If you go the route in your picture, you can actually replace the case structure with a "Boolean to (0,1)" node. If your comparison returns true, it will change it to 1, and false becomes 0, the same as your case structure (assuming no additional code takes place in the false case).
This method seems a bit counter-intuitive, however, as you are currently using a case structure to determine an output to be used in a case structure. Judging from what I've seen, I think I would use an array of clusters in place of your current array of strings. Each cluster would contain the data points along with an enum. The auto-indexing of the array would work just the same, but then instead of using a case structure to determine which enum constant to use, you can simply unbundle it.
I hope this helps! ![]()