From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital Multimeters (DMMs) and Precision DC Sources

cancel
Showing results for 
Search instead for 
Did you mean: 

What does the Error Code -1074135030 mean?

Implementing device driver for DMM PXI 4070 for an in-house test program.

My workstation connects to a PXI controller with one DMM card.

Running the demo from NI-DMM for Window 2000/XP CD on my workstation is

find.

But, using the same lib file, nidmm_32.lib, as one in the demo, the

instruction

checkErr(niDMM_init(m_ResourceName, idQuery, reset, &vi)) fails and returns

Error Code = -1074135030.

I have double checked the parameters of the function:

m_ResourceName = "DAQ::5::INSTR",

idQuery = 1, and

reset = 1,

I am passing the address of vi seesion veraible to the function.

 

 

The following is the code segment I havd. It is almost the same as the

demo

found in the CD coming with the device.

When carrying out checkErr(niDMM_init(m_ResourceName, idQuery, reset, &vi))

, it jumps to the 'Error:' session, and the error code -1074135030 is shown

in

the debugger.

ViSession vi = VI_NULL

ViBoolean idQuery = VI_TRUE

ViBoolean reset = VI_TRUE

ViStatus error = VI_SUCCESS

ViInt32 measurementType = NIDMM_VAL_DC_CURRENT

ViReal64 powerlineFreq = 60

//m_PLFreq.GetItemData(m_PLFreq.GetCurSel())

ViReal64 range = 0.0200

//atof(m_RangeVal.GetBuffer(20))

ViReal64 resolution = 0.0000001

//atof(m_ResolutionVal.GetBuffer(20))

ViReal64 reading = 0.000

ViChar tempString[40]

ViChar modeStr[20]

ViChar dataStr[20]

ViChar rangeStr[20]

ViBoolean overRange = VI_FALSE

//if(mode == REAL || mode == CHECK || mode == ECHO || mode == ECHOCHECK)

//{

/*- Initiate the DMM and create a session

--------------------------------*/

checkErr(niDMM_init(m_ResourceName, idQuery, reset, &vi))

/*- Configure Powerline Frequency

----------------------------------------*/

checkErr(niDMM_ConfigurePowerLineFrequency (vi, powerlineFreq))

/*- Configure DC Measurement

---------------------------------------------*/

checkErr(niDMM_ConfigureMeasurement(vi, measurementType, range,

resolution))

/*- Read DC volts

--------------------------------------------------------*/

checkErr(niDMM_Read (vi, NIDMM_VAL_TIME_LIMIT_AUTO, &reading))

/*- Find out if the measurement is over range ----------------------*/

niDMM_IsOverRange(vi, reading, &overRange)

/*- Display Reading

------------------------------------------------------*/

checkErr(niDMM_FormatMeasAbsolute (measurementType, range, resolution,

reading, modeStr, rangeStr, dataStr))

sprintf(tempString, "%s %s", dataStr, modeStr)

strcpy(m_res, dataStr)

Error:

if (vi)

{

niDMM_close(vi)

}

if (error < VI_SUCCESS)

{

ViChar errorMessage[256] = ""

/*- Get the error description

--------------------------------------------*/

niDMM_error_message(VI_NULL, error, errorMessage)

}

}

 

NI Software : Measurement Studio for Visual Studio .Net version 7.1

NI Hardware : Digital Multimeters (DMMs) device PXI-4070

Driver Version : 2.5

OS : Windows 2000

0 Kudos
Message 1 of 5
(7,957 Views)
Hi,

The code you posted looks fine, but I am curious about the resource name you are passing to the niDMM_init() function.  Try using the DAQmx device name of you NI PXI-4070 DMM as it appears under NI-DAQmx devices in MAX.  This will be in either the "Dev1" format or the "PXI1Slot2" format based how your chassis is identified in MAX.  Do you receive this same error if you manually enter this string as the resource name?

If this error persists, one other thing to try would be to rename your NI PXI-4070 to a particular number such as "5" instead of "Dev5" inside of NI-DAQmx devices in MAX.  From there, you can then refer to this device as "DAQ::5::INSTR".  Please refer to this KnowledgeBase entry for more information on valid resource name formats to pass to the NI-DMM driver.

If this doesn't resolve the issue, please let me know, as I want to make sure that you get this system up and running ASAP.

Have a great day!
Travis W

Message Edited by Travis W on 11-15-2006 07:21 PM

0 Kudos
Message 2 of 5
(7,945 Views)

I have the same error

The reply to this post does not make sense.  The device cannot be renamed since it is a traditional daq device.  The referenced article lists the Instrument Descriptor exactly as the post describes.  I can't get anywhere with this problem either

0 Kudos
Message 3 of 5
(7,673 Views)
Hi TAS1,

If you go into the Measurement and Automation Explorer, you can highlight the device under Traditional NI-DAQ (Legacy) Devices, right click on it and click on properties.  You can change the device number there.  The other options is to look in Measurement and Automation Explorer, take the device number and replace the 5 in DAQ::5::INSTR in your program to the current device number.  Please let me know if this does not work for you.

Message Edited by Nick F on 07-11-2007 12:43 PM

Thank You,

Nick F.
Applications Engineer
0 Kudos
Message 4 of 5
(7,655 Views)
It did not work.  I had to uninstall everything, install LabView 7.1 again then install the latest version of the complete driver package (DAQMx, DMM, MAX etc.) to get my DMM to work.
0 Kudos
Message 5 of 5
(7,634 Views)