LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic Detection of NI-IMAQ Devices In LabVIEW

Solved!
Go to solution

Is there a way to programmatically detect what IMAQ interfaces are attached to a PC?   Obviously this is possible through IMAQdx for 1394, Gigabit, DirectShow, but I've never seen this done using a plain vanilla Analog input.  My goal is to have a program that allows a user to specify what type of video interface he is using for a specific test.  He will have three options, NTSC analog, 1394, and HD-SDI.  Detecting the 1394 and HD-SDI is relatively easy due to the "Enumerate Camera" VI that is provided with the vision acquisition, but its not clear how to do this with analog I/F's.

 

 To summarize I am trying to programmatically detect in LabVIEW the interface labeled Channel 0 and circled in red below.  Thanks for any input.

image devices

0 Kudos
Message 1 of 5
(3,802 Views)

Hey MGould,

 

Unfortunately, there currently is not an IMAQ property node that queries your system for all IMAQ PCI devices. However, there is a possible work around for this. In LabVIEW under the Measurement I/O»MAX  Configuration palette there is a VI called MAX Generate Report.VI that generates a report of all the hardware and software listed in MAX. You could use this VI to generate an html report, then read the report in as a text document, and then use string manipulation to parse the report to get relevant information. This is a bit of a work around and may take some unnecessary process time, but it would allow you to pragmatically determine what hardware you have installed on your machine.

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 2 of 5
(3,779 Views)
Thanks Ben,  I was afraid of that but that is a good suggestion.
0 Kudos
Message 3 of 5
(3,775 Views)
Solution
Accepted by topic author MGould

I'm not sure why someone from NI didn't post this but I found this today when working on a seperate issue:

 

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

 

 

It looks like with a little bit of work this is totally possible.

Message 4 of 5
(3,687 Views)

PS Ben,

 

Waterloo labs freaking rocks! Real hand gun + Half-Life 2 ftw

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