Showing results for 
Search instead for 
Did you mean: 


Go to solution




Message 11 of 44

Ooo yes this is what I need; I didn't remember that I can do this with local variable...

Rookie; LV 2011 on WIN 7
0 Kudos
Message 12 of 44

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...

Rookie; LV 2011 on WIN 7
0 Kudos
Message 13 of 44

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.

0 Kudos
Message 14 of 44

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...

Rookie; LV 2011 on WIN 7
0 Kudos
Message 15 of 44

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?



0 Kudos
Message 16 of 44

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.

0 Kudos
Message 17 of 44

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.

0 Kudos
Message 18 of 44

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.

Rookie; LV 2011 on WIN 7
0 Kudos
Message 19 of 44
Accepted by hlod

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.

Message 20 of 44