TCP/IP communication to Hardware

Antworten
abacom
Site Admin
Beiträge: 3303
Registriert: Dienstag 23. September 2008, 10:54
Kontaktdaten:

TCP/IP communication to Hardware

Beitrag von abacom » Dienstag 14. Oktober 2008, 12:05

p.erasmus



Anmeldungsdatum: 15.01.2007
Beiträge: 85

Verfasst am: 11.02.2008 11:27 Titel: TCP/IP communication to Hardware

--------------------------------------------------------------------------------

Dear Abacom and Users.

Up to now I have used PL to communicate with my Microcontroler based applications over the serial Port and by using the Microchip CDC class windows driver emulating the serial port I use the USB to communicate.

I was just thinking and excuse any techincal statements which is incorrect as I am not that familiar with the PC side.
any how If I could use PL to access the TCP (LAN Card) I could use the
ENJ ethernet controller and through the ethernet communicate to my application microcontroller (applying the TCP protocol)
is this any way sensible to do or completely incorrect,
I need in a application to transfer rather large data blocks to the PCapplication.(I do not want to do an internet application it is a pure communication between PC and application Hardware).
any views or advise is highly appreciated .

Regards
Peter
_________________
P.Erasmus
Automotive Engineering
http://www.wenko.ch
Switzerland

Nach oben


abacom
Site Admin


Anmeldungsdatum: 30.06.2006
Beiträge: 898

Verfasst am: 11.02.2008 21:33 Titel:

--------------------------------------------------------------------------------

Not yet. ProfiLab uses its own protocol (over TCP) to exchange data between two ProfiLab applications. Not made for user applications.
For your purpose better write a DLL!

Nach oben


p.erasmus



Anmeldungsdatum: 15.01.2007
Beiträge: 85

Verfasst am: 11.02.2008 22:24 Titel:

--------------------------------------------------------------------------------

Dear Abacom

Thank you for the reply!

As mentioned I am not that familiar with the PC side
is it possible to use a DLL to connect to the LAN port on the PC !!
Please help I am completely confused here .

I will start by looking at the PL examples on the use of DLLs

Best Regards
Peter
_________________
P.Erasmus
Automotive Engineering
http://www.wenko.ch
Switzerland

Nach oben


abacom
Site Admin


Anmeldungsdatum: 30.06.2006
Beiträge: 898

Verfasst am: 14.02.2008 09:30 Titel:

--------------------------------------------------------------------------------

The "DLL import" component is a programming interface (API) for ProfiLab Expert. Inside the DLL you can do any kind of calculation (typically communication with hardware). Also refer to:

dll-import---programmierbeispiele-t328.html

See ProfiLab examples as well. If you are familiar with C, the DEV C++ compiler (open source, freeware) may helpful for a first approach.

Nach oben


p.erasmus



Anmeldungsdatum: 15.01.2007
Beiträge: 85

Verfasst am: 14.02.2008 09:38 Titel:

--------------------------------------------------------------------------------

Dear Abacom

Thank you for the reply ,
I am familiar with C as I use C to program the Microcontrollers
I will take alook at the link you included.
Thankyou very much for the advise

Best regards
Peter
_________________
P.Erasmus
Automotive Engineering
http://www.wenko.ch
Switzerland

Zuletzt bearbeitet von p.erasmus am 15.02.2008 09:31, insgesamt einmal bearbeitet

Nach oben


p.erasmus



Anmeldungsdatum: 15.01.2007
Beiträge: 85

Verfasst am: 15.02.2008 09:30 Titel:

--------------------------------------------------------------------------------

Dear Abacom and Users

Is it also possible to write a DLL in VB.net 2005.as the express addition is for free and I have VB.net standard as we also use it to program NI hardware with VB.net and NI measurement Studio
if this is possible it might be for me the easier ways as said before I am not that familiar with the PC and windows Programmimg.
Best Regards
Peter
_________________
P.Erasmus
Automotive Engineering
http://www.wenko.ch
Switzerland

Nach oben


abacom
Site Admin


Anmeldungsdatum: 30.06.2006
Beiträge: 898

Verfasst am: 21.02.2008 22:48 Titel:

--------------------------------------------------------------------------------

I´ve tried the VB.net 2005 free version as well before. It is NOT possible. What you need to create is a simple DLL function library. VB.net handles DLL´s as type libraries, which is something completely different!

Nach oben


p.erasmus



Anmeldungsdatum: 15.01.2007
Beiträge: 85

Verfasst am: 24.02.2008 21:39 Titel:

--------------------------------------------------------------------------------

Thank you very much for the information
_________________
P.Erasmus
Automotive Engineering
http://www.wenko.ch
Switzerland
ABACOM support

Antworten

Zurück zu „Hardware-Anbindung, I/O-Schnittstellen“