07-11-2024 06:42 AM
Hi,
I want to create a c/c++ application for norma 4000, I am able to build the example codes in visual studio, but how can I detect the correct IP adress of the equipment.
I have already changed on the tool an IP adress.
What shall I use,in NI MAX I cold not find any equipment.
07-16-2024 02:31 AM - edited 07-16-2024 02:31 AM
The datasheet for the Fluke Norma 4000 only states that it has a Ethernet / 10 MBit/s or 100 Mbit/s interface. It says nothing about a VXI-11 or similar implementation on that port. There is no way to automatically detect a device on the Ethernet network if it doesn't implement some service announcement protocol such as Bonjour, LXI, HiSlip or VXI-11.
NI VISA can handle LXI, VXI-11 and HiSLIP (which is an extension of VXI-11). If your device does not implement that standard (properly) you will need to manually enter the IP address that the device got assigned with.
07-16-2024 02:50 AM
Hi,
Thank you for your answer.
With NI MAX I was able to query the IDN to Norma4000 with LAN.
But with c application I have timeout in reading.
07-16-2024 03:59 AM - edited 07-16-2024 04:02 AM
Your information is inconsistent. In your first message you say:
in NI MAX I cold not find any equipment.
now you say:
With NI MAX I was able to query the IDN to Norma4000 with LAN.
And finding equipment I interpret as enumerating the device automatically, which only works if the device implements one of the service announcement protocols.
Talking to the device by for instance doing an "*IDN?" query is a very different thing. Assuming you use the right resource name with correct IP address in viOpen() did you actually do a "*IDN?\r" (or maybe "*IDN?\n") in your C code? Since the communication is over TCP/IP, the device may require an actual termination character before it tries to parse the incoming command.
As to automatically enumerating your device, even if your device supports the VXI-11 protocol, that doesn't mean that NI VISA will be able to detect the device automatically. The NI-VISA driver itself doesn't implement automatic device enumeration, that's part of NI-MAX.