Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate with a PCI device using LabVIEW

I have a 1553 bus card connected to the PCI slot of my PC. I know only two things about it, its register base address and memory base address. But I dont know how to communicate with a PCI slot device using LabVIEW. Also, the device came with a software for communication which says something called "IRQ 5" about the device. I have no idea what IRQ means. Please help me out with the right function to be used in LabVIEW to access the PCI Card and if possible give some examples.

Thank You

Regards,
Giridhar Rajan
0 Kudos
Message 1 of 19
(9,457 Views)
To answer part of your question LabVIEW doesn't directly talk to the PCI bus. LabVIEW talks to a driver which communicates with the hardware through the PCI bus. So if you have LabVIEW and you have a card you need a driver for that card. IRQ means interrupt request line and is a method that some hardware uses to signal the CPU (with an interrupt) that it is done performing an operation. IRQ '5' simply means the device will interrupt on the IRQ line 5 (typically these settings are made either in the BIOS or by the operating system; there are several IRQ lines to accomodate multiple devices).

Now with regards to the 1553 bus card I would recommend contacting the manufacturer to see if they have a driver that allows LabVIEW to talk to it. What is the name of the manufacturer and card?

Craig H.
NI Applications Engineering
0 Kudos
Message 2 of 19
(9,433 Views)
I have PCI-MIO-16XE-10 card and SCB-68 comunicator and I need to built software for it with LabView. So could somebody help me. How to start this creation. I instaled card driverves and I do not know what to do else 😞
Thank You!

Regards,
Justinas
0 Kudos
Message 3 of 19
(9,287 Views)

Take an example from all the hardware examples already available in LabVIEW.
goto help/find examples/hardware input and output/DAQMX/Analog input/Voltage measurement
and select one that you like
I suggest to start with  Acq&Graph Voltage-Int Clk.vi

To my surprise is the alpahbetical listing here crazy to give help to beginners

greetings from the Netherlands
0 Kudos
Message 4 of 19
(9,279 Views)
Hi Justinas,

The PCI-MIO-16XE-10 is compatible with the latest NI Data Acquisition devices -- NI-DAQmx 8.0. Once the drivers and device are installed correctly, you can test to make sure everything is working correctly in Measurement & Automation Explorer (MAX). In MAX, expand Devices and Interfaces>NI-DAQmx Devices to see your device. Once you select the device, you can view test panels for it to make sure that it is working correctly.

As the previous user said, the NI-DAQmx Examples are probably the best place to start. In LabVIEW, go to Help>Find Examples. In the Window that appears, select Hardware Input and Output>NI-DAQmx to see a list of all the examples available to help get you started. The description on the right will help you determine which example is a good starting point. Also, take a look at the link below for a short introduction to DAQmx.

Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications

--
Michael P
National Instruments
0 Kudos
Message 5 of 19
(9,250 Views)
Thanks I'll try to do what you are saying 🙂
0 Kudos
Message 6 of 19
(9,247 Views)
As I Said, have card and SCB-68 comunicator, but when I open Measurement & Automation Explorer to create voltage and current I see TBX-68. Where I can change to SCB-68?

And it is good, What I connecting:
a0 chanel Current to 68 and 62 (I sow it in TBX-68 shema)
a1 chanel Voltage to 66 and 33 channel
Thanks.

0 Kudos
Message 7 of 19
(9,200 Views)

Hello Justanas,

In order to change from the TBX-68 accessory to the SCB-68, expand Devices and Interfaces in MAX, right-click on your PCI-MIO-16XE-50 and choose Properties.  Switch to the Accessory tab and choose SCB-68 from the list.  Then, when you create your NI-DAQmx Task or global channel and look at the connection diagram, you will see this accessory and you can see how to connect your signals. 

The terminals you referenced indicate that you are setting up your task for AI0 to be NRSE and your task for AI1 to be differential which is fine.  Since you are doing a current measurement on AI0, be sure to correctly setup your shunt resistor and its value.

Regards,

Laura

Message 8 of 19
(9,176 Views)
Hi,

I have a problem, then I want to test device I getting error:
Error -50103 occurred at Test Panel

Possible Reason(s):

The specified resource is reserved. The operation could not be completed as specified.

Maybe somebody know, how to correct this error?
Thank's

Justinas
0 Kudos
Message 9 of 19
(9,079 Views)

Hi Justinas,

That error tells you that the operation you are trying to do, such as analog input, is already being used somewhere else.  You can only have one analog input task at a time, so you cannot run both the analog input test panel and a program that does analog input at the same time.   You can read in more detail about this error in this knowledgebase article.

Regards,

Laura

0 Kudos
Message 10 of 19
(9,058 Views)