10-17-2024 10:51 AM
@alhabeeb wrote:
Thanks. But my question is how to keep timing and not have NaN?
If you stubbornly want to keep your existing timing (not recommended!), just place the upper code in a case structures and only execute it if the array size is nonzero.
10-17-2024 11:01 AM
Please see if this helps
10-17-2024 11:42 AM
Hi, I put 100 sample per channel, and I have the same issue NaN!
10-17-2024 11:58 AM - edited 10-17-2024 12:02 PM
Why not put an indicator on the received 2D array and see what it looks like.
We cannot really tell how things are connected from a picture, so please attach your VI.
(I have no idee why you now think it is a good idea to pollute your diagram with local variables. That stop button should be latch action and wired inside the loop. Writing a control to a local variable of itself is just plain silly! I think you need to start with some basic tutorials. And please (please!!!!) resize your index array to the required number of outputs).
10-17-2024 11:58 AM
@alhabeeb wrote:
Hi, I put 100 sample per channel, and I have the same issue NaN!
What everyone is saying is to wire a fixed number to the DAQmx read VI instead of default, ideally 1/10 th of the sample rate.
10-18-2024 02:15 AM
I got it Thanks all.
10-18-2024 02:26 AM - edited 10-18-2024 02:29 AM
@altenbach a écrit :
Why not put an indicator on the received 2D array and see what it looks like.
We cannot really tell how things are connected from a picture, so please attach your VI.
(I have no idee why you now think it is a good idea to pollute your diagram with local variables. That stop button should be latch action and wired inside the loop. Writing a control to a local variable of itself is just plain silly! I think you need to start with some basic tutorials. And please (please!!!!) resize your index array to the required number of outputs).
Hi, I attached my VI. I have another two while loops not included yet, so I need one stop button to control all the three while loops.
Thx
10-18-2024 07:24 AM
Reference this KB: Stopping Parallel While Loops in LabVIEW with One Stop Button
Generally, please start a new topic when you have a new question (after you have researched your new question).