LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connect USB instrument to PXI

Dear all,

 

I simply would like to control a USB instrument (and later also serial instrument) to the PXIe-8100 controller. The controller is installed in a PXIe-1071 chassis.

 

As a dummy instrument to test I use a Tektronix TDS 2014C oscilloscope.

 

To start simple, I connect it directly to my local PC. See visa_4.jpg for the screenshot of the MAX. I follow the instructions on n.com/gettingstarted/setuphardware/instrumentcontrol and it works perfectly using the example from the driver library (visa_5).

 

Now, I connect the scope to the PXIe-8100 conrtroller. It shows up in the MAX (visa_1.jpg). But launching the example vi, the VISA id does not show u in the dropdown menu. I paste the id manually and eventually get an error (visa_2.jpg).

 

The following things are odd and maybe part of the problem:

 

1) In the MAX the PXI chassis and controller appear not under local "devices and interfaces" as they ahould according to the chassis manual, but as remote system. Did the NI engineer maybe chose a chassis and controller that do not mate with each other? Because, when I try to manually add the PXI chassis under local "devices and interfaces" it does identify it as PXIe-1071. When I try to manually identify the chassis, it does not appear in the drop down menu where all the available chassis are listed. 

 

2) In the VISA test panel there is an error pointed out (visa_3.jpg). Is this normal? Otherwise, the VISA test penal says that the "device is working properly"

 

3) When the scope is connected to the local PC usb port, the visainstrument id ends with INSTR, whereas when the scope is connected to the PXIe-8100 controller USB port, the VISA ID identifies the USB resource as RAW, i.e.  as a raw device.

 

 

 

Any sugegstions would be very welcome! Thank you very much!

Download All
0 Kudos
Message 1 of 5
(3,293 Views)

rest of the screenshots....

Download All
0 Kudos
Message 2 of 5
(3,292 Views)

Dear Manuel,

 

your controller PXIe 8100 is a Real-Time controller. Isn't it? So when you connect it to your development PC, you find it not under Device and Interfaces, but under Remote Systems (caouse it's a remote system).

 

Your example, must run on RT target when the instrumenti si connected with it. You can try to set the execution target by right clicking in the left-bottom corner and select the 8100-PXIe controller as execution target and not "My Computer".

 

You can try to create a LabVIEW Project, to add the RT target to the project, to add the example, to add the example under the RT target (this will set the VI execution target).

 

I hope that these suggestions will solve your issue.

 

Best Regards.

 

Cla_CUP

NI Italy

0 Kudos
Message 3 of 5
(3,262 Views)

Dear Cla_CUP,


you pointed out something that I was completely igonring. Thank you very much. I added the controller to my project (So far only the FPGA target was there...). Beginner's mistake.

 

Now, in the VI the scope alias shows up in the drop down menu, which means to me it is found and correctly identified.

 

But it still does not work. An error message is diplayed:

 

Error -1073807346 VISA The given session or object reference is invalid

 

I'm working on this now. Could it be that I have to install VISA runtime environment on the target?

 

 

0 Kudos
Message 4 of 5
(3,256 Views)

Ok, I followed this linke here:

 

http://digital.ni.com/public.nsf/allkb/4455BFE9B804DAAE86256CFE0078402E?OpenDocument 

 

According to this, my problem is very likely the one described under this exact link.

 

The problem is: How do I install VISA runtime engine on the target computer? The visa520runtime.exe will only install it on my developement PC.

 

FYI, the scope is now regognized as INSTR in the target. Everything seems to be fine. However, sending an *IDN?\n gives me timeout error (even after 20 s of timeout).

 

I hope once the runtime engine is installed on the real time target (the 8100 controller), I will be able to write and read to the scope.

 

Thank you!

0 Kudos
Message 5 of 5
(3,253 Views)