我需要PRINT PORT的例子

我已經試著從7.1的例子裡面找

但是我找不到可以簡單讀取PRINT PORT訊號的例子

不知道是我的方向錯誤還是怎樣   請問哪邊有可以簡單經由PRINT PORT讀訊號的例子---是不是 parallel port阿

如果是的話  我想問如果我有一個  磁黃開關  我的訊號線  是直接接在  電腦的print 後面嗎   還是需要一個介面來連接兩者

我看他的說明  好像我還需要去電腦的BIOS改東西   還要  去定義他的位址.....我就不懂他的意思了

1)  Place the parallel port into standard mode (SPP) from the computer's BIOS configuration.  This may also appear as AT or PS/2 mode in some BIOS utilities.  The modes to avoid are EPP and ECP.

2)  Determine the parallel port's base address and enter it into the Data Register (Base +0) control.

3)  Enter the desired update rate for the parallel port data into the update rate control.

4)  Run the VI and the current state of the data, status, and control registers will be displayed.  Input line states may be changed by pulling them to ground or driving them high externally.

感謝喔............另外我要做遠端  

Web Publishing tool   是一種工具嗎  軟體嗎  因為有人建議我可以使用他  再用IE監控

所以我不太清楚 我有去   估狗   查   但是感覺他是一項技術 所以我不清楚我該如何下手

BIBBY38699.5606828704

有關parallel port的資訊,可以建議你去找paraeel port Specification,根據你所po的訊息,應該要將BIOS裡的parallel選項設成SPP Mode               至於port所對應的address,我不是很清楚,我記得spec裡應有提到.Web Publishing tool   是labview裡的一個工具,可以將所所完成的vi發佈成所對應的.htm檔案,會自動建立在labview內建的web server上,所以使的port是80,有點像是 asp檔案架在iis上面的意思,你也可以用remote panel connection manager來達到遠端監控.

這是就我了解所能為你解答,若有資料不正確還請各位前輩指正,謝謝~

 

上面所說的跟你在BIOS所設定的有關
有三種模式可選,EPP ECP SPP
當然都是378位址,但在控制上所得到的位址有些不一樣
在Example打Parallel就可以找到相關範例

![](upload://pKoV5mBS9TRSA892OUNEt9p63Uy.jpeg)
以上例,即可做出最簡單的輸入
我試的是,如果以第13支腳為輸入,則在不同的模式下Numeric 2則會有不同的值
可能為111 也可能為104

可參考“LabVIEW硬體介面篇”,高立。會更清楚^^