02-14-2012 08:32 AM
Image...
02-14-2012 08:36 AM
Ooo yes this is what I need; I didn't remember that I can do this with local variable...
02-14-2012 08:50 AM
But still, this is not working as I need. I need "output number : 13,17, 11 ... " as control, because I will connect this to "Concatenate Strings". I try as in picture bellow, but is not working, string2 as control is working fine, but string3 as indicator is not showing right values.
Thanks for sharing ideas...
02-14-2012 09:06 AM - edited 02-14-2012 09:10 AM
At this point my suggestion to you is to read about the basics of LabVIEW programming.
You can use a local variable for a control as well as an indicator.
02-14-2012 12:02 PM
Well I tried, but at "string2" number changing right, but if I put indicator on this "string2" it's not working, you can try and you will see. So this means that when I need to control something with this will not working...
02-14-2012 12:18 PM
I still dont know what you're trying to do.
If English isn't your native language then post in your language.
Someone here will translate.
You want to trigger something depending on what the value of 'String' is?
02-14-2012 12:34 PM
I don't see any need for a sequence structure or local variables. You can use a for loop and pass it an array of strings and an array of waits. Write directly to the string indicator. You would only need to use a local variable if you wish to pass it to a different part of the block diagram. The example you posted will obviously not work since the string2 and connection to string 3 is not inside a loop.
02-14-2012 12:39 PM
There's not a need for sequences or local variables.
However, this is what the OP seems to understand at this point. Thats why I left it that way.
02-14-2012 02:22 PM
Hi, thanks for help but it's not what I want. Once again:
I want to generate number as one string in that order:
value 13.5 for 5 seconds after this finished, I want at same string for 6 seconds value 17 and after this finished I want value 13.5 for 5 seconds; This is just example what I want to do. I need this values, because I will seending this to visa write; and each of this values represent VOLTS for power supply. I hope now is all cleared, and once again I don't want 13.51713.5....or any other thing.
Thanks again for your help.
02-14-2012 02:40 PM - edited 02-14-2012 02:41 PM
Trivial with a for loop as I mentioned. I see no reason why your VISA Write would be separate.
You might want to take the basic LabVIEW tutorial.