Hello Vee world !
I'm trying to develop a driver for the brand new HP M Module (HP E2259A)
but I have problem to compile it.
It's not HP Vee stuff, but maybe one of you has already a driver or any
advice to give ... (see below for more details)
Pierre-Eric DEREUX
--------------------------------
Bell Helicopter Textron Canada
Engineering
12800 rue de l'Avenir
Mirabel (Qc)
J7J 1R4 Canada
Tel. : (514) 971 6731
Fax : (514) 437 6382
PDereux@bellhelicopter.textron.com
---------- CUT HERE --------------------------------------
REFERENCES :
[1] HP E2259A User's Manual and programming guide
[2] HP 2251A User's Manual
PROBLEM :
I'm trying to reuse the program examples given in the doc. in reference
but I get a link error when compiling.
I use :
MS Visual C++ 5.0
Windows NT 4.0 SP3
HP I/O Libraries for Windows 95 and Windows NT Release D.02.00
VISA Library version 1.0.
* MS Visual C++ settings :
The source is the one given pages 34 and 35 of doc. [1], with
corrections of bugs (missing ';'; typing errors 'err_status' instead of
'errStatus' ....)
The compiler target is a win32 console application, not using MFC. The
projext options are :
/nologo /MLd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D
"_MBCS" /Fp"Debug/M_Module.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /c
The Tools/Options/Directories added are the pathes to
vxipnpwinntlibmsc, vxipnpwinntinclude, siclc
* Error message :
Deleting intermediate files and output files for project 'M_Module -
Win32 Debug'.
--------------------Configuration: M_Module - Win32
Debug--------------------
Compiling...
M_Module.c
Linking...
M_Module.obj : error LNK2001: unresolved external symbol _viClose@4
M_Module.obj : error LNK2001: unresolved external symbol _viOut16@16
M_Module.obj : error LNK2001: unresolved external symbol _viIn16@16
M_Module.obj : error LNK2001: unresolved external symbol _viOpen@20
M_Module.obj : error LNK2001: unresolved external symbol
_viOpenDefaultRM@4
Debug/M_Module.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
M_Module.exe - 6 error(s), 0 warning(s)
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
I'm trying to develop a driver for the brand new HP M Module (HP E2259A)
but I have problem to compile it.
It's not HP Vee stuff, but maybe one of you has already a driver or any
advice to give ... (see below for more details)
Pierre-Eric DEREUX
--------------------------------
Bell Helicopter Textron Canada
Engineering
12800 rue de l'Avenir
Mirabel (Qc)
J7J 1R4 Canada
Tel. : (514) 971 6731
Fax : (514) 437 6382
PDereux@bellhelicopter.textron.com
---------- CUT HERE --------------------------------------
REFERENCES :
[1] HP E2259A User's Manual and programming guide
[2] HP 2251A User's Manual
PROBLEM :
I'm trying to reuse the program examples given in the doc. in reference
but I get a link error when compiling.
I use :
MS Visual C++ 5.0
Windows NT 4.0 SP3
HP I/O Libraries for Windows 95 and Windows NT Release D.02.00
VISA Library version 1.0.
* MS Visual C++ settings :
The source is the one given pages 34 and 35 of doc. [1], with
corrections of bugs (missing ';'; typing errors 'err_status' instead of
'errStatus' ....)
The compiler target is a win32 console application, not using MFC. The
projext options are :
/nologo /MLd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D
"_MBCS" /Fp"Debug/M_Module.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /c
The Tools/Options/Directories added are the pathes to
vxipnpwinntlibmsc, vxipnpwinntinclude, siclc
* Error message :
Deleting intermediate files and output files for project 'M_Module -
Win32 Debug'.
--------------------Configuration: M_Module - Win32
Debug--------------------
Compiling...
M_Module.c
Linking...
M_Module.obj : error LNK2001: unresolved external symbol _viClose@4
M_Module.obj : error LNK2001: unresolved external symbol _viOut16@16
M_Module.obj : error LNK2001: unresolved external symbol _viIn16@16
M_Module.obj : error LNK2001: unresolved external symbol _viOpen@20
M_Module.obj : error LNK2001: unresolved external symbol
_viOpenDefaultRM@4
Debug/M_Module.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
M_Module.exe - 6 error(s), 0 warning(s)
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
>
>I have set up the To/From Socket object in two different vee programs and
>they communicate back and forth with out a problem.
>
>Now I am trying to communicate with an application that I have written using
>winsock2. The message that is sent by vee is received by the
>application. When I send a message from the application which is acting like
>a server to vee the READ IOSTATUS comes back with a 1 but when I do a read
>theTo/From Socket object times out saying that it did not receive the
>message. I have the write, read iostatus and read transactions in separate
>To/From Socket objects. I close the socket after trying to read it in the
>third object. The application does not indicate an error on sending and the
>application sees the socket close in vee at the end.
>
>I would appreciate any help .
>
>Mike gustin
>
>mgustin@smsmfg.sme.siemens.com
>
Hi Mike,
It sounds me like you are reading the message with a bad format. I suggest
you, for testing pourposes only, to include the read part of the sockect
into a loop that read one byte (in bynary format) until the end of the
message. Once you are able to know which is thespecific message and its
format you could design a better sokect structure. Maybe your problem is a
format problem!
Hope this help,
______________________________________________________
Juan Carlos Martin
E-mail : jcmar@mdr.indra-espacio.es
Phone : 34-91-3963995
Fax : 34-91-3963912
Earth Stations Department
INDRA ESPACIO / MADRID /SPAIN