Discusiones sobre Productos NI

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Seial port Communication

Is it possible to make an application in labview that autodetects the srial ports that are being used by the computer, and can this be made with events?

Can labview monitor a computer's power state, such as shutdown, restart, etc..

Can an application be made so that it auto starts with windows?

Is it required to install a module to use serial communication in labview?

0 件の賞賛
メッセージ1/5
5,802件の閲覧回数

Let's start from the easy answers...

 

Is it required to install a module to use serial communication in labview?

LabVIEW manages serial communications through VISA: the specific software gets installed on your machine together with LV but you will need to install VISA runtime on the target machine if different from the development machine. This is normally done by creating a distribution and including VISA in it (see here and here)

 

Can an application be made so that it auto starts with windows?

Simply create a shortcut to the application and place it in Automatic execution (or Startup: not sure how it's called in English) folder in start menu

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 件の賞賛
メッセージ2/5
5,779件の閲覧回数

Hello Nando88,

 

Q: Is it possible to make an application in LabVIEW that autodetects the srial ports that are being used by the computer, and can this be made with events?

A:

How Do I Programmatically Determine Available Resources at Runtime in LabVIEW?:

http://digital.ni.com/public.nsf/allkb/FA9073730B255BE586256E54005B13C4?OpenDocument

 

Q: Can labview monitor a computer's power state, such as shutdown, restart, etc.

A: On your other Post:

 

Monitor computer power events:

http://forums.ni.com/t5/LabVIEW/Monitor-computer-power-events/m-p/3082503

 

Q: Can an application be made so that it auto starts with windows?

A:

 

Running a VI when Windows Boots:

http://digital.ni.com/public.nsf/allkb/45455665A28AE87E862569CE0077583B?OpenDocument

 

Q: Is it required to install a module to use serial communication in LabVIEW?

A: Answered above by RobertoBozzolo.

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 件の賞賛
メッセージ3/5
5,733件の閲覧回数

I found an example that lists all the serial ports in a windows machine, and it uses the kernel32.dll, and I was wondering what can I use in linux? I was also wondering if it would be a better approach to use a c dll, to pass all the values to labview?

0 件の賞賛
メッセージ4/5
5,526件の閲覧回数

Hi!

I don't know if you're still looking for an alternative but I use this snippet regularly and it works fine enough. I found it somewhere in internet and I make some small modifications to adapt it to any VI I use.

I hope it helps スマイリー ウインク

 

COM Ports.png

0 件の賞賛
メッセージ5/5
5,343件の閲覧回数