06-05-2011 08:29 PM
Hi,
My old VB6 application was running on PCI-6034 (NI-DAQ platform) and using the following NI function calls (provided by nidaq32.dll😞
AI_VRead
Set_DAQ_Device_Info
AI_Clear
AI_Configure
DAQ_Clear
DAQ_DB_Config
Timeout_Config
DAQ_Config
Select_Signal
DAQ_Rate
DAQ_Start
Get_DAQ_Device_Info
DAQ_VScale
DAQ_DB_Transfer
DAQ_Check
DAQ_DB_HalfReady
GPCTR_Change_Parameter
GPCTR_Control
GPCTR_Config_Buffer
GPCTR_Watch
Get_NI_DAQ_Version
GPCTR_Control
GPCTR_Set_Application
GPCTR_Read_Buffer
I'm now upgrading the system to use a new NI card (NI-USB6341), and I have to change the VB6 application to run on NI-DAQmx platform. I have read thru the NI-DAQmx documentations came with the installation, but I couldn’t find the equivalent functions. Could you please let me know which are the new function calls I can use to replace those listed above? There's no plan to upgrade to VB.NET for now. Thank you!
06-06-2011 08:39 AM
Without the parameters that would have been passed to those functions it's pretty difficult to say for certain. NI-DAQ and NI-DAQmx use different programming paradigms and so there isn't a one-to-one correlation with function calls.
Instead of focusing on the previous function calls, you might have more luck trying to first write a detailed description of what your program was doing with the DAQ board. That would likely translate pretty easily to an example program that could be tweaked to meet your needs.
06-16-2011 12:11 AM
Hi, Thank you for your reply!
Our old program uses external trigger (counter) to sample the Analog Inputs:
DAQ_Config: Configured as external trigger (extConv =1)
Select_Signal: Selected ND_GPCTR0_OUTPUT as trigger signal, i.e. use a counter to trigger the Analog Input reading.
DAQ_Start: Start Analog Input data acquisition.
May I know in the new nidaqmx.dll, which are the new functions I can use to achieve the same? Thank you!