LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assistant verses DAQmx

Solved!
Go to solution

Whats the advantages of acquiring data from the DAQmx block rather than using the DAQ assistant block? Are there pro's and con's to each? What is normally used in industry?

 

I've also noticed there are multiple methods for writing data to file and wondered what the proper method or pros and cons for this are?

0 Kudos
Message 1 of 4
(3,610 Views)
Solution
Accepted by David-Baratheon

@David-Baratheon wrote:

Whats the advantages of acquiring data from the DAQmx block rather than using the DAQ assistant block? Are there pro's and con's to each? What is normally used in industry?


You have A LOT more control over the acquisition with the DAQmx API over the DAQ Assistant.  You can also make the code more efficient with the API.  Normal in industry to to avoid the DAQ Assistant

 

The only real advantage of the DAQ Assistant is that it is easier to set up your task.

 

 


@David-Baratheon wrote:

I've also noticed there are multiple methods for writing data to file and wondered what the proper method or pros and cons for this are?


Well, that just depends on your requirements.

Need human readable?  Go with a tab delimited text file or CSV.

Need to log a lot of data quickly?  Use a TDMS or binary file.  I tend to use the TDMS since it is well put together for DAQ and waveforms.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(3,596 Views)
Solution
Accepted by David-Baratheon
The DAQ Assistant is fine for basic tasks and for initial testing but you have much more control and less overhead when you use the DAQmx functions that are also called by the assistant. There are things, such as the channel list, that you would need to edit the assistant and not afront panel control. Personally, I've never used the assistant in any released code.

There is not one 'proper' way to save data. You have binary options such as tdms that writes smaller files at higher speeds but are not human readable. You would use a plug-in to view them in Excel for example. You have ASCII text options that are viewable with something like notepad but take more storage space and are slower to write. Numerous other options so experiment.
Message 3 of 4
(3,591 Views)
Solution
Accepted by David-Baratheon

Hi David,

 

you can find an excellent source of information on DAQmx here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(3,582 Views)