Tuesday 25 July 2017

Labview เคลื่อนไหว เฉลี่ย อาร์เรย์


การคำนวณค่าเฉลี่ยเคลื่อนที่ค่านี้คำนวณและแสดงค่าเฉลี่ยเคลื่อนที่โดยใช้หมายเลขที่ตั้งล่วงหน้า ขั้นแรกให้ VI เริ่มต้นการลงทะเบียนสองรีจิสเตอร์ รีซอร์สการเปลี่ยนลําดับชั้นเริ่มต้นด้วย element หนึ่งจากนั้นเพิ่มค่าก่อนหน้าด้วยค่าใหม่อย่างต่อเนื่อง การบันทึกการเปลี่ยนแปลงนี้ช่วยให้สามารถวัดค่า x ล่าสุดได้ หลังจากที่หารผลของฟังก์ชัน add กับค่าที่เลือกแล้วค่า VI จะคำนวณค่าเฉลี่ยเคลื่อนที่ รีจิสเตอร์การเปลี่ยนด้านล่างประกอบด้วยอาร์เรย์ที่มีมิติข้อมูล Average การบันทึกการเปลี่ยนแปลงนี้จะเก็บค่าทั้งหมดของการวัด ฟังก์ชันแทนที่จะแทนที่ค่าใหม่หลังจากลูปทุกครั้ง VI นี้มีประสิทธิภาพและรวดเร็วเนื่องจากใช้ฟังก์ชัน element replace ภายในลูป while และจะเตรียมอาร์เรย์ก่อนที่จะเข้าสู่ลูป VI นี้สร้างขึ้นใน LabVIEW 6.1 ShareFilter Express VI ระบุประเภทของตัวกรองต่อไปนี้: lowpass, highpass, bandpass, bandstop หรือ smoothing ค่าเริ่มต้นคือ Lowpass ประกอบด้วยตัวเลือกต่อไปนี้: Cutoff Frequency (Hz) 8212 กำหนดความถี่ตัดของตัวกรอง ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Lowpass หรือ Highpass จากเมนูแบบดึงลงประเภทการกรอง ค่าเริ่มต้นคือ 100 ความถี่ในการตัดความถี่ต่ำ (Hz) 8212 ระบุค่าความถี่ตัดต่ำของตัวกรอง ความถี่ตัดต่ำ (Hz) ต้องน้อยกว่าความถี่ตัดสูง (Hz) และปฏิบัติตามเกณฑ์ Nyquist ค่าเริ่มต้นคือ 100 ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Bandpass หรือ Bandstop จากเมนูแบบดึงลงประเภทการกรอง ความถี่ตัดสูง (Hz) 8212 ระบุความถี่ในการตัดสูงของตัวกรอง ความถี่ตัดสูง (Hz) ต้องมากกว่าความถี่ตัดต่ำ (Hz) และดูเกณฑ์ Nyquist ค่าเริ่มต้นคือ 400 ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Bandpass หรือ Bandstop จากเมนูแบบดึงลงประเภทการกรอง ฟิลเตอร์ฟิลเตอร์ตอบสนอง (FIR) 8212 สร้างตัวกรอง FIR ซึ่งขึ้นอยู่กับปัจจัยการผลิตปัจจุบันและอดีต เนื่องจากตัวกรองไม่ขึ้นอยู่กับผลลัพธ์ที่ผ่านมาการตอบสนองของอิมพัลจะสลายไปเป็นศูนย์ในระยะเวลาที่ จำกัด เนื่องจากตัวกรอง FIR ตอบสนองต่อเฟสเชิงเส้นให้ใช้ตัวกรอง FIR สำหรับแอปพลิเคชันที่ต้องใช้การตอบสนองเชิงเส้น Taps 8212 ระบุจำนวนรวมของค่าสัมประสิทธิ์ของ FIR ซึ่งต้องมากกว่าศูนย์ ค่าดีฟอลต์คือ 29 ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือกตัวกรองฟิลเตอร์การตอบสนองตัวกระตุ้น (Finite Impulse Response - FIR) เท่านั้น การเพิ่มค่าของ Taps ทำให้เกิดการเปลี่ยนผ่านระหว่าง passband และ stopband เพื่อให้เป็น steeper อย่างไรก็ตามเมื่อค่า Taps เพิ่มขึ้นความเร็วในการประมวลผลจะช้าลง ตัวกรองอิมมูร์อิมพัลส์อิมพัลส์ (IIR) 8212 สร้างตัวกรอง IIR ซึ่งเป็นตัวกรองแบบดิจิทัลที่มีการตอบสนองต่ออิมพัลส์ที่สามารถคำนวณได้ตามความยาวหรือความยาวโดยไม่มีเหตุผล โทโพโลยี 8212 กำหนดประเภทการออกแบบของตัวกรอง คุณสามารถสร้างการออกแบบ Butterworth, Chebyshev, Inverse Chebyshev, Elliptic หรือ Bessel filter ได้ ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือกตัวเลือกตัวกรองอิมมูร์อิมพัลส์ (IIR) ไม่มีที่สิ้นสุด ค่าเริ่มต้นคือ Butterworth คำสั่ง 8212 จากตัวกรอง IIR ซึ่งต้องมากกว่าศูนย์ ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือกตัวเลือกตัวกรองอิมมูร์อิมพัลส์ (IIR) ไม่มีที่สิ้นสุด ค่าดีฟอลต์คือ 3. การเพิ่มมูลค่าของการสั่งซื้อทำให้เกิดการเปลี่ยนผ่านระหว่าง passband และ stopband เพื่อให้เป็น steeper อย่างไรก็ตามเมื่อค่าของคำสั่งซื้อเพิ่มขึ้นความเร็วในการประมวลผลจะช้าลงและจำนวนจุดที่บิดเบี้ยวเมื่อเริ่มต้นของสัญญาณเพิ่มขึ้น ค่าเฉลี่ยเคลื่อนที่ 8212 แสดงค่าสัมประสิทธิ์เฉพาะหน้า (FIR) ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Smoothing จากเมนูแบบดึงลงประเภทการกรอง สี่เหลี่ยมผืนผ้า 8212 ระบุว่าตัวอย่างทั้งหมดในหน้าต่างเฉลี่ยเคลื่อนที่จะถูกถ่วงน้ำหนักอย่างเท่าเทียมกันในการคำนวณแต่ละผลลัพธ์ที่ได้จากการเรียบ ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Smoothing จากเมนูแบบเลื่อนลงประเภทการกรองและตัวเลือก Moving average รูปสามเหลี่ยม 8212 ระบุว่าหน้าต่างการถ่วงน้ำหนักเคลื่อนที่ที่ใช้กับตัวอย่างเป็นรูปสามเหลี่ยมที่มีจุดกึ่งกลางตรงกลางหน้าต่างโดยเลื่อนลงสมมาตรทั้งสองด้านของตัวอย่างศูนย์ ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Smoothing จากเมนูแบบเลื่อนลงประเภทการกรองและตัวเลือก Moving average ความกว้างครึ่งตามของค่าเฉลี่ยเคลื่อนที่ 8212 ระบุความกว้างครึ่งหนึ่งของหน้าต่างเฉลี่ยที่เคลื่อนที่โดยเฉลี่ยในตัวอย่าง ค่าเริ่มต้นคือ 1. สำหรับความกว้างครึ่งหนึ่งของค่าเฉลี่ยเคลื่อนที่ของ M ความกว้างเต็มของหน้าต่างเฉลี่ยที่เคลื่อนที่โดยเฉลี่ยคือตัวอย่าง N 1 2 M ดังนั้นความกว้างเต็ม N เสมอเป็นจำนวนคี่ของตัวอย่าง ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Smoothing จากเมนูแบบเลื่อนลงประเภทการกรองและตัวเลือก Moving average เลขชี้กำลัง 8212 แสดงค่าสัมประสิทธิ์ IIR แรกที่สั่งซื้อ ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Smoothing จากเมนูแบบดึงลงประเภทการกรอง ค่าคงที่ตลอดเวลาของค่าเฉลี่ยเลขชี้กำลัง 8212 ระบุค่าคงตัวเวลาของตัวกรองการแจกแจงเลขยกกำลังเป็นวินาที ค่าเริ่มต้นคือ 0.001 ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือก Smoothing จากเมนูแบบดึงลงประเภทการกรองและตัวเลือกเลขชี้กำลัง แสดงสัญญาณขาเข้า ถ้าคุณพิมพ์ข้อมูลไปยัง Express VI และเรียกใช้ข้อมูล Input Signal จะแสดงข้อมูลจริง ถ้าคุณปิดและเปิด Express VI ใหม่อีกครั้งสัญญาณ Input จะแสดงข้อมูลตัวอย่างจนกว่าคุณจะรัน Express VI อีกครั้ง แสดงตัวอย่างของการวัด พล็อตการแสดงตัวอย่างผลลัพธ์แสดงค่าของการวัดที่เลือกด้วยเส้นประ หากคุณพิมพ์ข้อมูลไปยัง Express VI และเรียกใช้ VI Preview แสดงผลจะแสดงข้อมูลจริง ถ้าคุณปิดและเปิด Express VI ใหม่แสดงตัวอย่างผลลัพธ์จะแสดงข้อมูลตัวอย่างจนกว่าคุณจะเรียกใช้ VI อีกครั้ง หากค่าความถี่ตัดไม่ถูกต้องการแสดงตัวอย่างผลลัพธ์จะไม่แสดงข้อมูลที่ถูกต้อง ประกอบด้วยตัวเลือกต่อไปนี้: หมายเหตุ: การเปลี่ยนแปลงตัวเลือกในส่วนโหมดดูไม่ส่งผลต่อพฤติกรรมของตัวกรอง Express VI ใช้ตัวเลือกโหมดดูเพื่อดูว่าตัวกรองทำอะไรกับสัญญาณ LabVIEW ไม่บันทึกตัวเลือกเหล่านี้เมื่อคุณปิดกล่องโต้ตอบการกำหนดค่า สัญญาณ 8212 แสดงการตอบสนองของตัวกรองเป็นสัญญาณจริง แสดงเป็นสเปกตรัม 8212 ระบุว่าจะแสดงสัญญาณจริงของการตอบสนองของตัวกรองเป็นคลื่นความถี่หรือไม่ให้แสดงผลเป็นการแสดงตามเวลา การแสดงผลความถี่จะเป็นประโยชน์สำหรับการดูว่าไส้กรองมีผลต่อส่วนประกอบความถี่ต่างๆของสัญญาณอย่างไร ค่าเริ่มต้นคือแสดงการตอบสนองของตัวกรองเป็นจอแสดงผลตามเวลา ตัวเลือกนี้จะใช้ได้เฉพาะเมื่อคุณเลือกตัวเลือกสัญญาณ ฟังก์ชั่นการถ่ายโอน 8212 แสดงผลการตอบสนองของตัวกรองเป็นฟังก์ชันถ่ายโอน ประกอบด้วยตัวเลือกต่อไปนี้: ขนาดใน dB 8212 แสดงการตอบสนองระดับของตัวกรองเป็นเดซิเบล ความถี่ในการบันทึก 8212 แสดงการตอบสนองความถี่ของตัวกรองในระดับลอการิทึม แสดงการตอบสนองของขนาดของตัวกรอง จอแสดงผลนี้จะใช้ได้เฉพาะเมื่อคุณตั้งค่าโหมดดูภาพเพื่อถ่ายโอนข้อมูล แสดงการตอบสนองต่อเฟสของตัวกรอง การแสดงผลนี้จะใช้งานได้ก็ต่อเมื่อคุณตั้งค่าโหมดการดูเป็นฟังก์ชันการถ่ายโอนห้องสมุดของ MGI MGI มีไลบรารี VI ซึ่งเราใช้ซ้ำในการพัฒนาโครงการของลูกค้า ห้องสมุดจะถูกจัดเก็บเป็นชุด VIPM ดังนั้นคุณต้องมี VI Package Manager เพื่อติดตั้ง MGI VI บางส่วนขึ้นอยู่กับแพคเกจ OpenG อื่น ๆ เนื้อหาของไลบรารี MGI จะได้รับการตรวจสอบโดยการขยายรายการด้านล่างอาร์เรย์ VI ฟังก์ชันทั้งหมดจะประมวลผลข้อมูลอาร์เรย์โดยใช้ข้อมูลตัวเลข MGI Average นี่คือ polymorphic VI ค่านี้คำนวณและส่งกลับค่าเฉลี่ยของแถวที่ระบุของคู่ MGI Centered Weighted Moving Average ทำค่าเฉลี่ยเคลื่อนที่ที่ถ่วงน้ำหนักอยู่ตรงกลางบนอาร์เรย์ตามขนาดและพารามิเตอร์การถ่วงน้ำหนัก MGI Running PolyVI เฉลี่ย: เก็บค่าเฉลี่ยของค่าที่ป้อนเข้าไว้ การตอบสนองของ Impulse ที่ไม่มีที่สิ้นสุดต้องการการประมวลผลน้อยลง แต่ต้องใช้เวลาที่ไม่มีที่สิ้นสุดเพื่อให้ได้ค่าสถานะที่คงที่ การตอบสนองของ Finite Impulse จะมีอาร์เรย์ของขนาดที่ระบุ แต่สามารถส่งออกได้ VI นี้เป็นหน้าที่ของโลกาภิวัฒน์ MGI Running Maximum ทำงานได้อย่างมีประสิทธิภาพสูงสุด MGI Running Minimal Running Minimum ทำงานได้อย่างมีประสิทธิภาพ MGI Interpolate 1D Array Extended Extended Interpolate 1D Array ซึ่งสามารถคาดการณ์ได้นอกขอบเขตอาร์เรย์ ใช้ส่วนขยายแบบ Linear ตามองค์ประกอบอาร์เรย์ทั้งสองตัวแรกหรือช่วงสุดท้ายสำหรับค่าที่อยู่นอกช่วง ขีด จำกัด ของ MGI 1D อาร์เรย์ขยายช่วงขยายของเกณฑ์ซึ่งสามารถสร้างดัชนีเศษจากอาร์เรย์ จำกัด ใช้ส่วนขยายแบบ Linear ตามองค์ประกอบอาร์เรย์ทั้งสองตัวแรกหรือช่วงสุดท้ายสำหรับค่าที่อยู่นอกช่วง MGI คำนวณช่วงเวลาสูงสุดคำนวณช่วงเวลาสูงสุดสำหรับสัญญาณที่สุ่มตัวอย่างอย่างสม่ำเสมอ ช่วงเวลา 0 คือพื้นที่ใต้ยอดซึ่งคือผลรวมของสัญญาณช่วงที่ 1 คือตำแหน่งของ peakcentroidcenter ของมวล คำนวณโดยรวม (iyi) sum (yi), it8217s ในหน่วยของระยะห่างระหว่างสัญญาณโดยมี 0 สอดคล้องกับองค์ประกอบแรกของอาร์เรย์ ช่วงเวลาที่สองคือความกว้างสูงสุด RMS นอกจากนี้ยังมีหน่วยดัชนี MGI Linear Fit ค้นหาพารามิเตอร์พอดีกับสมการเชิงเส้นอย่างน้อยสี่เหลี่ยมสำหรับข้อมูลที่ให้มา ถ้าช่วงของค่า x ไม่มากกว่าช่วงของค่า y แล้วพอดีจะทำกับค่า x และ y ย้อนกลับกับผลลัพธ์ที่แปลงกลับไปที่ทิศทางเดิม ถ้าช่องป้อนข้อมูล Weights ที่ไม่จำเป็นว่างหรือไม่คลาดเคลื่อนน้ำหนักที่ใช้ในแบบพอดีจะมีค่าเท่ากับ 1 (weighting) MGI Histogram สถิติสร้างฮิสโตแกรมขึ้นอยู่กับค่าเบี่ยงเบนมาตรฐาน -3 และค่าผิดปกติ MGI คำนวณความแตกต่างของอาร์เรย์นี่คือ polymorphic VI คำนวณความแตกต่างระหว่างองค์ประกอบอาร์เรย์ที่ติดต่อกัน องค์ประกอบ 0 ของผลลัพธ์เท่ากับ x (0) - x (-1) โดยที่ x (-1) เป็นตัวป้อนข้อมูลสเกลาที่เป็นตัวเลือกซึ่งเริ่มต้นเป็นศูนย์ MGI คำนวณ Array Sums นี่คือ polymorphic VI คำนวณผลรวมของอาร์เรย์อาร์เรย์ต่อเนื่อง 0 องค์ประกอบของผลผลิตเท่ากับ x (0) x (-1) โดยที่ x (-1) เป็นตัวป้อนข้อมูลสเกลาที่เป็นตัวเลือกซึ่งเริ่มต้นเป็นศูนย์ MGI Shift Array เลื่อนอาร์เรย์ 1 มิติตามจำนวนเงินที่ระบุขึ้นหรือลงโดยเติม NaN MGI Decimate Array กับ Offset นี่คือ polymorphic VI decimates อาร์เรย์ที่ระบุตามจำนวนที่ระบุ มีข้อผิดพลาดเกิดขึ้นถ้าความยาวอาร์เรย์ไม่ใช่จำนวนเต็มของการ decimation 8220Offset8221 ระบุว่ามีการเอาท์พุทใด มีข้อผิดพลาดถ้า Offset มีค่ามากกว่าหรือเท่ากับ Decimation MGI รับความลาดชันที่จุดรับความลาดชันของความยาวของเส้นโค้งที่กำหนดโดยอาร์เรย์อินพุตที่ดัชนีที่ระบุ 2D Array VI ทำงานกับข้อมูล 2 มิติ (เช่นสิ่งที่ส่งไปยังกราฟความเข้ม) MGI Edge เพิ่มอาร์เรย์ 2D ดำเนินการเพิ่มประสิทธิภาพของขอบบนอาร์เรย์ 2D โดยพิจารณาจากค่าสัมบูรณ์ของความแตกต่างระหว่างเพื่อนบ้านของจุดในทิศทางตรงกันข้าม ไม่ทำให้ขอบคมชัดขึ้น แต่ไม่ทำให้พื้นที่ชุ่มชื้นลดลง MGI Gaussian Smooth ใช้ฟังก์ชันการทำให้เรียบแบบเกาส์เซสในทิศทางเดียวกับข้อมูล 2D สเกลที่ราบรื่นคือความยาว e-fold ในหน่วยดัชนีอาร์เรย์ ปัจจัยความถูกต้องคืออัตราส่วนของคำที่มีขนาดเล็กที่สุดในระยะที่ใหญ่ที่สุด ข้อมูลถูกล้อมรอบอย่างมีประสิทธิภาพโดย zero8217s บนขอบเขต MGI Smooth 2D Array ดำเนินการฟอร์แมตบนอาร์เรย์ 2D โดยใช้เคอร์เนลเช่น: 0 1 0 1 1 1 0 1 0 จำนวนองค์ประกอบจะถูกทำให้เป็นมาตรฐานด้วยจำนวนองค์ประกอบต้นฉบับที่ถูกต้องดังนั้นอาร์เรย์คงที่จะไม่มีการเปลี่ยนแปลง MGI XY Sizes กำหนดขนาดของอาร์เรย์และใส่ผลลัพธ์ลงในคลัสเตอร์ XY Application Control VI ใช้ LabVIEW VI Server หรือดำเนินการเกี่ยวกับ executables หรือส่วนติดต่อผู้ใช้ที่สร้างขึ้น MGI VI อ้างอิงนี่คือรูปแบบ polymorphic สำหรับการอ้างอิงของผู้โทรปัจจุบันและด้านบน VI มีรุ่นระดับที่ช่วยให้คุณสามารถระบุระดับการอ้างอิงที่ต้องการ รายงานตัวตรวจจับการเปลี่ยนแปลง MGI ถ้ามีการเปลี่ยนแปลงข้อมูลเข้าตั้งแต่การโทรก่อนหน้า VI นี้เป็น polymorphic และการเรียกครั้งแรกไปที่ VI นี้จะเป็นค่า True หรือ False ตามตัวอย่างที่เลือก MGI Grey ถ้า Polymorphic VI ถูกออกแบบมาเพื่อป้อนเข้าไปใน 8220Disabled8221 คุณสมบัติของตัวควบคุม ขึ้นอยู่กับเงื่อนไขจะส่งออก 8220Enabled8221 หรือ 8220Disabled และ Grayed Out.8221 MGI Origin ที่ตำแหน่งซ้ายสุด VI8217s ที่อ้างถึงอยู่ด้านหน้า panel8217s ที่ด้านบนซ้ายของบานหน้าต่าง MGI Save 038 Restore Settings บันทึกหรือเรียกคืนการตั้งค่าที่เกี่ยวข้องกับ VI รวมถึงขอบเขตของแผงขอบเขตความกว้างของคอลัมน์ listbox และกราฟกราฟแท่ง การตั้งค่าจะถูกบันทึกไว้ในไฟล์ ini ที่เส้นทางที่ระบุ สำหรับตัวควบคุมสไตล์ตารางจะมีการบันทึกเฉพาะคอลัมน์ที่มีส่วนหัว MGI Exit if Runtime นี้ VI ได้รับการออกแบบมาเพื่อใช้งานในตอนท้ายของแอพพลิเคชันที่จะรันเป็นไฟล์ปฏิบัติการ มันปิดแผงด้านหน้าของปฏิบัติการก่อนที่จะออก LabVIEW, กำจัดขุ่นรำคาญขณะที่แผงด้านหน้าย้ายเข้าสู่สถานะไม่ทำงาน ในซอร์สโค้ด VI ไม่มีผลใด ๆ MGI Get Executable Version ถ้า VI ติดตั้งมาในปฏิบัติการจะส่งกลับไฟล์เวอร์ชั่น (แตกต่างจากเวอร์ชั่นของผลิตภัณฑ์) ของ executable เมื่อทำงานในสภาพแวดล้อมการพัฒนามันก็ส่งกลับ 8220Development8221 ปฏิบัติการที่สร้างขึ้นด้วย LabVIEW เวอร์ชันก่อนหน้า 8.0 ไม่รวมข้อมูลที่จำเป็นในไฟล์ปฏิบัติการสำหรับ VI เพื่อส่งคืนเวอร์ชัน MGI สำหรับแถบความคืบหน้า Loop VI นี้เป็นแถบความคืบหน้าที่ For Loops ถ้า 8220Wait Time8221 ล่วงเลยไปและลูปน้อยกว่าครึ่งทางผ่านการวนซ้ำทั้งหมด VI จะเปิดและแสดงแถบความคืบหน้าสำหรับ For Loop ถ้า 8220Show Time8221 เป็น True ค่า VI นี้จะแสดงค่าประมาณสำหรับระยะเวลาที่เหลือ ค่าเฉลี่ยเคลื่อนที่จะใช้เพื่อให้ค่าประมาณโดยประมาณเพื่อชดเชยค่าที่ไม่ใช่เชิงเส้นในการประมวลผลโค้ด MGI คือ Runtime VI แสดงผลแบบบูลีนระบุว่ากำลังทำงานอยู่ในปฏิบัติการหรือในสภาพแวดล้อมการพัฒนา MGI Get Value นี่คือ polymorphic VI จะได้รับค่าของตัวควบคุมที่ระบุโดยการอ้างอิง ทำหน้าที่เป็นโหนดคุณสมบัติ 8220Value8221 ขนาดเล็ก กล่องโต้ตอบปุ่ม MGI รุ่นที่สร้างขึ้นจากกล่องโต้ตอบปุ่มสามปุ่มสำหรับความช่วยเหลือดั้งเดิมคลิกลิงค์ด้านล่าง) เพิ่ม boolean เอาต์พุตเป็นประโยชน์สำหรับการแทนที่แบบ drop-in ของกล่องโต้ตอบหนึ่งหรือสองปุ่มซึ่งในต้นฉบับ you8217ll จะได้รับโดยการเดินสายสายที่ว่างเปล่าสำหรับข้อความของปุ่ม เพิ่มตัวเลือกเพื่อทำให้ข้อความโต้ตอบแบบไม่เป็นกิริยาช่วย แต่ซ่อนการเรียก VI ซึ่งจะเป็นประโยชน์เมื่อคุณต้องการบล็อกหน้าต่างหนึ่งหน้าต่าง แต่ไม่ใช่หน้าต่างทั้งหมด VI นี้เป็น reentrant เพื่อสนับสนุนสถานการณ์ที่ แผงควบคุมแบบแบนของ MGI จะอัพเดตเดฟเวอร์หรือเรียกคืนการปรับปรุงของแผงสำหรับ VI ที่ระบุ VI นี้จะติดตามจำนวนครั้งที่ deferrestore สร้างขึ้นสำหรับแต่ละ VI เพื่อให้หลาย defers ต้องตรงกันกับการคืนค่าหลายครั้ง การแก้ไขหรือการคืนค่าจะพยายามแม้ว่าจะมีข้อผิดพลาดในการป้อนข้อมูลก็ตาม MGI Dirty Dot Sets ล้างหรืออ่านจุดสกปรกบนชื่อแผงด้านหน้าของ VI ที่อ้างถึง MGI Get VI Control Ref กลับ refnums ของตัวควบคุมทั้งหมดบนแผงด้านหน้า หากรวมการควบคุมหน้าแท็บเป็นความจริงการควบคุมทั้งหมดบนหน้าแท็บจะถูกรวมไว้ในแบบวนซ้ำ ประเภทของแต่ละ refnum ที่ส่งคืนจะถูกส่งออกไปยัง Control Typei Control Labeli มีป้ายกำกับของแต่ละตัวควบคุม MGI Center Callee in Caller เครื่อง VI นี้ออกแบบมาเพื่อวางหน้าต่าง callee VI8217s ไว้ในหน้าต่าง VI8217 ของผู้โทร MGI Fade In 038 Out ชุด VI นี้จะกำหนดความโปร่งใสของ VI ที่อ้างถึงจากความโปร่งใสเต็มเป็นแบบทึบแสงและในทางกลับกันให้ภาพ 8220Fade In8221 หรือ 8220Fade Out8221 ค่าเริ่มต้น 8220Speed8221 ถูกตั้งค่าไว้ที่ 821638217 โดยพลการหมายเลขที่สูงขึ้นจะทำให้การจางหายเร็วขึ้น MGI Coerce Panel กำหนดขอบเขตของพื้นที่ที่สามารถดูได้บีบขอบเขตของพาเนลที่ระบุให้พอดีกับหน้าจอ ถ้าสี่เหลี่ยมจัตุรัสอย่างน้อย 50 พิกเซลของรูปสี่เหลี่ยมผืนผ้าด้านบนซ้ายหรือบนขวาปรากฏบนจอภาพใดจอภาพหนึ่งจะแสดงขอบเขตของพาเนลเดิม มิเช่นนั้นแผงควบคุมจะเปลี่ยนไปปรากฏบนจอภาพหลัก MGI Set Front Panel Color ตั้งค่าสีของแผงด้านหน้าของ VI ที่อ้างถึง MGI ตั้งชื่อแผงด้านหน้าตั้งชื่อแผงด้านหน้าของ VI ที่อ้างถึง แถบเลื่อนกำหนด MGI Polymorphic VI นี้จะแสดงหรือซ่อนแถบเลื่อนสำหรับการอ้างอิงการควบคุมที่ระบุ โปรดดูข้อมูลเพิ่มเติมที่ Instance VI MGI บันทึกข้อมูลของ Front Panel บันทึกข้อมูลการควบคุมและตัวบ่งชี้ไปยังไฟล์ที่ระบุไว้ในไฟล์ MGI ReadWrite Anything ภายใต้ส่วนที่ระบุ ชื่อตัวควบคุมและตัวบ่งชี้ต้องไม่ซ้ำกัน MGI เรียกคืนข้อมูลจาก Front Panel เรียกคืนข้อมูลการควบคุมและตัวบ่งชี้จากไฟล์ MGI ReadWrite Anything ที่ระบุ ชื่อตัวควบคุมและตัวบ่งชี้ต้องไม่ซ้ำกัน MGI ปิดใช้งาน Enum Merge VI นี่คือการผสาน VI สำหรับการปิดใช้งาน Enum Control MGI VI โหนดพร็อพเพอร์ตี้นี้ VI มีโหนดคุณสมบัติที่เชื่อมโยงกับแผงด้านหน้า: เปิดคุณสมบัติของคลาส VI VI นี้ทำหน้าที่เป็นผสานเพื่อวางโหนดพร็อพเพอร์ตี้ที่เชื่อมโยงกันแล้วเป็นประเภทของชั้น VI MGI ปิดการใช้งาน Enum Grayed Merge VI ปิดใช้งาน Enum. vi มีขนาดเล็กกว่า Enum 8220Disabled และ Greyed out8221 และอาจลดลงในแผนภาพบล็อกเพื่อประหยัดพื้นที่ MGI ปิดการใช้งาน Enum (Small) Polymorphic VI ประกอบด้วยตัวอย่างสำหรับสถานะที่ถูกปิดใช้งานของตัวควบคุม (Enabled, Disabled, Disabled 038 Grayed) ใช้พื้นที่น้อยกว่าการนับค่าคงที่ในแผนภาพบล็อก Bezier VI ทำคำนวณตามเส้นโค้ง Bezier ซึ่งคล้ายคลึงกับ Splines แบบลูกบาศก์ แต่มีความแตกต่างที่สำคัญบางประการ MGI Bezier ค้นหา k ค้นหาแถวควบคุม Bezier สำหรับบล็อกที่มี y y ถูกทดสอบกับ y (first k 3 4n) โดยที่ n 0, 1, 8230 ค่าที่ส่งกลับคือ (k 4n แรก) เหมาะสำหรับการป้อนข้อมูลไปยัง Bezier Inverse MGI Bezier ค้นหา k ย้อนกลับค้นหาอาเรย์ Bezier Control Points สำหรับกลุ่มที่มี y y ถูกทดสอบกับ y (first k 8211 4n) โดยที่ n 0, 1, 8230 ค่าที่ส่งกลับคือ (k 8211 4n แรก) เหมาะสำหรับการป้อนข้อมูลไปยัง Bezier Inverse MGI Bezier Inverse Multiple Solutions คำนวณ Bezier 0..1 พารามิเตอร์จาก y ผลการทำงานของ Bezier โซลูชันทั้งหมดในช่วง 0..1 จะถูกส่งกลับตามลำดับจากน้อยไปมาก MGI Bezier Inverse Time คำนวณเวลาจากดัชนีบล็อกและพารามิเตอร์ 0..1 อันที่จริงฟังก์ชัน Bezier ผกผันแทนที่จะเป็น forward หนึ่งดังนั้น u จะถูกแม็พเป็นครั้งแรกเป็น linearly ถึงช่วงเวลาจึงคำนวณ Bezier ผกผันและผลลัพธ์จะถูก remapped ในช่วงเวลา MGI Bezier Inverse การคำนวณค่า Bezier 0..1 จาก y ผลการทำงานของ Bezier MGI Bezier Scalar คำนวณจุด Bezier ให้อาร์เรย์ของจุดควบคุมดัชนีของจุดเริ่มต้นของบล็อกของ 4 จุดที่จะใช้และค่า 0-1 ที่ต้องการ เวกเตอร์ความลาดชัน MGI Bezier คำนวณเวกเตอร์ Bezier แบบ N มิติโดยกำหนดชุดจุดควบคุม 4 จุดในแต่ละมิติ N และค่า 0-1 ที่ต้องการ MGI Bezier Slope Weights คำนวณความหนาแน่นของน้ำหนัก 4 น้ำหนัก (1-u) 3, u (1-u) 2, u2 (1-u) และ u3 ให้ u u ควรอยู่ระหว่าง 0 ถึง 1. MGI Bezier Time คำนวณค่า Bezier 0..1 จาก t ที่จริงใช้ frontier หน้าแทนการผกผันดังนั้นครั้ง endpoint จะถูกใช้เป็นครั้งแรกในการแม็ป t ไปเป็น 0..1 พารามิเตอร์จากนั้นจึงคำนวณ bezier จากนั้นปลายทางจะถูกใช้เพื่อแม็พผลลัพธ์กลับเป็น 0..1 MGI Bezier Vector นี่คือ polymorphic VI ที่คำนวณ N-Dimensional Bezier เวกเตอร์กำหนดชุดของ 4 จุดควบคุมในแต่ละมิติ N และค่า 0-1 ที่ต้องการ MGI Bezier Weights นี่เป็นแบบ polymorphic VI ซึ่งคำนวณค่าอาร์เรย์ของน้ำหนัก 4 ตัว (1-u) 3, 3u (1-u) 2, 3u2 (1-u) และ u3 ให้ u u ควรอยู่ระหว่าง 0 ถึง 1 การปรับเปลี่ยน MGI Bezier Optimizer ของ Downhill Simplex nD เพื่อทำการคำนวณแบบจำลองและแสดงผลแบบโต้ตอบ Boolean VI ทำงานกับข้อมูลบูลีน MGI Boolean Debounce Output เป็นจริงหาก Input เป็น true สำหรับการเรียกใช้ Filter Length ก่อนหน้านี้ reentrant MGI Resettable Trigger (Reentrant) ชุดอุปกรณ์ VI นี้จะกำหนดเอาท์พุท 8220Trigger8221 สูงเพียงครั้งเดียวในขอบที่เพิ่มขึ้นของอินพุต 8220State8221 เอาท์พุท 8220Triggered8221 สูงหลังจากครั้งแรกที่มีขอบที่เพิ่มขึ้นบนอินพุต 8220State8221 ทริกเกอร์จะถูกรีเซ็ตได้ผ่านทางอินพุท 8220Reset (F) 8221 VI นี้คือฟังก์ชันการทำงานแบบใหม่สำหรับการทำหน้าที่ reentrant ดังนั้นแต่ละกรณีของ VI นี้จะอ้างถึงทริกเกอร์ที่แตกต่างกัน Cluster VI ดำเนินการกับ Clusters อย่างเช่นการแทนที่องค์ประกอบในกลุ่มหรือรับดัชนีขององค์ประกอบ MGI Get Cluster Elements VI สร้างขึ้นเพื่อใช้กับ ReadWrite Anything VIs มันแบ่งกลุ่มขึ้นเป็นองค์ประกอบของแต่ละบุคคลและผ่านองค์ประกอบออกในอาร์เรย์ของตัวแปร ดัชนีการเรียกข้อมูลกลุ่ม MGI ดัชนีนี้จะแสดงดัชนีการสั่งซื้อแบบแท็บขององค์ประกอบหรือส่วนที่เป็นกลุ่มย่อยในชื่อชื่อคลัสเตอร์ จะกลับ -1 ถ้าไม่พบองค์ประกอบ ดัชนีหมายถึงอะไรขึ้นอยู่กับโหมด: รวมองค์ประกอบและองค์ประกอบย่อยทั้งหมด: เรียกใช้กลุ่มและกลุ่มย่อยทั้งหมดและเพิ่มขึ้นสำหรับแต่ละคลัสเตอร์หรือชนิดข้อมูลอื่น ๆ ดัชนีจะส่งกลับคำสั่ง element8217s ระหว่างองค์ประกอบทั้งหมดไม่ว่าจะระดับใดก็ตาม ระดับแรกเท่านั้น: ดูเฉพาะองค์ประกอบของ Cluster In จะไม่ recurse ใน subclusters ใด ๆ ของ Cluster In ในกรณีนี้ Index หมายถึงคำสั่ง Tabbing ของ Cluster In ดัชนีในระดับต่ำสุด: เมื่อพบองค์ประกอบที่มีชื่อแล้วดัชนีการสั่งซื้อในกลุ่มการเป็นเจ้าของจะถูกส่งคืนในดัชนี MGI Get Cluster Value ค่านี้ถูกออกแบบมาเพื่อส่งคืนค่าขององค์ประกอบในคลัสเตอร์ (เป็นตัวแปร) ตามชื่อที่ระบุ หากมีช่องหลายชื่อที่มีชื่อเดียวกันระบบจะคืนเฉพาะรายการแรกเท่านั้น การตั้งค่า Flat to True จะหลีกเลี่ยงการค้นหาใน subclusters MGI เปลี่ยนองค์ประกอบของคลัสเตอร์นี้ VI ค้นหาองค์ประกอบหรือส่วนย่อยใน Cluster In named name และแทนที่ด้วยข้อมูล ถ้าข้อมูลไม่ถูกต้องหรือไม่สามารถหาองค์ประกอบที่มีชื่อได้ระบบ Cluster In จะถูกส่งคืนสำหรับ Cluster Out VI เหล่านี้จะถูกแจกจ่ายโดย National Instruments แต่ไม่ได้วางบนจานใด ๆ มีประโยชน์สำหรับการตรวจสอบประเภทข้อมูลของตัวแปร พวกเขาไม่ได้ส่งกลับข้อมูลบนสาย แต่เพียงประเภทของสาย GetArrayInfo รับข้อมูลเกี่ยวกับประเภทข้อมูลอาร์เรย์ที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่อาร์เรย์จะมีการส่งคืนรหัสข้อผิดพลาดที่ 1 NDims เป็น dimensionality ของอาร์เรย์ สำหรับแต่ละมิติความยาวอาร์เรย์จะมีองค์ประกอบอธิบายถึงวิธีการจัดสรรหน่วยความจำอาร์เรย์ ArrayElement จะส่งคืนข้อมูลประเภทองค์ประกอบอาร์เรย์ (ในตัวแปร) GetClusterInfo รับข้อมูลเกี่ยวกับประเภทข้อมูลคลัสเตอร์ที่จัดเก็บไว้ใน Variant ถ้าประเภทข้อมูล Variant8217s ไม่ใช่คลัสเตอร์จะแสดงรหัสข้อผิดพลาดที่ 1 องค์ประกอบคลัสเตอร์ประกอบด้วยชนิดข้อมูลสำหรับแต่ละองค์ประกอบของคลัสเตอร์ GetNumericInfo ส่งคืนข้อมูลตัวเลขเกี่ยวกับประเภทข้อมูลที่เป็นตัวเลขที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่ตัวเลขข้อความจะแสดงข้อผิดพลาด ถ้าชนิดข้อมูลเป็น Enum EnumNames มีรายการอยู่แล้ว หน่วยอธิบายข้อมูลหน่วยใด ๆ GetPolyVIInfo ดูข้อมูลเกี่ยวกับประเภทข้อมูล PolyVI ที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ได้ระบุถึง PolyVI จะมีการส่งคืนรหัสข้อผิดพลาดที่ 1 ประทับเวลาเป็นค่าตัวเลขที่แสดงเมื่อ PolyVI แก้ไขครั้งล่าสุด GetRefnumInfo รับข้อมูลเกี่ยวกับประเภทข้อมูล Refnum ที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่ refnum จะมีการส่งคืนรหัสข้อผิดพลาดที่ 1 ReferenceType อธิบายประเภทของ Refnum StrictType อธิบายข้อมูลที่เกี่ยวข้องกับ refnum สำหรับ VI อ้างอิงที่เข้มงวดเป็นประเภทข้อมูล VI ที่อธิบาย VI สำหรับ Datalogs จะเป็นประเภทข้อมูลที่บันทึกไว้ VI Server Generic Type ระบุชนิดของคลาส VI Server ถ้า ReferenceType เป็น 8220LVObjUnknown8221 GetStringInfo รับข้อมูลเกี่ยวกับประเภทข้อมูลสตริงที่เก็บไว้ใน Variant ถ้าประเภทข้อมูล Variant8217s ไม่ใช่สตริงรหัสข้อผิดพลาดที่ 1 จะถูกส่งกลับ MemoryType อธิบายหน่วยความจำที่ใช้ในการจัดเก็บสายอักขระไม่ใช่ความยาวของสตริง GetTagInfo รับข้อมูลเกี่ยวกับประเภทข้อมูล Tag ที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่แท็กจะมีการส่งคืนรหัสข้อผิดพลาดที่ 1 MemoryInfo อธิบายหน่วยความจำที่ใช้ในการจัดเก็บแท็กไม่ใช่ความยาวของแท็ก GetTypeInfo แสดงข้อมูลเกี่ยวกับประเภทข้อมูลที่เก็บไว้ใน Variant ประเภท Enum คือชนิดของข้อมูล Name คือชื่อของข้อมูลถ้าข้อมูลถูกกำหนดโดยคำนิยาม Type, HasTypedef เป็น true และ Typedef มีข้อมูลเกี่ยวกับ Type Definition GetVIInfo รับข้อมูลเกี่ยวกับประเภทข้อมูล VI ที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่ VI จะมีการส่งคืนรหัสข้อผิดพลาดที่ 1 VI ข้อมูลจะส่งคืนลักษณะที่คาดว่าจะเกิดขึ้นของ VI VI ประเภทเทอร์มินัลมีรายการสำหรับแต่ละเทอร์มินัลในบานหน้าต่างการเชื่อมต่อ VIs ขั้วไม่ต่อเชื่อมมีประเภทข้อมูลโมฆะ GetWaveformInfo รับข้อมูลเกี่ยวกับประเภทข้อมูล Waveform ที่จัดเก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่ Waveform จะมีข้อผิดพลาดเกิดขึ้น YArrayType ส่งกลับชนิดข้อมูลขององค์ประกอบ YArray waveform8217s เป็น Variant SetArrayInfo ตั้งค่าแอตทริบิวต์ของ descriptor ประเภทอาเรย์ Variant In คือ descriptor ประเภทอาเรย์ที่มีการตั้งค่าแอตทริบิวต์ หากมีแอตทริบิวต์อยู่แล้วระบบจะลบก่อนที่จะมีการเพิ่มแอตทริบิวต์ใหม่ Array Element คือ descriptor ประเภทองค์ประกอบที่จะตั้งค่าใน descriptor ชนิดอาร์เรย์ ความยาวอาร์เรย์เป็นอาร์เรย์ของความยาวมิติ จะมีรายการยาวหนึ่งอาร์เรย์สำหรับแต่ละมิติข้อมูลในอาร์เรย์ Variant Out ส่งกลับ descriptor ชนิดอาร์เรย์หลังจากที่ Array Element และ Array Lengths ถูกเพิ่มเข้าไปใน Variant ใน SetClusterInfo ตั้งค่าแอตทริบิวต์ของ descriptor ชนิดคลัสเตอร์ Variant In คือ descriptor ประเภทคลัสเตอร์ที่มีการตั้งค่าองค์ประกอบ ถ้าองค์ประกอบใดมีอยู่แล้วจะถูกลบก่อนที่จะมีการเพิ่มองค์ประกอบใหม่ Cluster Elements เป็นอาร์เรย์ของ descriptor ประเภทองค์ประกอบที่จะตั้งค่าใน descriptor ชนิดคลัสเตอร์ Variant Out ส่งกลับตัวบอกประเภทของคลัสเตอร์หลังจากที่มีการเพิ่มองค์ประกอบคลัสเตอร์ลงใน Variant In SetNumericInfo ตั้งค่าแอตทริบิวต์ของ descriptor ชนิดตัวเลข Variant In คือ descriptor ประเภทตัวเลขที่มีการตั้งค่าองค์ประกอบ ถ้ามีแอตทริบิวต์อยู่แล้วจะถูกลบก่อนที่จะเพิ่มแอตทริบิวต์ใหม่ Enum Names คืออาร์เรย์ของชื่อที่จะใช้เพื่อสร้างการแจงนับตัวเลข อินพุตนี้เป็นทางเลือกและสามารถใช้ได้กับรูปแบบตัวเลขจำนวนเต็มเท่านั้น หน่วยคืออาร์เรย์ของหน่วยพื้นฐานคู่เลขคู่ซึ่งจะใช้เพื่อสร้างหน่วยสำหรับตัวเลข อินพุตนี้เป็นทางเลือกและสามารถใช้งานได้เฉพาะกับรูปแบบตัวเลขลอยตัวเท่านั้น Variant Out จะส่งคืน descriptor ชนิดตัวเลขหลังจากที่ Enum Names and Units ถูกเพิ่มลงใน Variant ใน SetRefnumContainedType ตั้งค่าแอตทริบิวต์ของ descriptor ชนิดอาเรย์ Variant In คือ descriptor ประเภทอาเรย์ที่มีการตั้งค่าแอตทริบิวต์ หากมีแอตทริบิวต์อยู่แล้วระบบจะลบก่อนที่จะมีการเพิ่มแอตทริบิวต์ใหม่ Array Element คือ descriptor ประเภทองค์ประกอบที่จะตั้งค่าใน descriptor ชนิดอาร์เรย์ ความยาวอาร์เรย์เป็นอาร์เรย์ของความยาวมิติ จะมีรายการยาวหนึ่งอาร์เรย์สำหรับแต่ละมิติข้อมูลในอาร์เรย์ Variant Out ส่งกลับ descriptor ชนิดอาร์เรย์หลังจากที่ Array Element และ Array Lengths ถูกเพิ่มลงใน Variant ใน SetRefnumInfo ตั้งค่าแอตทริบิวต์ของ descriptor ประเภทอาเรย์ Variant In คือ descriptor ประเภทอาเรย์ที่มีการตั้งค่าแอตทริบิวต์ หากมีแอตทริบิวต์อยู่แล้วระบบจะลบก่อนที่จะมีการเพิ่มแอตทริบิวต์ใหม่ Array Element คือ descriptor ประเภทองค์ประกอบที่จะตั้งค่าใน descriptor ชนิดอาร์เรย์ ความยาวอาร์เรย์เป็นอาร์เรย์ของความยาวมิติ จะมีรายการยาวหนึ่งอาร์เรย์สำหรับแต่ละมิติข้อมูลในอาร์เรย์ Variant Out ส่งกลับ descriptor ชนิดอาร์เรย์หลังจากที่ Array Element และ Array Lengths ถูกเพิ่มเข้าไปใน Variant ใน SetTypeInfo ตั้งค่าชื่อและ typedef ของ descriptor ประเภท Variant In คือ descriptor ชนิดที่มีชื่อและ typedef จะถูกตั้งค่าไว้ ถ้ามีแอตทริบิวต์อยู่แล้วจะถูกลบก่อนที่จะเพิ่มแอตทริบิวต์ใหม่ ชื่อคือสตริงที่จะใช้ในการสร้างชื่อสำหรับ descriptor ประเภท Typedef Info คือกลุ่มของชื่อ VI และ timestamp ที่จะใช้เพื่อสร้าง typedef สำหรับตัวเลข Variant Out ส่งกลับตัวบอกประเภทหลังจากที่ชื่อและ Typedef Info ได้รับการเพิ่มลงใน Variant ใน SetVIInfo รับข้อมูลเกี่ยวกับประเภทข้อมูล VI ที่เก็บไว้ใน Variant หากประเภทข้อมูล Variant8217s ไม่ใช่ VI จะมีการส่งคืนรหัสข้อผิดพลาดที่ 1 VI ข้อมูลจะส่งคืนลักษณะที่คาดว่าจะเกิดขึ้นของ VI VI ประเภทเทอร์มินัลมีรายการสำหรับแต่ละเทอร์มินัลในบานหน้าต่างการเชื่อมต่อ VIs ขั้วไม่ต่อเชื่อมมีประเภทข้อมูลโมฆะ รหัส MGI ใช้กลุ่มข้อผิดพลาด LabVIEW มาตรฐานเพื่อให้สามารถทำงานร่วมกับฟังก์ชัน LabVIEW ในตัวได้อย่างคล่องตัว MGI Insert Reserved Error สาย 8220Reserved Error Code8221 ที่มีค่าคงที่ของข้อผิดพลาดของวงแหวนที่จะถูกแทรกเว้นแต่มีข้อผิดพลาดในการอัปสตรีมหรือ 8220Error8221 เป็นเท็จ สตริงที่มาถูกสร้างขึ้นจากห่วงโซ่การโทรโดยเริ่มต้นจากผู้โทร vi8217 และใช้ข้อมูลพรินเตอร์ 8220Error Description8221 MGI ผนวกสตริงไปยังแหล่งข้อมูลข้อผิดพลาดต่อท้ายหรือเติมข้อความที่ระบุไปยังสตริงที่มาของข้อผิดพลาดในการป้อนข้อมูลถ้ามีข้อผิดพลาด MGI ระงับข้อผิดพลาดรหัส VI โพลาคอร์ฟิสนี้ใช้รหัสข้อผิดพลาดหรืออาร์เรย์ของรหัสข้อผิดพลาด ถ้ารหัสข้อผิดพลาดที่ส่งผ่านทาง Error In คือทั้งแบบสเกลารหรือในอาร์เรย์ของรหัสข้อผิดพลาดจะไม่มีการส่งผ่านไปยัง Error Out รหัสข้อผิดพลาดอื่น ๆ จะถูกส่งผ่านไปยังข้อผิดพลาด ผู้รายงานข้อผิดพลาด MGI ผู้รายงานข้อผิดพลาด MGI ช่วยให้ผู้ใช้สามารถแสดงข้อผิดพลาดในลูปแยกกันซึ่งทำให้เกิดข้อผิดพลาดในการดำเนินการต่อ Reporter ข้อผิดพลาดถูกสร้างขึ้นโดยใช้คลาส LabVIEW เพื่อให้สามารถกำหนดลักษณะการทำงานได้โดยการสร้างคลาสย่อย MGI Create เริ่มภูต Error Reporter โดยใช้ Error Reporter ซึ่งเป็นตัวเลือก ถ้าตัวจัดการข้อผิดพลาดไม่ได้เป็นสายให้ใช้กล่องโต้ตอบโต้ตอบข้อผิดพลาด MGI ถ้าภูต Error Reporter ทำงานอยู่แล้วจากระดับบนสุดของ VI อย่าทำอะไรเลยและส่งออก True สำหรับ 8220 แล้ว Running8221 ดู 8220VI Tree. vi8221 สำหรับรายละเอียดเพิ่มเติม ถ้า VI นี้ถูกใช้ใน RT ชั้นของไดอะล็อกจะถูกโหลดใน RT ซึ่งอาจทำให้เกิดปัญหาการเชื่อมโยงและการบันทึก MGI สร้าง Logger เริ่มภูต Error Reporter โดยใช้ Error Reporter ซึ่งเป็นตัวเลือก ถ้าตัวจัดการข้อผิดพลาดไม่ได้เป็นสายให้ใช้กล่องโต้ตอบโต้ตอบข้อผิดพลาด MGI ถ้าภูต Error Reporter ทำงานอยู่แล้วจากระดับบนสุดของ VI อย่าทำอะไรเลยและส่งออก True สำหรับ 8220 แล้ว Running8221 ดู 8220VI Tree. vi8221 สำหรับรายละเอียดเพิ่มเติม รายงานข้อผิดพลาดของ MGI ตัว reentrant VI นี้จะส่งข้อผิดพลาดแบบมีสายหรือคำเตือนไปยังภูตผู้รายงานข้อผิดพลาด ถ้าไม่มีรายงานภูตผู้รายงานข้อผิดพลาดหรือถ้าคิวการประมวลผลเต็มแล้วจะมีการละทิ้งข้อผิดพลาดหรือคำเตือน MGI ทำลายหยุดภูต Error Reporter จากการรันถ้าไม่มี VIs ตัวอื่นกำลังใช้งานอยู่ จานสีขั้นสูงของผู้รายงานข้อผิดพลาด MGI มีข้อความ VI ที่มีผลต่อพฤติกรรมของผู้รายงานข้อผิดพลาด MGI รับรหัสข้อผิดพลาดที่กำหนดเองแสดงรหัสข้อผิดพลาดที่กำหนดเองที่กำหนดไว้สำหรับผู้รายงานข้อผิดพลาด MGI ตั้งรหัสข้อผิดพลาดที่กำหนดเองกำหนดรหัสข้อผิดพลาดที่กำหนดเองซึ่งจะใช้โดยผู้รายงานข้อผิดพลาด อาร์เรย์ของชื่อที่กำหนดเองควรมีคำอธิบายบรรทัดเดียวสั้น ๆ ของแต่ละรหัส MGI Show UI แสดงหน้าต่าง UI (User Interface) ใด ๆ ที่เกี่ยวข้องกับ Reporter ข้อผิดพลาดโดยการส่งข้อความแสดง UI ไปยังภูต ภูตระดับฐานข้อมูลผู้รายงานข้อผิดพลาด MGI จะไม่สนใจข้อความนี้ MGI รับข้อผิดพลาดคำอธิบายได้รับชื่อสำหรับรหัสข้อผิดพลาดที่ระบุเอาต์พุตคำอธิบายเริ่มต้นถ้าพบรหัสข้อผิดพลาด isn8217t VI นี้จะส่งออกชื่อที่กำหนดเองถ้ามีระบุรหัสข้อผิดพลาดที่กำหนดเอง MGI Set Logging Parameters กำหนดลักษณะการทำงานของ Error Logger พฤติกรรมเริ่มต้นคือการบันทึกข้อผิดพลาดสูงสุด 5000 ไฟล์ต่อไฟล์และเก็บไฟล์ได้ไม่เกิน 100 ไฟล์ ข้อผิดพลาดสูงสุดในการเข้าสู่ระบบคือจำนวนข้อผิดพลาดที่บันทึกลงในไฟล์ที่ไม่ได้บันทึกข้อผิดพลาดที่ตามมา สาย -2 เพื่อให้ตัวเลขนี้ไม่เปลี่ยนแปลง สาย -1 เพื่อบันทึกข้อผิดพลาดทั้งหมดในไฟล์ สาย 0 เพื่อปิดการบันทึกข้อผิดพลาด ไฟล์บันทึกสูงสุดคือจำนวนบันทึกข้อผิดพลาดในไดเร็กทอรีข้อผิดพลาด แฟ้มบันทึกที่เก่าที่สุดจะถูกลบเพื่อสร้างเนื้อที่สำหรับไฟล์ใหม่ สาย -2 เพื่อให้ตัวเลขนี้ไม่เปลี่ยนแปลง สาย -1 เพื่อปิดใช้งานการลบไฟล์เก่า สาย 0 เพื่อปิดการบันทึกข้อผิดพลาด MGI รับพารามิเตอร์การบันทึกเอาท์พุทข้อผิดพลาดสูงสุดที่จะเข้าสู่ระบบและสูงสุดของแฟ้มบันทึก -1 บ่งชี้ว่าข้อผิดพลาดทั้งหมดจะถูกเก็บไว้ ไดเรกทอรีล็อกข้อผิดพลาดคือพา ธ ที่เก็บไฟล์บันทึกไว้ MGI ส่งข้อความแบบกำหนดเองส่งข้อความแบบกำหนดเองด้วยข้อมูลที่ระบุ (เป็นตัวแปร) ไปยังภูต Error Reporter This VI is useful for sending messages to a child class of the MGI Error Reporter Base class, which does not handle any custom messages. The MGI Error Reporter Documentation palette contains VI trees for the two Error Reporter classes. It is helpful for understanding how the error reporter works and which VIs should be overridden in child classes to get custom behavior. MGI VI Tree This VI documents the MGI Error Reporter Base Class. See Block Diagram for documentation. File VIs operate on directories and files. MGI Append Text to File Append 8220Text8221 to the file at 8220Path8221. Note: This VI opens and closes the specified file each time it is called. MGI Create Directory Chain This VI creates any non-existant folders in 8220Path8221. The 8220Auto Detect8221 setting of 8220File Presence8221 searches for a 8216.8217 in the name. In this mode a top level folder with a 8216.8217 won8217t get created and a file without an extension will get created as a folder. MGI Default ini Path This VI constructs a standardized configuration file path in either MyDocuments or All UsersDocuments depending on 8220All Users8221. MGI Replace File Extension This VI creates replaces the file extension on 8220Path In8221 with 8220New Extension.8221 MGI File Dialog Merge VI Merge VI for dropping a File Dialog primitive (which does not show up on the palette in LabVIEW 8.0 and later when it is only available through an express VI.) MGI Windows Folder Path Return the path of the specified Windows folder. Calls SHGetFolderPathA routine in shell32.dll to determine the answer. Checksum VIs are useful for calculating and verifying a checksum value on a file or directory of files. MGI CheckValue Directory Calculate Output an array of all files contained in the specified directory along with a CheckValue for each file. Optional Progress Bar Input is updated if wired, otherwise a progress bar dialog with abort button is shown. MGI CheckValue Directory Compare Compare the specified expected files and checkvalues to the specified directory. Extra files in the directory are ignored. If all expected files match, then output true, otherwise output false. If a reference to a slider is wired, then the slider is updated to show the progress of the comparison. Otherwise show a progress bar dialog with optional abort button. MGI Executable Checksum Compute the checksum of the. exe file if an executable is running. FFFFFFFF is returned when running from the development system. MGI File CheckValue Calculate the Checkvalue for the specified file. Config VIs are useful when using the NI Configuration file format. They add support for reading and writing arrays of numeric values to a config file. MGI Read Key This is a Polymorphic VI. Read an array key (actually a section) written by the matching Write VI. MGI Remove Array Sections Remove sections from an ini file when an array is shrinking. If Old Count is unwired, count will be read, parent section will be removed, and then count will be replaced. If Old Count is wired, it8217s assumed thatparent section handling was already performed. Child sections that are removed have names , where ranges from new count to old count-1. MGI Write Key This is a polymorphic VI. Write an array datatype in a human readable format. The 8220key8221 is actually placed in a separate section. Spreadsheet VIs support reading and writing delineated text files that have text headers. MGI Read Spreadsheet File Reads a spreadsheet file by returning the first non-empty, non numeric containing rows as a header, then the following numeric rows. Reading starts at Start Offset. End Offset is the file offset for the next HeaderValues section. This VI is similar to the vi. lib file 8220Read From Spreadsheet File. vi8221, but it supports headers. MGI Write Spreadsheet File Creates or opens the specified spreadsheet file and writes the specified data to the end of the file. This VI is similar to the vi. libWrite Spreadsheet File. vi, but it includes headers. By default, headers are only written if the file is created new. Wire true to 8220Append Headers to existing files8221 to add them to existing files as well. The Sharp Zip Library provides support for creating zip files that are larger than 2Gigabytes. The Sharp Zip Library depends on Microsoft technology. MGI SZL Add File Adds the file specified by source file path to the zip file. Destination path in zip should be the relative path in the zip file including the name of the file itself, but not including the name of the zip file. The updateMode input selects between Safe and Direct. Safe mode will create a temporary file so that errors in the add will not corrupt the entire file. Direct simply adds to the file, so it is more dangerous, but can be significantly faster, particularly for large files. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL Close Zip File Closes the zip file. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL Extract File Extracts the entry specified by entry path in zip from the zip file to the target path. Entry path in zip should be the relative path within the zip file. If the target path already exists you can have a dialog pop up to confirm overwriting by wiring TRUE to confirm overwrite. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL List Zip Contents Lists the file names of all the files in the zip file and if file info is true, outputs a large cluster of info about each file. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL New Zip File Creates a new empty zip file in the path specified by target path. The new file overwrties an existing file or produces an overwrite confirmation dialog based on the value of confirm overwrite. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL Open Zip File Opens an existing zip file. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL UnZip To Directory Unzips the contents of zip file to the target directory. If Preview only is true, this VI doesn8217t unzip the contents and just returns a preview of the list of files. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib MGI SZL Zip Directory Compresses everything in root directory into a zip file. If include subdirectories is TRUE, this VI recursively includes any subdirectories. Open Options can be set to create the zip file new, or open an existing one and append on to it. This VI relies on the Sharp Zip Library which is a assembly written in C by Mike Krueger. It is licenced under the GPL with a special exception permitting independent modules to link to the library regardless of the license terms of the independent module. More information about the library and its license is available from: icsharpcodeopensourcesharpziplib SZL Zip Directory Compresses everything in root directory into a zip file. If include subdirectories is TRUE, this VI recursively includes any subdirectories. Open Options can be set to create the zip file new, or open an existing one and append on to it. MGI Open Explorer Window Open a Windows Explorer window to the specified file8217s directory and select the file. If the path specifies a directory, then the explorer window is opened to that directory, unless 8220Select Directory8221 is true, in which case the explorer window is opened to the parent directory and the specified directory is selected. Graph VIs are useful for setting properties of Chart and Graph controls MGI Autoscaling Enum Merge VI This is a merge VI. It exists to allow easy dropping of the enumeration from the palettes. MGI Graph Tools Enum Merge VI This is a merge VI. It exists to allow easy dropping of the enumeration from the palettes. MGI Non Repeating Plot Color Generate colors that are good for a white background and distinguishable from each other. MGI Set Plot Names This is a polymorphic VI. Sets the plot names as specified, optionally growing the Plot Legend to fit the number of names. If Plot Name is empty, then the Plot Legend is hidden, otherwise it is shown. MGI Set Z Scale Colors Updates the specified color scale using a distribution of colors specified by 8220Scheme8221. Min and Max describe the range of data that is to be displayed using the color scale. If 8220Z Scale Ref8221 is not wired, the scale will not be updated but 8220ValueScale8221 will still contain data for the specified scheme. The output 8220ValueScale8221 will have 256 colordata pairs. Matrix and Vector VIs operate on 1D (for Vector) and 2D (for Matrix) arrays of numeric data. These include Cross Product, which is not included in LabVIEW. MGI Vectors Approximately Equal Check that two vectors are within a given distance of each other. The default tolerance (distance between vectors) is 1E-5. MGI Cross Product Calculate the cross product of two 3-dimensional vectors in cartesian coordinates. MGI Dot Product Computes the dot product of X Vector and Y Vector. MGI Calculate Vector Length Calculate the length of a cartesian vector. MGI Identity Matrix 42154 Simply provides a 42154 SGL identity matrix. The Menu Building palette provides an extensible API for creating Application Menus, Windows Tray item Menus, and Control shortcut menus. It is useful for dynamic menu creation and for simplifing common Menu behavior such as toggling checkboxes and forcing radio button behavior among a set of Menu items. MenuConstructor Polymorphic VI to choose the type of menu you want to create. MenuItemConstructor Use this to create a new MenuItem. Most of the menu items you create can be left as generic menu items. Only use a specialized menu item when you need to use an additional field of that menu item. For example a shortcut in a VI MenuItem, or an icon in a MenuStrip MenuItem SelectionConstructor Polymorphic VI to select the built in selection types. Destroy Destroys the MenuItem. This ensures that all references contained by the menu item are also destroyed. Do not use the 8220Delete Data Value Reference8221 on a MenuItem Reference as this will lead to memory leaks. Use this vi instead. Init Inistializes the menu. This vi will delete any menu8217s that are currently in place. This also creates the Menuitem Clicked event. Do not use this VI to rebuild the menu. There is a separate Rebuild Menu VI. Menu Building Initialization Merge VI This Merge VI is a good starting place for most MenuBuilding menus. It has all of the vi8217s needed to initialize a new menu RebuildMenu Rebuilds the menu after a menu item array is changed. This will not destroy old MenuItem references, so make sure to destroy any MenuItems no longer being used. BasicInfo Retreives basic information about the last menu click. This VI returns the data of the menu item after the menu click. If you need to view more detailed data or the data before the menu click, use a property node. Cleanup Destroys the Menu and all MenuItems inside it. MenuClicked Simulates the menu click. This will perform an identical action as the user actually clicking the MenuItem. SetToDefault Searches the menu for any item with 8220Clicked by Default8221 set to true and then fakes a click on this item. This is useful for initializeing radio selections or checkmark selections to default values. MenuItem Clicked Events will be generates for these default clicks. If you want to process these events, make sure this VI is run after the Register for User Events node on the MenuItem Clicked Event. The Tray Icon palette contains VIs that work with Windows Tray menus. ShowBalloon Shows the notification balloon from the tray item. Balloon Text is required to be a non-empty string. Default timeout is set by the OS, and typically approx 10 sec. For more info see msdn. microsoften-uslibraryms160065.aspx MinimizeToTray Minimizes the referenced to tray. If VI Refnum is unwired the caller is assumed. RestoreFromTaskbar Restores a VI what has previously been Minimized to Tray. If VI Refnum is unwires, the calling VI will be used. Set Show on Taskbar to false to keep the VI from showing in the taskbar. FindMenuItemByTag Searches the menu structure recursively for a menu item with the full tag specified. The Menu Examples palette contains example VIs that use the MGI Menu Building VIs. VI Menu Example Demonstrates the Menu Strip type. Run the VI to see it8217s Runtime Menu replaced by the specified menu. Notice the shorcut key on the Exit Menu item. Click summarys show up in the history array. Click the 8220Add Item8221 to add a dummy item to the VI8217s menu. Tray Icon Example Demonstrates the Tray Icon menu type. Run the VI to see the menu and icon appear in the system tray. Right click the icon to see the menu appear. Double click the Icon to signal a 8220Default8221 menu item click. Fill in the Balloon Info values and click 8220Show Balloon8221 to see the balloon pop-up in the system tray. The 8220tipText8221 is the only field required in the balloon info and an error will be thrown if you try to show a balloon with no tipText. the minimum timeout is controlled by the OS and any value less than the OS value will be coerced up Click summarys show up in the history array. Click the 8220Add Item8221 to add a dummy item to the TrayIcon8217s menu. Control Example Demonstrates the Control Menu type. Right click on the 8220Listbox8221 to see the menu generated. Click summarys show up in the history array. Click the 8220Add Item8221 to add a dummy item to the control8217s menu. MenuStrip Example Demonstrates the Menu Strip type. Run the VI to see the menu appear in the MenuStrip control. Notice the 8220File - Default8221menu item that contains an icon as well as the 8220File-Exit8221 menu item contains a shortcut. Click summarys show up in the history array. Click the 8220Add Item8221 to add a dummy item to the MenuStrip8217s menu. SelectionTypeExample Run the VI and look under the 8220Selection Types8221 menu item for a demo of the built in selection types. Coordinate VIs are useful for performing rotations on 2D or 3D datasets. MGI Apply Transform Polymorphic VI: Apply a cartesian coordinate translation and rotation. MGI Center from 3 Points Polymorphic VI: Calculate the center of a circle based on three points on the circle. MGI Find 2D Intersection of 2 Lines Finds the intersection of 2 lines. If the lines are parallel, then an argument error (code 1) is output. The lines are specified using 2 points for each line. The points are specified as rows in a 2D array where the first column is x and the second is y. MGI Rotate Vector Polymorphic VI: Perform a 3D vector rotation about a coordinate axis. MGI Cylindrical to Cartesian Convert R, Th, Z to X, Y,Z. MGI Find Closest Line Segment Finds the line segment closest to the given x and y coordinates. The Graph Data is intepreted as a sequence of points which are connected by line segments. The points in the graph are assumed to be connected in the order provided. The output index is the index of the first point in the data that is an endpoint of the closest line segment. MGI Find Closest Point Finds the index of the point in the input data that is closest to the given x and y coordinates. The optional input allows the user to use the city block metric (i. e. the sum of the distances in the x and y directions) instead of the standard distance measurement. MGI Generate Orthonormal Basis Generate a set of orthonormal basis vectors from three points given in cartesian coordinates. The basis vectors are found by normalizing: w1p1-p2 w2w1 x (p2-p3) w3w1 x w2 MGI Generate Rotation Matrix Generate a 32153 rotation matrix with specified diagonal elements, - the off diagonal element, and specified axis unrotated. Numeric VIs operate DBL or SGL precision floating point numbers and on integers. They include the coercion, comparison, and rounding subpalettes. For easy access and use with quickdrop, the compound arithmetic nodes are also included. MGI Get Real Quadratic Roots Gets the real roots of the quadratic equation Ax2 Bx C 0. If there are no real roots, then both outputs are NaN. If there is a double root that is real, then both outputs are equal to the double root. If the coefficients correspond to a linear equation (i. e. A is zero) then Root1 is the solution to the linear equation and Root2 is NaN. This VI is configured to run as a subroutine. MGI Nth Root Take the nth root of x. Handles x Ends with Contains Begins with MGI Determine Time Format String Determines a Time Format String for a given string in a common date format. For example Thu, January 1, 2011 3:00 PM would be a, B, d, Y I:M p. The Day Before Month input specifies whether the day or month is first when in a 12111 type format. The Leading Zeros input determines if the day, month number, and hour will have a leading zero if they are only 1 digit. MGI Parse Format String Parses the string at the specified position for a format code. The portion of the string before the format code is output as 8220Delim8221. If an error occurs, then an error is output and the Offset out is -1. MGI Scan From String This PolyVI handles scan from string for special datatypes. Timing VIs are usefull for measuring the execution duration of some code and for providing a delay that uses explicit dataflow using an error cluster. MGI Wait This is the polymorphic version that contains both millisecond and second versions of MGI Wait. Useful to create data dependency on the error lines and to have a smaller icon. If 8220Error In8221 has an error, then this VI won8217t perform the wait. MGI Milliseconds Since Last Call This VI stores the tick count on a shift register and provides as an output the number of milliseconds since the last time this VI was called. MGI Milliseconds Since Last Reset Returns the amount of time in milliseconds since the last time the VI was reset. This VI is non-reentrant. Tree VIs are usefull for populating the LabVIEW Tree control. MGI Get Tree Tag Children Get all child tags of the specified tag for the specified tree control. MGI Populate Tree with Delimited Strings Populates the specified Tree Control with the specified items. The items are delimited strings where the text of each parent is in the string seperated by delimiters. For example, the string 8220CProjectFoo8221 with the delimiter 82208221 would be shown as C Project Foo Each Row in the 2D Items array is a child item. The first column contains the Tags. Subsequent columns contain Text for the Tree control columns. If 8220Use Child Only Items8221 is true, then items in the 2D array that are not followed by a descendent item are inserted as 8220Child Only8221. Otherwise, all items are inserted as Child OnlyFalse. NOTE: If Use Child Only Items is true, then the 2D array must have all parent tags followed immediately by one child item. MGI Tree Rows from Delimited String Array Convert the array of delimited strings stored in the first column of the specified array to Tree Rows. The remaining columns are used as text for each tree row. Post navigationmoving average for 10 values from an array I have to build an application wherein I continuosly get a values stored in an array of a fixed size 10. For every new time interval the last value is deleted and new value is added to the array. At a time 10 values are read and average is calculated. once I get the mean value. I have to compare with the min and max deviation from the mean. If the value of each array of a set is within the range then I have to provide a count which shows number of values in the array set of 10 else show the count as number of values outside the range. A set is of 10 values for each time interval. t0-t9 - 10 values. t2-t11 - 10 values.. for all set i have to provide indication whether the set is valid or not. Message 1 of 8 (916 Views) Re: moving average for 10 values from an array 12-02-2013 04:03 PM Did you do the search that you were supposed to before you asked your question I typed in moving average and the search engine immediately found 100 message threads, and would probably have found more if I had given it time. Many on the first page looked like exactly what you are asking about. To err is human, but to really foul it up requires a computer. The optimist believes we are in the best of all possible worlds - the pessimist fears this is true. Profanity is the one language all programmers know best. An expert is someone who has made all the possible mistakes. To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s): Message 2 of 8 (887 Views) Re: moving average for 10 values from an array 12-03-2013 12:53 AM I did that already, but dont seem to get a proper solution. I am sorry but I am new to labview and working for the academic project which I have to submit within few days from now. I appreciate your help. and I will try to cover up for me through many other posts. Message 3 of 8 (867 Views) Re: moving average for 10 values from an array 12-03-2013 03:50 AM You just want to know if your method is valid right It is when the array is full (10). Had nothing to do so i changed your vi a bit, removed the for-loop and case structure. UnCertified LabVIEW Student Mistakes are for learning, thats why suggestions are always welcome Message 4 of 8 (840 Views) Re: moving average for 10 values from an array 12-03-2013 04:07 AM I appreciate your help. What I am actually looking is that, once gt I get the first 10 ( at time interval t0-t9 and values as a0-a9 ) values in the array I should start processing the mean and not until the 10 arrays have been filled with the values. after first 10 values are filled, i will check for the deviation for each array value from a0-a9, If in range it should indicate yes or else no.( this i already have ). gt once this is processed I should take the data set fom t1-t10, values as a1-a10. this will be my new set. Again I will follow the procedure for the mean check.. gt This goes on continuously. In the earlier vi of mine and in the later one of yours, in both the case the mean is calculated from the first value itself. which is not needed for my case. It should only process once all 10 values are entered. later for all set it should continuously process the mean. (since for lateral time i will always have 10 values in the array). I tried searching for this querry but could not find any proper solution. I would really appreciate if I can be helped. ขอบคุณล่วงหน้า. I dont really get your point. You want a moving average from 10 points, this is what you already implemented. But you dont want to average it untill you have your full 10 points If this is what you want there are two options. 1. you create a for-loop infront of the while loops which iterates 9 times your random generator, then connect it to the array shif register. 2. start with an empty array and let the mean calculate from less then 10 points till the array is full, this one is attached. UnCertified LabVIEW Student Mistakes are for learning, thats why suggestions are always welcome

No comments:

Post a Comment