Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to tell that Resman and NiVisaServer Finished

 Is there a way to programmatically determine when Resman and NiVisaServer has finished running?

 

We are running application code on a Windows XP machine (“machine A”) with NI Visa 4.5.1 and NI VXI 3.5 with a VXI chassis connected via a MXI cable to a MXI PCI card in the PC. The application code is C in Visual Studios 2008.

Another Windows XP machine (“machine B”) connects to “machine A” and issues commands to instruments in theVXI chassis connected to “Machine A”. This of course requires that "machine A" has to start Resman and NiVisaServer

 

Our issue is that when we launch Resman and NiVisaServer with our program on “Machine A”, we have no way of knowing when the programs have successfully completed. This is a particular issue with NiVisaServer…there doesn’t seem to be much documentation on that application.

 

Any guidance/tips/advice is appreciated Smiley Happy

0 Kudos
Message 1 of 2
(4,293 Views)

Hi Benjamin,

 

The only way I can think of programmatically finding out if Resman has completed would be to use System Configuration API. As discussed in the solution posted on the below forum post: http://forums.ni.com/t5/PXI/PXIe-1082-Lab-Windows-functions/m-p/2618499

 

I suggest using the C code mention to programmatically determine if all your desired modules are visible. For VXI modules to be visible in the system they need to first complete Resman successfully. Hence System Configuration API can potentially help you programmatically determine if Resman has successfully completed.

 

Does this help you move forward?

MJ
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,189 Views)