From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-26-2022 11:47 PM
Hello,
I want to log data continuously with time stamps in .xlsx, .csv and .txt format. Any one format can be chosen by the user. I tried to do that with "write to measurement file" vi but it is only good for .xlsx format.
How should I use case structure for this problem??
For example, If user selects to save data in .csv format than data .csv file should be generated and data should be logged in that file with timestamps.
I am sorry for my bad english.
THANKS IN ADVANCE FOR HELP
02-27-2022 01:39 PM
There is a very simple answer that will also serve you well when you do any form of Data Acquisition (or Control) in LabVIEW -- Do Not Use the Dreaded DAQ Assistant!!
DAQmx is really quite simple to use. There are a number of excellent White Papers written by NI, including the one that showed me how easy it could be, called "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications" (or words very similar to that). If you put the first 5 words into a Google search, you should find this article.
The basic principle is the following:
Bob Schor
02-27-2022 02:06 PM - edited 02-27-2022 02:07 PM
Thank you so much for help.
But I don't have hardware nd I am simulating NI 9181 and NI 9203 virtually.
Can I use your solution for this situation?? and if yes thn how should I connect chart with this model.
I really appreciate your help.
thanks again
02-28-2022 02:00 AM
@Winkyy303 wrote:
...
I want to log data continuously with time stamps in .xlsx, .csv and .txt format...
None of those formats are suitable for continuous logging. I suggest you use tdms and if the user wants data in another format let them export into that format.