LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data confuguration

I have two small problems and I think they are configuration problem inlabview, please if some one can help me to fixe it:
 
1- I am using a while loop with a numeric indicator. When the while loop is finished, I re-initialize all the indicators sometimes the numeric indicatorin the while loop does not re-initialize (approx 50% ot the time).
 
2- I am using Ms office Express Report toolkit, I creted my template using MS word and I defined Format String "%#g", and I would like the out put value in word to have no Decimals.
The value that is put into word is always of the form X.XXX, e.g if I have integer 12, it is displayed as 12.000. How can I avoid this?
 
Thank you
0 Kudos
Message 1 of 21
(4,255 Views)
I can't help with the report generation toolkit but it sounds like you might have a dataflow problem with the reinitialization. Assuming you're using the Reinitialize All to Default method, how and where are you calling it? Is it outside the while loop and do you have data flowing from inside the while loop to the method so that you know it's being executed after the while loop stops? A picture of the diagram or the actual VI would be very helpful.
0 Kudos
Message 2 of 21
(4,236 Views)
No Just I go to Operate and I click on Reinitialize all to default.
0 Kudos
Message 3 of 21
(4,235 Views)

Hi Zamjir,

Are you reinitializing the controls to their default values while the VI is still running?  This might explain some of the behavior you are seeing.  Perhaps if you could post a small section of your code that shows the control which is not always being reinitialized.  This would definitely help us debug what is happening.

Megan B.
National Instruments

0 Kudos
Message 4 of 21
(4,194 Views)
 
0 Kudos
Message 5 of 21
(4,184 Views)
all the data in cercle I could not reinitialize it.
0 Kudos
Message 6 of 21
(4,184 Views)
zamjir,
 

It might be more helpful to actually post your code rather than to post a picture of it. Also, try first going to "Make Current Values Default" and then go to "Reinitialize all to Default". If you do that, does the problem still persist? What value are you expecting and what value is being returned? Do you see the behavior with other vis or just the vi in question? Post to let us know what you find out.
 
 
Chris C
National Instruments
0 Kudos
Message 7 of 21
(4,163 Views)

I did the Current Value to default, and I make sure the VI Stop and after that I Reinitialize the Value to default and Always the same problem.

thank you for your help

George

0 Kudos
Message 8 of 21
(4,163 Views)
Hi George,

I tried to reproduce the issue that you are describing, but I wan't able to. When I opened your VI (in LabVIEW 7.1) I manually changed the values of the "Forrward", "Reverse", "Data 4" and "Numeric" indicators to different non zero values. Then I went to "Operate » Make Current Values Default" to save the state of ALL controls and indicators (remember to save if you want the changes to be saved to the VI). After that I manually changed the indicators mentioned above, and then selected "Operate » Reinitialize All to Default". All the indicators returned to their default values without any issues. All this was done without even running the VI.

Please let me know what you are doing in case you aren't pollowing the above procedure, thanks.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 9 of 21
(4,145 Views)
I made that and no problem when I am not runnig the VI But when I run it and it finishe and I will run it again also after the reinitialization all the value it give me the lastest value in that case I have to close it and run it again. that is so weird
 
 
Thank you so much
George
0 Kudos
Message 10 of 21
(4,141 Views)