06-13-2024 04:22 PM
I'm taking several measurements with daq assistant and writing to an output excel file, however some of my signals are only written every other sample, while others are written out every sample. I would really appreciate any help that can be offered. Thanks!
Solved! Go to Solution.
06-13-2024 05:09 PM
Share a copy of your LabVIEW Vi to LV version 2020.
06-13-2024 05:10 PM
A lot of red flags.
Help us to help you. Tell us something about your LabVIEW training and experience. You seem to have some "code that isn't working" -- attach your code to your reply!
You didn't tell us which version of LabVIEW you are using. Many of us use "older" versions of LabVIEW, and cannot open (say) LabVIEW 2023 or 2024 code. But if you open your VI, go to the File Menu and choose "Save for Previous Version", you can choose LabVIEW 2019 or 2021, which most of the experienced LabVIEW users on this Forum will be able to open.
I strongly recommend that you do a Web search for "Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications" (I think that's the correct title -- it should pop up if you type the first 5 words into a Search Bar). Ignore the Chapter on the Dreaded DAQ Assistant!
Bob Schor
06-13-2024 05:15 PM
the file I attached is 2020 version. If you can be more specific (Q2 Q3) then I can change the version.
06-13-2024 05:17 PM
No idea what you are talking about. I attached the code and the output file. Can you not see the attachment?
06-13-2024 07:04 PM
I'm taking several measurements with daq assistant and writing to an output excel file, however some of my signals are only written every other sample, while others are written out every sample. I would really appreciate any help that can be offered. Thanks!
06-13-2024 07:06 PM
here are the files for labview code and output file error.
06-14-2024 12:45 AM
06-14-2024 10:03 AM
How do I delete the other threads?
06-14-2024 10:13 AM
Both DAQ assistants return a 1D array with 2 elements each second (2 samples acquired at 2 Samples/second). For DAQ Assistent1, you take 2 subarrays, one of which you take starting from index 1. When you leave the length input unwired, it outputs all elements from the wired index. Which means that you only take 1 element.
You probably mean to use "index array" instead of "array subset". This function only outputs the single element you select. Just replace the array subset with the index array and it'll work.