LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to Measurement and Write to Text File

I never said you should add arrays, since you already have three arrays of doubles.

Post your new code. From your description it seems that you are repeating the write 100 times with the very same text, which does not make any sense. The loop must also include the line formatting part of the code, autoindexing on the three arrays and removing the Index Array nodes.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 11 of 16
(640 Views)

Hello Paolo,

Again thank you for your reply. I am attaching a screenshot of the current situation. So as you said, I should remove the Index Array?

Alexis_Koul_0-1602497571725.png

-Alex

0 Kudos
Message 12 of 16
(636 Views)

Do you really know what is an array? Before going on, I recommend you to go through the LabVIEW tutorials. In the main page of this fourum you will find links to Training Resources, like http://www.ni.com/getting-started/labview-basics/.

After that, check the following example:

example.png

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 13 of 16
(625 Views)

Hi Paolo,

 

polymorphism is part of the LabVIEW training:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(605 Views)

Sure, but polymorphism does not help the OP to recognize his main error.

He definitely needs a loop and autoindexing in his code.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 15 of 16
(583 Views)

Hello GerWd,

I changed the DAQ assistant to NI mx and I can see that I am getting more data, but the time interval of every data point is not constant.

I will try to save acquire and save the data in different loops, but then I need to use producer and consumer?

-Alex

0 Kudos
Message 16 of 16
(577 Views)