05-21-2015 05:08 AM - edited 05-21-2015 05:09 AM
Hi,
I have some trouble with a VI program. I am trying to create a program where a variable X start with a initial value during some ms. Then this variable must be used in another while loop, and the value should be changing continuously after some calculations. I use it just for the first calculation, and then it changes continuously for other calculations.
Maybe a global variable must be used, but I'm not sure.
I have found this tutorial, is it useful for this problem?
http://www.ni.com/white-paper/7585/en/
Thank you.
Solved! Go to Solution.
05-21-2015 06:00 AM
05-21-2015 06:15 AM
Thank you Gerd,
Would you mind to help me with any example please? I am blocked with this problem...
05-21-2015 06:19 AM
05-21-2015 06:31 AM
Let me know if I understand the sequence of the example:
1- Initialize the variable for value=1
2- Then stop while 1234 ms
3-. Value = 2
4-. "While" loop for 10ms whith the last value
Isn't it like this? Excuse me about this simple request, but I haven´t used this before.
05-21-2015 07:41 AM
05-21-2015 08:11 PM
05-22-2015 12:44 AM - edited 05-22-2015 12:44 AM
Thank you, I will try it.
06-21-2015 05:18 AM - edited 06-21-2015 05:40 AM
Hi again,
I need some more help, continuing whith the last example.
As you can see in the image attached, the local variable in the red circle changed in the sequence from indicator to an useful variable in the while loop.
My problem is that I make a copy of the local variable, but it appears like indicator and can't be send to an other process.
Can anyone tell me what must I do to change it?
06-21-2015 05:46 AM - edited 06-21-2015 05:54 AM
Forget the last post, I found it 😉