I have a PXI chassis running Windows 10. Connected to this is a TDK Lambda Z Series PSU. Connected via Ethernet cable to the PXI Controller.
I have configured the PSU with the IP address 169.254.254.201. The NI Controller's IP address is 169.254.254.1. If I enter 169.254.254.201 into Internet Explorer I can get the PSU's webpage okay.
I have opened NI MAX, I have successfully added the PSU to MAX (See attachment001.jpg).
I can then select "Open VISA Test Panel". Select "Input/Output". Change the command to "*IDN?\n" and then click on the [Query] button and the window populates with "TDK-LAMBDA,236-24-LAN,311B271-0014,3.002-LAN_2.017". (See attachment002.jpg). So all good.
I have created a simple VI (LV2020) to basically do the above (See TDKPSU.vi). It runs with no errors. However the strings are empty and the number of bytes read is zero!
We have another setup with TDK-LAMBDA PSUs in it (though a different model). The VI above works as expected with those PSUs. If I connect the "problem" TDK Lambda Z Series PSU to this other setup. It shows the same symptoms as above.
On the original setup I have adjusted everything I can think off. Turned off Windows Firewall. Set Ethernet port to Private network.
It's just odd that MAX can send VISA commands to it successfully, but LabVIEW can't!
Any one have any ideas?
(Note: We will, ultimately, be driving this with the TDK-Lambda GEN LAN Series library. My VI was to test a theory when the library failed to initialize the PSU).
Christopher Povey
Principle Test Systems Engineer for BAE Systems.