Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB serial poll c++ example

Hi All,

I am new using NI product. I already purchase 2 GPIB (NI-488.2) for doing comunicating. I am in intial stage for doing testing and development. Is there any sample on serial poll in C++.
Thanks.

Best regards,
David Lim
0 Kudos
Message 1 of 4
(6,254 Views)

Hi David,

You didn't happen to mention what programming language you are interested in (C/C++, Basic, or other) or if you are interested in a 32-bit or 16-bit application. Also, it would be useful to know which version of NI-488.2 you have installed.

gpibtester

0 Kudos
Message 2 of 4
(6,243 Views)

Dear gpibtester,

I am using C++, more specific is Visual C++ (MFC). Is there any sample?

Best regards,

David

0 Kudos
Message 3 of 4
(6,237 Views)

David,

On the web page for Language Interface: 32-bit Microsoft Visual C++, there is information about how to use the Language Interface in a GPIB application. The web page also contains a link where you can download zipped up example files. There are 2 sets of examples. The example.zip has samples for instruments with serial polling (DMMSerialPolling for Fluke 45 Digital Multimeter or ScopeSerialPolling for Tektronix TDS210 Scope). They show you what calls you can make for serial polling an instrument. The mfc_examples.zip has a couple of simple samples for how to use MFC in a GPIB application.

Hope this information helps!

gpibtester

0 Kudos
Message 4 of 4
(6,235 Views)