07-15-2014 09:39 AM
Hi members,
(For example if I have 10 different instruments on single GPIB bus, e.g. GPIB0)
Is what I do not know
Questions:
How to configure/implement NationalInstruments.VisaN.dll object to prevent collisions via multiple/multithreaded access to many devices that sit on single GPIB controllel?
Thank you a lot, Yuri
07-16-2014 05:23 PM
Hi Yuri_IL,
The following document explains how to develop multi-threaded GPIB applications and it includes sample code as well.
Developing Multithreaded GPIB Applications using NI-488.2
http://www.ni.com/white-paper/3275/en/
Warm Regards,
William Fernandez
Applications Engineering
National Instruments
07-17-2014 12:10 AM
Thank you, BUT i did not understand from this example how to cope with it because of:
The "strange" API calls like: ibwrt/ibdev/ThreadIbsta/ibonl ...
i do not know where and how to call this API's methods or whatever
I suppose it is relevant only for C/C++ coders and not for C#
Regards, Yuri
07-17-2014 11:05 AM - last edited on 11-19-2014 02:10 PM by dcarva
Yuri_IL
You need to download the 488.2 driver. Make sure that you include the support for .NET framework. You specify this during the installation.
NI-488.2 3.1.1
http://www.ni.com/download/ni-488.2-3.1.1/3786/en/
In the following readme file you can find .NET framework compatibility, GPIB interface compatibility and other details that might be of your interest. You can also find where the .NET examples are going to be located.
NI-488.2 for Windows, Version 3.1.1 Readme
http://ftp.ni.com/support/softlib/gpib/Windows/3.1.1/ReadMe.html
The following manual explains all of the functions that are included in the driver API
www.ni.com/pdf/manuals/370428f.pdf
http://www.ni.com/pdf/manuals/370428f.pdf
Warm Regards,
William Fernandez
Applications Engineering
National Instruments
07-20-2014 03:51 PM
01-30-2017 08:15 AM
Hi Yuri,
You might be interested in the code I just posted there:
https://www.codeproject.com/Articles/1166996/Multithreaded-communication-for-GPIB-Visa-Serial-i
best regards
Pawel