08-05-2016 04:40 PM
Hi everyone,
I am brand new to LabView. Right now I am just trying to build a program that graphs different waves (such as sine or square) with or without different types of noise. I concatenated two strings and then have that input into a case structure. Nothing graphs when have the two options concatenated, but it does work when it's just the different types of waves being chosen. I think it might have to do with how I'm titling the each of the case structure options, but I'm not sure. Any help or suggestions is greatly appreciated.
Solved! Go to Solution.
08-05-2016 04:59 PM
"Concatenation" of strings means "Take two strings and make a single string with the characters of the second following after the characters of the first". So concatenating "Sine" and "White" will give you "SineWhite". If your case has (as yours does) "Sine", "White", then a string of either "Sine" or "White", but not "SineWhite", will satisfy it.
Bob Schor
08-05-2016 05:27 PM
Oh ok. That makes sense. Thank you!
Do you know if there is any way to make the loop execute like:
if sine && white
this graph
else if sine && no noise
other graph
else...
08-05-2016 06:08 PM
I would use a sequence of case structures. Take it step by step. Use enums for better readability.
08-05-2016 06:44 PM
Thank you! I got everything to work from there.