Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Multithreading Examples for VB.NET

I'm using Windows XP Pro, VB.NET 2003 Pro, Measurement Studio 7.0 (Beta),and a NI PCI-GPIB card. I am trying to simultaneously acquire about 1000 readings
from 2 different GPIB instruments. I need to spawn 2 different threads to do the instrument I/O. Are there any programming examples using VB.NET?
0 Kudos
Message 1 of 3
(4,202 Views)
Look in the Program Files\National Instruments\Measurement Studio to find where the .NET examples were installed. There's a GPIB example called SimpleAsynchronousReadWrite that you may find helpful.

- Elton
0 Kudos
Message 2 of 3
(4,202 Views)
One thing to keep in mind is that when you are doing asynchronous reads/writers, the driver is taking care of spawning multiple threads (when necessary)for you. In fact, that is the advantage of having asynch I/O operations; and the fact you are informed when data is ready so your program can do other tasks.

Just my 0.02,

Azucena
0 Kudos
Message 3 of 3
(4,202 Views)