LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stanford research systems DG645 Ethernet interface with LabView

Solved!
Go to solution

Hello,

We controling the SRS DG645 with Labview 2016 via Ethernet interface. We have upgraded LabView to version 2023Q3 64bit. Now we are unable to connect to the device, ni-max does not recognize the device.

We replaced the communication cable. We checked the settings of the DG645, and there is no change. I would appreciate your assistance.

0 Kudos
Message 1 of 8
(1,184 Views)

Do you use VISA or the TCP/IP function to communicate?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 8
(1,163 Views)

Can you upload screenshots of MAX and the LabVIEW VI? Do you get an error when you run the VI?

Message 3 of 8
(1,136 Views)

Hello,

We use Visa.

Attached are NI-MAX, LabVIEW vi and screenshots of the error message.
In the network devices the DG645 appears in the list due to importing a previous MAX configuration file (didn't help to solve the problem).

 

Error.png

 

 

vi.pngmax.png

0 Kudos
Message 4 of 8
(1,113 Views)

Thanks for the screenshots.

 

1. What is the value of the "Choose Instrument" VISA resource control that is fed to "Initialize.vi"?

2. In the MAX screenshot the IP address of the "DG645Lan" is 169.254.60.22.

       - Is this the IP address you expect?

       - Is the computer on the same subnet as the DG645 device? The computer should have an IP address of the format 169.254.60.xxx, and a subnet mask of 255.255.255.0

3. If you can, try excluding LabVIEW 2023 Q3 64-bit from any form of firewall. You can use the Windows Defender Firewall settings in the Windows Control Panel. If you can, you can use that Control Panel to disable the Windows firewall completely to enable testing, but don't forget to re-enable it when testing is finished.

4. You are using driver VIs that are part of the "Stanford Research DG645.lvlib" driver. Can you find the webpage of that driver and check that it's compatible with LabVIEW 2023 Q3 and/or with LabVIEW 64-bit?

Message 5 of 8
(1,102 Views)
Solution
Accepted by topic author EYAL_FA

Hi santo_13 and Petru_Tarabuta,

Thank you very much for the help. The problem has been solved, here are the steps for dealing with the problem:

Make sure that subnet mask on the device and pc are the same and the IP address on the device is correct.

 

Then:

  • Go to NI-MAX  > Network devices  > add network device  VISA TCP/IP.
  • A "create new" window show. is the list choose auto-detect of LAN instruments > Press Next. 
  • In my case no LAN instrument were found. > Press Next then entered the DG645 IP address, (LAN device name left empty)  > Next.
  • As Alias ​​written DG645 > Next > Finish.

The NI-MAX shows that DG645 is connected then I run the DG645 VI and it's worked.

I don't know what change because I have done these steps before.

 

Before these steps I went into the VISA settings through MAX and changed some of the settings, maybe that helped.

  • NI-MAX > Tools > NI-VISA > VISA Options.
  • General setting > remote > marked the check box of my PC name.
  • General setting > Passports > marked the check box of NiVisaTulip.dll--NI-VISA Passport for Tulip (32bit only) (Guess that didn't help to solve the problem)
  • Press Save.

Drivers installed:

  • NI-VISA 2023 Q3
  • NI-488.2 20223 Q3
  • Stanford research systems DG645 version 1.2 64bit (Installed via NI-Package Manager)
  • LabVIEW 2023 Q3
  • MI-MAX 2023 Q3

Again, thank you very much for the help.

 

0 Kudos
Message 6 of 8
(1,019 Views)

Hi EYAL_FA,

 

To confirm, is your issue resolved now?

 

Earlier today, at 09:37 UK time (also UTC time), I received an automatic email from noreply@communitymail.ni.com that suggests that the issue has been fixed. The email seems to contain text that you wrote, but I can't see your reply in the forum discussion. I'm not sure what happened. Perhaps the web forum software experienced a bug.

 

That email is copied below:

"

Hello Petru_Tarabuta,

A reply to a topic you are following has been accepted as a solution!

Topic:

stanford research systems DG645 Ethernet interface with LabView

Author:

EYAL_FA (New Member)

Date:

14-11-2023 05:33 PM

Hi santo_13 and Petru_Tarabuta,

Thank you very much for the help. The problem has been solved, here are the steps for dealing with the problem:

Make sure that subnet mask on the device and pc are the same and the IP address on the device is correct.

 

Then:

  • Go to NI-MAX  > Network devices  > add network device  VISA TCP/IP.
  • A "create new" window show. is the list choose auto-detect of LAN instruments > Press Next. 
  • In my case no LAN instrument were found. > Press Next then entered the DG645 IP address, (LAN device name left empty)  > Next.
  • As Alias ​​written DG645 > Next > Finish.

The NI-MAX shows that DG645 is connected then I run the DG645 VI and it's worked.

I don't know what change because I have done these steps before.

 

Before these steps I went into the VISA settings through MAX and changed some of the settings, maybe that helped.

  • NI-MAX > Tools > NI-VISA > VISA Options.
  • General setting > remote > marked the check box of my PC name.
  • General setting > Passports > marked the check box of NiVisaTulip.dll--NI-VISA Passport for Tulip (32bit only) (Guess that didn't help to solve the problem)
  • Press Save.

Drivers installed:

  • NI-VISA 2023 Q3
  • NI-488.2 20223 Q3
  • Stanford research systems DG645 version 1.2 64bit (Installed via NI-Package Manager)
  • LabVIEW 2023 Q3
  • MI-MAX 2023 Q3

Again, thank you very much for the help.

"

Message 7 of 8
(1,039 Views)

Hello,

Yes. the issue is resolved.

Thank you for the help.

Message 8 of 8
(950 Views)