06-01-2021 01:26 AM
I am using Ethernet as communication interface to control my instrument while testing, and it functions well.
But recently i found that once the IP address of instrument changes, Labview VISA resource can't detect the instrument while i press "Refresh"
I have to manually key in the modified IP address so i can build connection with the instrument.
This happened before, and last time i re-install the Labview to solve this issue (which is time consuming)
Is there anyone know how to fix this problem without re-installing?
Labview version:2015
Solved! Go to Solution.
06-01-2021 05:31 AM
Start up NI-MAX and let it find the instrument?
06-01-2021 06:38 AM
Yes,I can manually add device in NI-Max.
But it doesn't work when I deploy my test program on another computer where no NI-MAX is installed.
06-01-2021 09:10 AM - edited 06-01-2021 09:58 AM
@Ericlee0825 wrote:
Yes,I can manually add device in NI-Max.
But it doesn't work when I deploy my test program on another computer where no NI-MAX is installed.
Well then install NI-MAX
You can't have it both ways either you hard code your instrument IP address (or Com port, or GPIB Address, or etc.) and you make it clear in the documentation that the instrument must be at a certain location
Or you use NI-MAX and create a VISA Alias for your instrument, and use the VISA Alias in your program instead of hard coding the IP address or location. Now your instrument can move to ANY IP address or ANY other interface (Even a Virtual Com port) because as long a NI-MAX can find your instrument, your program will find it.
06-05-2021 09:19 PM
Thanks for your advice
I manually checked NI-MAX and NI-VISA configuration support when I build my installer, now it functions well