LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing to output file

Solved!
Go to solution

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!

0 Kudos
Message 1 of 20
(923 Views)

Share a copy of your LabVIEW Vi to LV version 2020. 

0 Kudos
Message 2 of 20
(909 Views)

A lot of red flags.

  • Using DAQ Assistant instead of learning how to use DAQmx.
  • Writing to an "output excel file" without specifying if this uses Excel or is just a plain formatted Text file (columns separated by something and rows separated by end-of-line character(s)).
  • Telling us nothing about the LabVIEW code or environment.
  • Telling us nothing about your LabVIEW knowledge or training.
  • Not showing any LabVIEW code.

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

Message 3 of 20
(908 Views)

the file I attached is 2020 version.  If you can be more specific (Q2 Q3) then I can change the version.

0 Kudos
Message 4 of 20
(905 Views)

No idea what you are talking about.  I attached the code and the output file.  Can you not see the attachment?

0 Kudos
Message 5 of 20
(904 Views)

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!

Download All
0 Kudos
Message 6 of 20
(869 Views)

here are the files for labview code and output file error.

Download All
0 Kudos
Message 7 of 20
(868 Views)

Hi jseele,

 

please don't create multiple threads for the very same topic…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 20
(839 Views)

How do I delete the other threads?

0 Kudos
Message 9 of 20
(801 Views)

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.

Basjong53_0-1718378003904.png

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.

0 Kudos
Message 10 of 20
(796 Views)