Hi folks,
Just wondering if anyone knows where I can find modules for NI-488.2
GPIB and for a generic ethercard?
Thanks. 7 3099
Chaser wrote: Just wondering if anyone knows where I can find modules for NI-488.2 GPIB and for a generic ethercard?
Can't help directly with the GPIB thing, except to note that
using something like ctypes it is generally pretty easy to
wrap the NI libraries for such things.
As for the other question: do you actually mean you want a
way to talk "raw" Ethernet, or are you just trying to do
some networking?
-Peter
Peter Hansen <pe***@engcorp. com> wrote in message news:<0-*************** *****@powergate .ca>... Chaser wrote: Just wondering if anyone knows where I can find modules for NI-488.2 GPIB and for a generic ethercard?
Can't help directly with the GPIB thing, except to note that using something like ctypes it is generally pretty easy to wrap the NI libraries for such things.
As for the other question: do you actually mean you want a way to talk "raw" Ethernet, or are you just trying to do some networking?
-Peter
Hi Peter,
I have an equipment that's controlled through ethernet. (The control
program is currently written in C++.) I guess my really difficulty
is, how do I send commmands to that devise through ethernet using
Python?
Any suggestions are appreciated. Thanks.
v/r,
Justin
In article <21************ **************@ posting.google. com>, ju********@yaho o.com (Chaser) wrote: I have an equipment that's controlled through ethernet. (The control program is currently written in C++.) I guess my really difficulty is, how do I send commmands to that devise through ethernet using Python?
You havn't given enough information to give a good answer, but I'll take
a shot.
First, you need to know what kind of protocol your device talks. It's
virtually certain that the device implements some kind of custom
application-level protocol on top of some standard transport layer such
as TCP/IP. Assuming that's the case, you need to:
1) Find the documentation for the application-level protocol it talks.
2) Find out the IP address (or hostname) of the device.
From within Python, you will need to create a socket, connect the socket
to your device using the connect() method, and then use the send() and
recv() methods to talk to the device. You'll need to implement the
application-layer protocol yourself.
The details of how to use sockets in Python (i.e. connect(), send(),
recv(), etc) are documented in "7.2 socket -- Low-level networking
interface" of the Python Library Reference. To really understand what
section 7.2 is talking about, however, you need to have a general feel
for how network communication works in general. Fortunately, the
introduction to section 7.2 contains some pointers to some good general
reference books.
In article <ro************ ***********@rea der1.panix.com> ,
Roy Smith <ro*@panix.co m> wrote: In article <21************ **************@ posting.google. com>, ju********@yaho o.com (Chaser) wrote:
I have an equipment that's controlled through ethernet. (The control program is currently written in C++.) I guess my really difficulty is, how do I send commmands to that devise through ethernet using Python?
You havn't given enough information to give a good answer, but I'll take a shot.
First, you need to know what kind of protocol your device talks. It's virtually certain that the device implements some kind of custom application-level protocol on top of some standard transport layer such as TCP/IP. Assuming that's the case, you need to:
1) Find the documentation for the application-level protocol it talks.
2) Find out the IP address (or hostname) of the device.
From within Python, you will need to create a socket, connect the socket to your device using the connect() method, and then use the send() and recv() methods to talk to the device. You'll need to implement the application-layer protocol yourself.
The details of how to use sockets in Python (i.e. connect(), send(), recv(), etc) are documented in "7.2 socket -- Low-level networking interface" of the Python Library Reference. To really understand what section 7.2 is talking about, however, you need to have a general feel for how network communication works in general. Fortunately, the introduction to section 7.2 contains some pointers to some good general reference books.
I'll add that what you're attempting might be essentially impossible,
or extremely easy, or anything in between. Hardware vendors vary
WIDELY in the "hackabilit y" of what they sell.
It might be worth calling in one of us with experience in networking
and physical devices for at least a small amount of initial consulta-
tion. It has the potential to save you months (! yes, I've seen it
take that long to understand a vendor sufficiently well to realize
that a problem has an easy answer).
On 5 Nov 2004 05:33:49 -0800, Chaser <ju********@yah oo.com> wrote: Peter Hansen <pe***@engcorp. com> wrote in message news:<0-*************** *****@powergate .ca>... Chaser wrote: > Just wondering if anyone knows where I can find modules for NI-488.2 > GPIB and for a generic ethercard?
.... As for the other question: do you actually mean you want a way to talk "raw" Ethernet, or are you just trying to do some networking?
.... I have an equipment that's controlled through ethernet. (The control program is currently written in C++.) I guess my really difficulty is, how do I send commmands to that devise through ethernet using Python?
If this really is raw ethernet, I think your best multi-platform shot would
be a bleeding edge version of libpcap ( http://www.tcpdump.org), and a Python
wrapper on top of it. Then make your OS accept the presence of the
interface, but not send or listen to it, and use libpcap to listen and to
inject (new feature in libpcap) ethernet frames.
It /might/ work. High data rates may be a problem; libpcap with a
relatively slow client might drop packets.
/Jorgen
--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
Jorgen Grahn <jg*********@al gonet.se> wrote in message news:<sl******* *************** **@frailea.sa.i nvalid>... On 5 Nov 2004 05:33:49 -0800, Chaser <ju********@yah oo.com> wrote: Peter Hansen <pe***@engcorp. com> wrote in message news:<0-*************** *****@powergate .ca>... Chaser wrote: > Just wondering if anyone knows where I can find modules for NI-488.2 > GPIB and for a generic ethercard? ... As for the other question: do you actually mean you want a way to talk "raw" Ethernet, or are you just trying to do some networking? ... I have an equipment that's controlled through ethernet. (The control program is currently written in C++.) I guess my really difficulty is, how do I send commmands to that devise through ethernet using Python?
If this really is raw ethernet, I think your best multi-platform shot would be a bleeding edge version of libpcap (http://www.tcpdump.org), and a Python wrapper on top of it. Then make your OS accept the presence of the interface, but not send or listen to it, and use libpcap to listen and to inject (new feature in libpcap) ethernet frames.
It /might/ work. High data rates may be a problem; libpcap with a relatively slow client might drop packets.
/Jorgen
Wow! Thanks for the overwhelming support. I am a computer
illiterate. Please be patient with me.
I found the following posting that deals with GPIB interface using
Python. http://groups.google.com/groups?q=py...eja.com&rnum=4
But I got stuck on the first step of installing the dynwin package.
The dynwin package relies on two auxiliary dlls, calldll.pyd and
npstruct.pyd.
I literally downloaded the .zip, unzip them and "drag and drop" the
two .pyd into my Python24/DLLs folders. Then I created a dynwin
folder in the Python24\Lib directory.
1. Is this the right way?
2. At the Python prompt, I typed "import windll" and got the error
message that the module doesn't exist!
3. I then tried "import dynwin.windll" and Python says module calldll
doesn't exist!
HELP HELP HELP ju********@yaho o.com (Chaser) wrote in message news:<21******* *************** ****@posting.go ogle.com>... Hi folks,
Just wondering if anyone knows where I can find modules for NI-488.2 GPIB and for a generic ethercard?
Thanks.
Have you checked out: http://sourceforge.net/projects/gpib82357a/
This looks like a good reference...
Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dannic |
last post by:
Does anyone know of a way to use php to communicate over a gpib interface?
Billie Kennedy
|
by: whoopsi |
last post by:
Hi,
Could someone give me some simple commands for communicating with
GPIB devices. All I want is to aquire values from a multimeter/fiber
optic attenuator/and a power meter. Nothing too complex. I was able to
do so using Matlab (however, I was using the serail port) and
communicating via SCPI language, but now the computer I'm using doesn't
have Matlab, so I'm trying to learn with Python. I've downloaded and
installed: ActivePython_2.4,...
|
by: Madhusudan Singh |
last post by:
python-gpib provides Gpib.py (see end of post) for Linux.
I am trying to use the method called read. I usually use it without
arguments (the default length being 512). However, I am trying to read in a
string with some 16,000 comma separated floating point numbers.
So, I have to pass a length parameter much much larger than 512. As is
stands, the default read takes in only about 35-40 numbers, so I need about
512/35*16000 ~= 230,000....
|
by: DotNetJunkies User |
last post by:
I'm using VB6 under Windows XP, I initilize IEEE488 Board (PCI Board installed and recognized by Device manager, no conflicts) by creating a new thread and also Initilize all the GPIB Devices by address.
Sometimes it crashes the computer, general default Blue Screen.
When it is not crashing it closes my application after making a call to one of the Devices!
Any ideas?
Thanks,
Shawn
|
by: Gurinder |
last post by:
Hi,
Does anyone knows how to use GPIB with VB.Net(2003)? I
know with VB6.0 we use to add two modules provided by NI.
But what to do in case of VB.Net
Thanks,
Gurinder
| |
by: dubZ |
last post by:
Does anyone have experience with GPIB programming? I am looking for some basic and general information on the general theory and logic flow of programming measurement devices using GPIB.
Thanks in advance!
|
by: sathiyamurthy |
last post by:
Hi all,
i want to retrieve the GPIB address through some commands and queries.. can any one suggest me the command to get the gpib address of an instrument?. i have only instrument name .some instruments are connected to the computer through gpib .
best regards
sathiya
|
by: kavok |
last post by:
I am writing a software that needs to sniff packets in the network (raw ethernet) and also, with another thread send regular UDP packets with the common socket API's.
However, when the RAW Ethernet sniffing is on, the socket API calls sending regular UDP packets don't work (although they report no error).
Do any of you know why this happens? I'm using linux 2.4.20 (it has to be this version... don't ask me why).
This is my code to...
|
by: basyarie |
last post by:
Dear VB specialist,
I need your help for my problem. I wanna get data from our measurement tool called Data Transmission Analyzer from Anritsu company. The model is MD6420A. I want to retrieve it and write to my laptop using GPIB-USB cable from National Instrument under VB6 application.
My questions:
1. I read some VB6 books related to GPIB comm and measurement tools. But unfortunately different product will be different required module...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |