Hi,
I have a test PC which install NI driver 7.0.
But I want to install my AP which is developed by NI DAQ 8.0 so I need to install NI-DAQ Run-time Engine 8.3 Run-time 4 in that PC.
After installing that, I get a error message 'the requested memory can not be allocated' in create TaskWrite.
m_taskWrite = std::auto_ptr<CNiDAQmxTask>(new CNiDAQmxTask(_T((LPCTSTR) m_DeviceUniqueString)));
m_taskWrite->AOChannels.CreateVoltageChannel(m_PhysicalChannel,_T(""),min,max, DAQmxAOVoltageUnitsVolts);
CNiDAQmxAnalogSingleChannelWriter AOwriter(m_taskWrite->Stream);
AOwriter.WriteSingleSample(true, value);
delete m_taskWrite.release();
return true;
}
catch (CNiDAQmxException *e)
{
delete m_taskWrite.release();
HandleExceptionError(e);
return false;
}
What else should I do in that PC? It is working well in the PC that I wrote the code.
Another question is about how to make sure the driver version that NI MAX will be used.
For example, in that failed installation PC, I check the register
HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-DAQmx\CurrentVersion\Path --> 8.3
In my coding PC, I install measurement studio 8.0 for VC .net 2003, I check the same register position,
HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-DAQmx\CurrentVersion\Path --> NI-DQA 7.5.0
But in NI MAX , I think it use 8.0 software driver (not tracditional one) to control the PCI-6025 card.
So how can I check if PC already install 8.0 driver (both by measurement studio or NI-DAQ)?