LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically task daqmx

Hi, I have a USB-6008 which i currently can use for between 1 and 8 UUT. What im struggling to do at present however is I would like to create a DAQmx task on the fly depending on whether my test requires however many units to be connected, which I will specify. I would love to be able to scan the DAQmx for the number of inputs and outputs (yea I know I know this, but I might want to use it on different hardware in the future) and then based on whats there create a task to use that input. Any ideas? Thanks
0 Kudos
Message 1 of 2
(2,550 Views)
Hi,
 
I think I have an idea of what you are trying to achieve. Since MAX can detect or list NI devices that you have connected up to your computer with the help from driver software you should be able to interigate your computer from application level software to find out what chassis and modules you might have connected up. Essentially there is a way to programatically identify which module or device you might have connected up using the DAQmx API. The property in LabVIEW help file DAQmx API is called Identification: "Product Category Property", short name: ProductCategory. Products are identified with unique numbers.
 
You can use this to then programatically determine whether a particular task should be executed. See VI attached.
 
I hope this helps!
 
Kind Regards,
 
Kirtesh Mistry
Applications Engineer
National Instruments UK & Ireland.
0 Kudos
Message 2 of 2
(2,491 Views)