01-20-2023 03:16 AM
Hi,
Thank you for your replies in advance.
I have a machine code developed on LabWindows/CVI 2009 in windowsXP with traditional Daq driver 7.4.4.
I copied this code in Windows10 where I have LabWindows/CVI 2020 with ni Daqmx driver but whenever I am trying to build it, it showing one error - "error: Undefined symbol '_WriteToDigitalLine@24' referenced in "c:\Users\h534938\Honeywell\HC900_Redesign_LTTS - General\HOTnCOLD_Tester\Stress Tester_Code & Data\HC900\cvibuild.Umc900fo\Debug\main.obj".
Can somebody help me?
01-20-2023 03:28 AM
Hello,
NI DAQ is an old, legacy library different from NI DAQmx. So if you are using the newer library now it may well happen that some functions that were used in your old code are not available anymore. You will need to go through your code and check all the DAQ function calls for their newer analogues. As a starting point you may want to read the support document from NI
01-20-2023 03:49 AM
If I may add, prior to trying porting your code to DAQmx I recommend you to check whether the acquisition devices you are using can be driven by DAQmx. CVI2009 and Traditional DAQ are quite an outdated software set that may imply an outdated hardware as well: you may find that your hardware cannot be driven by DAQmx or you may be forced to downgrade to an old release of the driver.
01-20-2023 03:58 AM
😀 thanks Roberto for the valuable hint.
I would like to add that DAQmx is not DAQmx - older versions support hardware that newer versions don't. So if you realize that the installed DAQmx does not support your hardware there still may be hope... unfortunately you will have to go through the different read mes to find out what is the last DAQmx supporting your hardware and if this driver still works with your version of CVI...
01-23-2023 12:53 AM
Hi,
Thank you for giving time and replying to my query.
I will go through the code and check how the upgraded function can be used.
Rgds
Satish
01-23-2023 01:00 AM
Hi,
Thank you for giving your precious time and replying to my query.
We have planned to use new DAQ devices which are compatible with DAQmx and LW/CVI 2020 version. But whenever I tried to open the older code in newer version of the software it showed the highlighted error so I thought to include the easyio.h header file but still it did not work because easyio.h would come with traditional DAQ driver not with today's DAQmx drive being used, I got this information on google.
Could you also provide me any link or support that how data acquisition is done in LabWindows/CVI with DAQmx driver?
Because I am new to this , In LabVIEW I know.
Rgds
Satish
01-24-2023 03:13 AM
As you have found, there is no way to have both traditional DAQ and DAQmx function in the same program. Additionally, traditional DAQ won't install and run on 64-bit systems which are common nowadays so you cannot simply load the old code and test it. You have to completely rewrite that part of the code in terms of DAQmx and you cannot run it until you have at least commented out all old-style function..
A good starting point for code transition is the document that Wolfgang linked in his first response.
Your expertise in LabVIEW will be useful since the conceptual framework of DAQmx is 90% the same between the 2 environments.
Your next step will be to go through actual application code and identify functions that perform DAQ stuff in order to rethink them in terms of DAQmx; after doing this you could look at DAQmx examples for CVI to have a starting point on how to implement your own functions.
Examples can be easily located using the Example Finder (Help >> Find Examples... menu function) which can be tailored to your actual (new) hardware to limit search to examples applicable to it.
I'm not pretending that this is an easy path, but there are documents and resources to help you travel it.