DAQmxConfigureLogging
Hello,
We would like to use the DAQmxConfigureLogging library function to stream analog input data to disk. We will be using the DAQmx_Val_LogAndRead option to allow reading of acquired data.
The question we have is if it is possible to asynchronously write event markers into the TDMS files created after acquistion is started?
Thank you,
Hi jharris66,
Yes it is possible, but there are some some things to consider before you incorporate this into your code. The following forum post discusses that, http://forums.ni.com/t5/Multifunction-DAQ/Multiple-TDMS-DAQmx-streaming-to-the-same-TDMS-file/td-p/1... .
Bobby Breyer
Applications Engineer
National Instruments
Similar Messages
-
Hi I'm using TDMS format to my project.
I succedd to log the whole data into TDMS file by using the
DAQmxConfigureLogging(taskHandle, logFile.toAscii().constData() ,DAQmx_Val_LogAndRead,"GroupName",DAQmx_Val_OpenOrCreate)
Now my problem is that when I'm trying to read the TDMS file I can't open it.
My code of reading is (from the TDMStesing example):
unsigned int
length;
int ddcError = 0;
DDCFileHandle file = 0;
char *property = 0;
// Read file name
ddcChk (DDC_OpenFileEx (FILE_PATH, "TDMS", 1, &file));
ddcChk (DDC_GetFileStringPropertyLength (file, DDC_FILE_NAME, &length));
nullChk (property = (char*)malloc (length + 1));
ddcChk (DDC_GetFileProperty (file, DDC_FILE_NAME, property, length + 1));
printf ("File name property: %s\n", property);
free (property);
property = 0;
// Read file description, if present
if (DDC_GetFileStringPropertyLength (file, DDC_FILE_DESCRIPTION, &length) >= 0)
nullChk (property = (char*)malloc (length + 1));
ddcChk (DDC_GetFileProperty (file, DDC_FILE_DESCRIPTION, property, length + 1));
printf ("File description property: %s\n", property);
free (property);
property = 0;
// Read the channel groups
ddcChk (ReadGroups (file));
Error:
if (property)
free (property);
if (file)
DDC_CloseFile (file);
return ddcError;
When I debug the code I got the error code of -6204 at the DDC_OpenFileEx function
Error details http://zone.ni.com/reference/en-XX/help/370051K-01/cvi/cvidiademlibraryerrors/
-6204
DDC_UnexpectedError
An unexpected error occurred in the library.
Need help...
My setup:
Hardware: NI 9234
NI-Daqmx: device driver 9.4.0f5
Windows version: XP (sp3)
Language: Qt (C++)
Solved!
Go to Solution.Hi all,
I added the DataModels libs to the project and I succedd to read TDMS file.
BUT, now I'm trying to read TDMS 2.0 file and I got the next message:
ERROR: TDS Exception in Initialize: Tds Error: TdsErrFileVersionTooNew(-2510)
err id : -6210
Need help
Atteched the TDMS file
Attachments:
tset_tdms.zip 781 KB -
Bonjour à tous,
Quelqu'un sait-il si on peut modifier la valeur de WF_INCREMENT qui ***** trouve dans le premier onglet d'un fichier TDMS.
Dans mon application il est toujours à 1 alors que je le voudrais à 0,01, j'echantiollone à 100 hz
Par avance merci et bonne journéeBonjour leader09,
La fonction DAQmxConfigureLogging est assez rigide et il est impossible de rajouter des channels "faits maison" : elle loggue chacune des voies d'acquisition. Si l'information du temps est importante, il faut récupérer les données DAQmx sous forme de Waveform (qui inclut la donnée temporelle). L'autre façon de procéder est de faire l'acquisition dans un thread, et l'enregistrement TDMS à partir des fonctions native dans un autre. Cela demande cepandant plus de notions sur le multitasking.
Pour permettre à l'utilisateur de définir le chemin du fichier TDMS, je recommande d'aller faire un tour sur coté de la fonction FileSelectPopup !
Cdt,
Eric M. - Application Engineering Specialist
Certified LabVIEW Architect
Certified LabWindows™/CVI Developer -
Hi,
I'm using DAQmxConfigureLogging function and it works very well for my application. But I'd like to know if is it possible to automatically log wf_stop_time beside of wf_start_time in the TDMS file. Should I use TMDS library and manage this information via software? Thanks
Solved!
Go to Solution.CVI equivalent of the function mentioned by A.P. is TDMS_SetFileProperty, which implies opening the file after acquisition is done and updating the property set.
Nevertheless, in my opinion this is not needed, as you can calculate end time with wf_start_time + Lenght * wf_increment (in seconds)
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Maybe you are looking for
-
Error during creation of subsequent Cr/Dr for 3rd part sales
We have problem in invoicing a third party Purchase order, we get the message as " Document -<SD invoice> already assigned". Error: F5152 Our Flow is: SO created-- PO Created--MIGO MIRO VF01. Now the Vendor sends a Debit/Credit for the same PO. While
-
How can I change my email address in an app, and I cloud??
-
How do I get rid of the metadata hangin on my mouse arrow when I point on an image.
How do I get rid of the metadata hanging on my mousearrow when I point on an image in aperture. I hope it is possible to uncheck this feature. It is rather disturbing and not needed all the time. I hope someone can help me out! Thanks
-
Problem: short filenames from Windows apps
Whenever I save a file from a Windows application on Solaris, if the filename is 8 characters or less, it converts the filename entirely to lowercase, but with 9 characters or more, it works fine. ie: 1234567890 abcdEFGHI.txt --> abcdEFGHI.txt abcdEF
-
Hello!!!! Please provide basic frequently asked interview questions on CUBE, CUSP and CUCM. I need them on urgent basis so that i can clear my interview. Needed those docs today as tomorrow is my interview. BR Akriti