顯示具有 VB.NET progects 標籤的文章。 顯示所有文章
顯示具有 VB.NET progects 標籤的文章。 顯示所有文章

2008/10/31

用 ni DAQmx去控制硬體

又開始用basic寫小軟體了。。。

我第一次不是因為交作業而寫的軟體是一個磅秤資料的讀取軟體
每隔n分鐘會讀取磅秤的數值,然後寫入檔案紀錄
當時用的是basica,通過printer port取得磅秤輸出的結果
隔十幾年後,用的是visual basic .NET通過daq卡
控制馬達,控制輪子轉動角度,控制快門....等
=======================================
首先呼叫daqmx
Imports NationalInstruments.DAQmx
....
....
定義一個工作
Dim NAME_OF_TASK As Task = New Task()
開啟工作用的頻道
NAME_OF_TASK.DIChannels.CreateChannel(###...)
定義一個讀者用來讀取頻道傳來得資料
Dim READER As New DigitalSingleChannelReader(NAME_OF_TASK.Stream)
接下來就可以自由發揮,看要把資料拿來幹啥了
粉簡單
====================================
如果我不改行,大概每隔一陣子都會需要這樣寫一次
只是下次這個basic不知道會變成啥樣
Read more!

2008/02/24

Python

最近開始研究這條大蟒蛇,想要逃離M$的魔掌
雖然google很方便,可是學習語言這種東西,還是要靠自己一點一滴的吸收
大蟒蛇看起來不錯,加上mono這個東西以後,似乎不用.net framework就可以執行vb.net寫出來的東西
感覺很有希望
Read more!

2008/01/30

我的軟體集錦,Collection of softwares that I wrote.

This is the list of small programs that I
1. had written, 2. am writting, 3. will TRY to write.
All are available to anyone, FREE of charge!
Not totally Freeware yet, but please do mail me if you
want the source code.
Use them if you can and don't use if you can't.
All of the programs todate were written with Visual Basic.NET 2003
To run these program, you must have a PC, M$ windows something
and M$.NET framework installed.

1. SequenceSimilarity: A program that calculates the
similarity of two sequences (DNA or amino acid/protein)
of the same length.
Download SequenceSimilarity Size 23.5kb
Latest build: 20080129

2. Tiler: A program that take several images and make
them the same in size (of ones choice), put them together
like tiles. User have the option to pick the color between
pictures as well as the size of the "spacer". It only
output JPEG images. The quality of the output image could
be set by user.
Download Tiler Size 52kb
Latest build: 20080126

3. CC: A program that convert simplify and traditional Chinese back or forth.
繁簡中文轉換軟體。
Download CC (Coming soon)
latest build:

4. MM: a program that convert Morse code and english characters/numbers back or forth.
Download MM (Coming Soon)
Lastest build:
Read more!