Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Started With IVI and Visual C++

Hello,

I am totally new to working with this kind of technology so I don't have any specific questions just a cry for help! 😛

I have been tasked with (amongst other things) writing some software to interract with digital oscilloscopes (currently using a TDS 2022B DSO but it needs to be as generic as possible hence using IVI).

Frankly I am not even sure how to get started so I'll post some information on the technology I am using.

I am working in Visual Studio 2003 with C++, I am downloading the trial version of measurement studio. I have VISA 4.4 and have installed the IVI Compliance package and the driver software for the instrument itself.

Any help and advice on getting started off with this would be very much appreciated!

If you need any more info from me I'll do my best to provide it!

Thanks
David
0 Kudos
Message 1 of 8
(4,802 Views)
Hi Dave,

I noticed your post, and there is one on oscilloscope in the labview forum:

http://forums.ni.com/ni/board/message?board.id=170&thread.id=325072

As for IVI and C++:

heres a tutorial on instrument control in labwindows/CVI:
http://zone.ni.com/devzone/cda/tut/p/id/3512#toc0

with related links at the bottom concerning IVI too.

I hope this helps
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 8
(4,787 Views)
Thanks. Just to further explain I've just graduated in programming/electronics and am on a tempory job. My experience is only with Java, Ansi C and some microcontroller work so this is all completely new for me. At the moment I'm really just trying to get my head round the technology and how everything interracts.

So the first thing to do i guess is to get something set up to communicate between the device and something i can write in visual studio.

Do i need to use something like labwindows to write a seperate program/driver or is there something i can do from within visual studio? If i need something seperate like labWindows how do I link in with whatever I'm going to be writing in visual studio?
0 Kudos
Message 3 of 8
(4,780 Views)
 

I can't help at all with C++ except point you to the tutorial at http://zone.ni.com/devzone/cda/tut/p/id/2742. You would only need LabWindows/CVI if you were creating you own IVI-C driver.

0 Kudos
Message 4 of 8
(4,774 Views)
Hillman's link was for CVI, which won't compile C++. You don't need to use CVI to develop with the IVI drivers. However, some of the information there may be useful - your C++ environment will compile C, too. Dennis's link will also be handy.

The documentation that accompanies the drivers (which you can download here) contains information about using them with a variety of languages. Integrating C code with your C++ application may be the best way forward, as IVI with C code is more commonly used.

I hope you're able to get up and running OK!
Tom

Applications Engineering, NI UK
0 Kudos
Message 5 of 8
(4,738 Views)

Sorry, I meant to link you here for the latest version of the IVI driver compliance package, but it sounds like you have it already.

 
Tom

Applications Engineering, NI UK
0 Kudos
Message 6 of 8
(4,733 Views)
 

Hi Dave,

Here are some links:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2jLCAQ&l=en-US

https://www.ni.com/en/support/downloads/instrument-drivers/types-of-instrument-drivers.html#section-...

http://zone.ni.com/devzone/fn/p/sn/n24:measurementandinstrumentation.InstrumentControl.InstrumentDrivers.Develop.IVIDevelop 

 

0 Kudos
Message 7 of 8
(4,705 Views)

Hey guys,

 

Sorry for the late reply.

 

Thanks for all your help its got me to the point where I know enough of whats going on that I can actually get started!

 

However I'm actually just going to be working directly with VISA from C++ so no need for labview etc. (trying to keep the costs down!)

 

Thanks again!

David

0 Kudos
Message 8 of 8
(4,650 Views)