03-04-2009 10:42 AM
Solved! Go to Solution.
03-05-2009 11:02 AM
It looks like in the C reference help it is possible to get the device names for all of the devices on the machine. Please see attached scren shots of the function calls referenced in the DAQmx Creference help.
Hope this helps.
03-05-2009 12:18 PM
03-06-2009 09:44 AM
It is possible to get the chassis slot by using the function described in the attached screenshot of the DAQmx C reference help entitled :PXI slot number
It is also possible to get the device type (Product type - PXI 4070) with the device name. This is shown in the two screenshots entitled Product Type.
Check out the "List of Device Properties" help topic, this should illustrate the way to accomplish most of the task you need.
03-24-2009 03:20 PM
03-25-2009 08:42 AM
Hey Eagle01,
The following function should give you the PXI Chassis Number:
With the slot number of the device you should be able to determine exactly the location of 6652 in the chassis.
Check out the screen shot I believe this is what you are looking for.
03-25-2009 10:55 AM
03-26-2009 03:56 PM
So unfortunately DAQmx does not provide a way to access the model name of the chassis directly however after researching this issue it is possible to access the Model name using the Visa library. WQhat you would do is the following:
PXI chass Resource Name which can be found in MAX--> PXI0::1::Backplane
Class Constructor --> PXIsession ('Visa Resource name of PXI chassis')
Use property --> ModelName to get themodel name of the chassis.
Please see the attached screenshots taken from the VISA help file under Start >> Program Files>> National Instruments >> Visa>> Documentation >> .Net fremework help
I'm fairly certain that this is the right way to go about it. I was able to replicate this in labview and was able to get the device name from chassis directly. Please note however that the help file does make point to say that you should only use this property for display puposes and not programming as this value may change.
I hope this helps
04-01-2009 10:00 AM
04-02-2009 01:01 PM
I'm using Ni-Visa and i'm trying to get the model number using:viGetAttribute (InstrHandle, VI_ATTR_MODEL_NAME, &cModelName);
This function returns a bad pointer for cModelName. How do I get this to work?