LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCPIP VISA source couldn't be found

I found if I show VISA source control in the front panel, the program will be very slow. But if I hide the VISA source in the front panel, everything will be fine. In back program, I didn't do anything just a loop. Please see the attached pics

 

 

Download All
0 Kudos
Message 11 of 27
(1,541 Views)
Hi lvfanqie,

Could you try opening LabVIEW without opening any VIs, and plug in the ethernet cable and see what happens in the Windows Task Manager? Does things slow down?

If nothing happens, could you try opening a VI and try and switch back and forth between the front panel and block diagram, and see if there is any difference between with ethernet cable and without.

I would like to see if there might be possibly an issue with your installation of LabVIEW on your laptop, or something else, that is trying to access your ethernet port. Your ethernet port is connected to just a device using a crossover cable, right? Also, can the program run perfectly fine with no problems on the laptop?

Let me know how it goes!
Rasheel
0 Kudos
Message 12 of 27
(1,513 Views)
Hi Rasheel,
 
Q:Could you try opening LabVIEW without opening any VIs, and plug in the ethernet cable and see what happens in the Windows Task Manager? Does things slow down?
A:Nothing slow down, everything is fine.
 
Q:If nothing happens, could you try opening a VI and try and switch back and forth between the front panel and block diagram, and see if there is any difference between with ethernet cable and without.
A:I did following combinations and the results are same as I descripted on the post before.
1. VISA resource control is shown in the front panel and ethernet cable dosen't plug in. ----Everything is fine, no slow down.
2. VISA resource control is shown in the front panel and ethernet cable plug in.   ----Labview slow down and shown as 'No responding' in Task manager for several minuets.
3. VISA resource control is hided from the front panel and ethernet cable dosen't plug in.  ----Everything is fine, no slow down.
4. VISA resource control is hided from the front panel and ethernet cable plug in.  ----Everything is fine, no slow down.
 
I am using the crossover cable to make the connection between my laptop and the test unit.
0 Kudos
Message 13 of 27
(1,506 Views)
Hi lvfanqie,

Is this behavior only for the VI you built, or do you also see this for a blank VI with only a VISA Resource control on the front panel?

This is really strange behavior, please let me know about the above and I will look into what might be causing this.
Rasheel
0 Kudos
Message 14 of 27
(1,488 Views)

Hi Rasheel,

I put a blank VISA resourse control on a new VI front panel and did nothing on the back program. The labview is hanging also for 1~2 min when I switch between front panel and back program.

lvfanqie

0 Kudos
Message 15 of 27
(1,485 Views)
Hi lvfanqie,

This is really odd behavior and not something that is expected. This could be due to either a faulty installation of LabVIEW, NI-VISA, or there might be an issue with your Windows OS.

I would advise you to reinstall LabVIEW first, and if that does not change things, to reinstall NI-VISA. This will eliminate any faults that might have been due to installation errors. If you find that you see the same behavior even after reinstalling, it might be an issue with the Windows installation.

I hope you understand the above. Let us know how it goes!
Rasheel
0 Kudos
Message 16 of 27
(1,463 Views)

Hi Rasheel,

I tried what you suggest to reinstall everything. At first, everything is working fine with or with I plug in the network cable. But after I add one GPIB Ethernet device, the problem happened again.

The GPIB Ethernet device IP address: 10.0.0.12, subnet mask: 255.0.0.0

The unit I connected IP address: 10.0.0.1, subnet mask: 255.0.0.0

 

 

 

0 Kudos
Message 17 of 27
(1,397 Views)
Hi lvfanqie,

When you said that it was working on your desktop but not on your laptop, did your desktop also have the GPIB ENET device?

Are you connected to an network via straight ethernet cable, as well as connected to your tcp/ip device via crossover cable?

Have you tried removing the GPIB Enet device and seeing what happens?

Could you also please provide an NI Spy capture of when you are seeing this problem? There is a good article on how you can do this here.
Rasheel
0 Kudos
Message 18 of 27
(1,376 Views)

Hi Rasheel,

First, I installed GPIB ENET both in laptop and desktop. But I didn't do too many test on my desktop. I use my laptop more often.

Second, I didn't connect tow device at the same time. When I connect GPIB ENET, I uses a router with straight cable. When I connect the unit with laptop, I disconnect GPIB device and use a crossover cable. You know I mention before, I didn't get problem until I install GPIB ENET. So any conflict in drivers between VISA and NI488.2?

I included the NI spy logger. When I captured the log, I put a VISA control in a front window and swtich the window between front and back. Hope you could find something in this log.

 

Thanks!

0 Kudos
Message 19 of 27
(1,346 Views)

Hi Rasheel,

I would like to attach another log without any cable connect. The same action is I switch between front and back of a new VI with a VISA source control in the front windown.

One thing I could see from the log is the timing is different in two logs.

lvfanqie

0 Kudos
Message 20 of 27
(1,343 Views)