01-26-2011 08:01 AM
Hello,
I just started new C# project for communication with LockIn amplifier SR 830. Before I used C++ and ni4882 dll and everything was OK. To make sure that the LockIn is finished the previous command I simply used the following part of my code:
char serPoll;
do
{
ibrsp(handle, &serPoll);
} while ((serPoll & 2) == 0);
How to realize the same loop in C#, using NationalInstruments.NI4882. Can I use for it SerialPoll function?
Thank you very much in advance
Igor
02-01-2011 11:10 AM
Hi Igor,
From my understanding, if you look at the Language Interface: 32-bit Microsoft Visual C/C++ in the Developer Zone at ni.com you should find two examples that do GPIB serial polling for a couple of instruments. While these examples use C/C++ as opposed to C#, this might give you an idea on how to setup your code.
02-01-2011 11:21 AM
Thank you very much, I already found a solution.
02-02-2011 08:24 AM
Hi Igor,
That is good to hear. If you want you can share the solution to your question so that other people can use this as a reference in the future. Thanks!