Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

NISysCfgInitializeSession and IP Addresses

$
0
0

CVI 2017, Win7, two different computers.

 

Trying to get the CalibrationAudit example to work with my cDAQ hardware. 

 

The first function call passes the target char pointer, to obtain a session handle:  NISysCfgInitializeSession(target, NULL, NULL, NISysCfgLocaleDefault, NISysCfgBoolTrue, 10000, NULL, &session)

 

As long as target is equal to "localhost" the app gets the calibration information for cDAQ assembly and displays it.  See figure below.

 

Snap1.png

But when I use an IP address, the function call returns an error, as shown below:

Snap2.png

 

This does not make sense, since "localhost" works, I can ping the chassis, I can connect to its web server, etc.

 

I must be able to connect with IP addresses, because this capability is needed on a system with four distributed cDAQ chassis.

 

What have I set wrong, or what other thing needs to be done to get this function call to work with IP addresses?

 

I even tried doing leading zeros for the last two fields, and got this:

Snap3.png

 

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>