LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

將迴圈內的變數拿出

Solved!
Go to solution

請問如何想將一未結束的迴圈1的變數a,拿到迴圈2使用?

 

在撰寫程式時發現,迴圈1的變數值必須等到迴圈1結束後,才可將值傳出迴圈外,請問是否有辦法在迴圈外的地方抓到這個一直改變的數值a,而不是等到迴圈1結束後,得到最後的a值。

 

感謝~

0 Kudos
Message 1 of 9
(6,764 Views)

你好!

 

 

附件。如果我没有清楚明白你的问题,请让我知道。

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 2 of 9
(6,756 Views)

不好意思耶,可是我的版本是8.5,打不開你版本的vi,不知是否可以存成相容的檔案,感謝你。^^

0 Kudos
Message 3 of 9
(6,746 Views)

here it is

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 4 of 9
(6,739 Views)

您好,

 

除了可以使用Queue功能之外,也可以使用Local Variable的功能,相關的教學可以參考以下網址

Queue

http://www.labviewpro.net/share_content.php?fid=7&year=2011&month=00&post=1402

Local Variable

http://www.labviewpro.net/teach_content.php?fid=6&post=340&fpt=8

也附上我的範例vi給您參考

 

希望這些資訊對您有幫助

0 Kudos
Message 5 of 9
(6,730 Views)

感謝大大,可是= =,他寫這是8.6的,我8.5還是打不開,有辦法調成更早嗎?非常感謝大大回復

0 Kudos
Message 6 of 9
(6,720 Views)

感謝大大,可是我的版本8.5打不開你附件的vi(版本10),不過我看你的網址教學,很有幫助感謝唷~

0 Kudos
Message 7 of 9
(6,715 Views)
Solution
Accepted by topic author JasonEX

看到附图代替。出于某种原因,我不能转化8.5。

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 8 of 9
(6,709 Views)

感謝這樣我看的到了Smiley Happy

0 Kudos
Message 9 of 9
(6,700 Views)