LabVIEW開發(fā)LED滾動顯示程序
LabVIEW開發(fā)LED滾動顯示程序
一個(gè)LED滾動顯示的程序,允許用戶在LED陣列中寫入和旋轉(zhuǎn)一行文本??梢愿淖兯俣?,旋轉(zhuǎn)方向,文本顏色和背景。
旋轉(zhuǎn)可以通過以下方式啟動:通過直接作用于前面板的切換開關(guān)按鈕“rotate”,按Enter,雙擊顯示屏,單擊顯示屏并松開按鈕到初始位置的左側(cè)或右側(cè),以便也建立文本的旋轉(zhuǎn)方向。操作“inverse”按鈕可反轉(zhuǎn)旋轉(zhuǎn)方向?;瑒娱_關(guān)“reset?view”允許恢復(fù)輸入的文本字符串。使用的字母表僅包含大寫字母、數(shù)字和標(biāo)點(diǎn)符號。

?
Changingthe?Color?of?Blinking?LED?on?LabVIEW?Front?Panel
Aftersetting?the?on/off?state?for?my?LED?indicator?in?LabVIEW,?I?used?a?propertynode?on?my?block?diagram?to?set?the?LED's?Blinking?property?to?TRUE.?When?theVI?runs,?however,?the?LED?always?blinks?in?yellow?regardless?of?the?colorsetting?I?used.?How?can?I?change?the?blinking?color?of?my?LED?indicator??
Solution
Theblinking?color?of?a?LED?indicator?is?set?independently?from?the?on/off?statecolor?of?LED?under?the?property?node.
Theon/off?state?color?of?LED?can?be?set?by?either?right-clicking?the?object?on?thefront?panel?and?changing?its?properties?or?through?the?Color[]?property?in?aproperty?node?for?the?object.
Tomodify?the?blinking?color,?open?the?Tools>>Options?window?in?LabVIEW?8.xand?select?the?Colors?category.?Yellow?is?the?default?blinking?color?forcontrol?or?indicator?in?LabVIEW.?Modify?the?colors?defined?for?Blink?Foregroundand?Blink?Background?to?change?the?blinking?color?of?the?LED.

InLabVIEW?2009?and?later,?the?Colors?option?has?been?moved?to?the?bottom?of?theEnvironment?section?as?seen?below.?

需要說明的是,上述的例程和文檔,都是可以下載的,雙擊即可打開,其中壓縮文件是可以采用粘貼復(fù)制的方式,拷貝到硬盤上。這不是圖片,各位小伙伴看到后嘗試一下,這個(gè)問題就不用加微信咨詢了。有關(guān)LabVIEW編程、LabVIEW開發(fā)等相關(guān)項(xiàng)目,可聯(lián)系們。附件中的資料這里無法上傳,可去公司網(wǎng)站搜索下載。
LabVIEW程序,如下附件所示。