Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DCPower LabVIEW drivers on PXI RT platform

I’m looking for a working example using the NI-DCPower LabVIEW drivers with a remote PXI Real Time controller.  I can get the niDCPower Initialize.vi to work without errors but any subsequent calls within the same target VI to functions within the niDCPower library return an error, “Invalid session handle”.  The LabVIEW examples use IVI Session instrument handles instead of VISA Session handles which is typically found in RT projects. I’m using NI-DCPower 1.3.1 with a PXI-4130 in my RT chassis.

NIDCPowerTarget.JPG

0 Kudos
Message 1 of 6
(5,577 Views)

Hello Todd,

       For NI Modular Instruments, you will need to use the NI-DAQmx name for the device (Dev1), not the NI-VISA name for the device (PXI1Slot8).

 

Cheers,

 

NathanT

0 Kudos
Message 2 of 6
(5,543 Views)

Nathan,

                The NI-DAQmx name for my PXI-4130 DC Power Supply card located on my remote PXI RT target is “PXI1Slot8”, not “Dev1”.  If I open MAX and connect to the remote system, listed under the Devices and Interfaces, NI-DAQmx Devices, my card is listed as, NI PXI-4130: “PXI1Slot8”.  This should be the correct name and it appears in the resource name control of the niDCPower Initialize.vi.

                This problem may be related to me using LabVIEW 9 Beta release and has been posted to that forum as well.

0 Kudos
Message 3 of 6
(5,533 Views)

Hi Todd,

 

Since this issue is currently being addressed by R&D, through another medium, we are going to ask all communication be done through a single medium to prevent duplicating any work.

 

Thank you for choosing National Instruments. 

 

Regards,

Glenn

Applications Engineer

National Instruments

 

<a href="http://www.ni.com/niweek/" target="_blank"><br><img src="http://www.ni.com/images/niweek/en/2009-register-for-niweek.jpg" width="204" height="68" border="2" alt="NI Week 2009!" ></a>

 


Regards,
Glenn
0 Kudos
Message 4 of 6
(5,512 Views)

Is there supposed to be a reference to that other medium?    I'm still curious about the solution, and your redirection is not helpful (maybe it was in the moment, but not for all time).

0 Kudos
Message 5 of 6
(4,914 Views)
Hi S_marty, I apologize for the confusion. you'll notice that ToddK was using an unreleased version of LabVIEW at the time and had posted his issue on the LabVIEW beta forums. These forums are a medium in which beta testers can provide direct feedback to R&D for that particular software version and is not viewable by the general public. With that said, if you are getting errors on the Initialize VI, the most common issue is the resource name, noted by NathanT. Otherwise, due to the likelihood that you are not using the same software setup as Todd K, it's likely not the same issue. Please feel free to create a new thread or creating a service request online ni.com/support, detailing your issue with specific errors and/or hardware/software setup and I'm sure you'll get a more relevant response.

Regards,
Glenn
0 Kudos
Message 6 of 6
(4,885 Views)