06-13-2024 07:49 AM - edited 06-13-2024 08:29 AM
Hello everyone ,
I want to save the data from the first see periodically, I did this code but in this case I record nothing on the 2 files, could you please help me and tell me where Did I make the mistake?
thanks in advance
06-13-2024 08:08 AM
Hi Amelie,
@ameletudiante99 wrote:
could you please help me
Could you please help us to help you by downconverting your VI to an older LabVIEW version?
(Most suggest LV2021 or older, I prefer LV2019.)
06-13-2024 08:30 AM
ok I modified the file
06-13-2024 11:46 AM - edited 06-13-2024 11:49 AM
Hi Amelie,
@ameletudiante99 wrote:
tell me where Did I make the mistake?
Please say "THINK DATAFLOW". Say it loud!
What do you think happens in your loop:
Please take the Training resources offered at the top of the LabVIEW board - and repeat say "THINK DATAFLOW!" as long as you don't understand the meaning and implications of those two words!
06-14-2024 04:36 AM
Hello GerdW,
Inner Loop: It stops when its specific condition is met, such as when a "stop" button changes a boolean variable.
Outer Loop: It reads the local variable after the inner loop completes its execution because LabVIEW manages data flow sequentially.
Bundled Wires: They improve readability by visually grouping similar data connections, reducing clutter on the block diagram.
Shift Registers: They are used to store values between iterations of a loop, ensuring continuous data management over the long term.
Default Tunnels: Within a case structure inside a loop, they can cause errors if default values exit without specific conditions being met, disrupting expected data flow.
I've tried to apply your advice and understand better now. However, I'm struggling to correctly program a shift register for handling loop exits.
thank you
06-14-2024 05:01 AM
Hi,
You should use debug tools while learning LabVIEW, especially the step-by-step mode in that case.
By doing so, you will get this :
(don't mind the errors, I deactivated all others DAQmx calls)
The colorized wires and VIs have been fully executed.
Grayed-out wires and VIs are still executing.
06-14-2024 07:18 AM
yes I tried but I still don't understand,
I can't fix it, I'll try something else thanks
06-14-2024 07:27 AM
Good morning ,
I acquire several parameters at 100 kHz per second; to limit the file size I only need to record half the time on certain parameters, so I want to record 50000 points only of the 100000 points;
I tried to code a Boolean variable which changes state every 0.5s to activate recording periodically but the program does not work, I cannot correct it? I saw that we can also use a timer but I don't know how to repeat it periodically? can you help me with this?
thanks in advance
06-14-2024 07:29 AM
Hi Amelie,
@ameletudiante99 wrote:
Inner Loop: It stops when its specific condition is met, such as when a "stop" button changes a boolean variable.
Outer Loop: It reads the local variable after the inner loop completes its execution because LabVIEW manages data flow sequentially.
Bundled Wires: They improve readability by visually grouping similar data connections, reducing clutter on the block diagram.
Shift Registers: They are used to store values between iterations of a loop, ensuring continuous data management over the long term.
Default Tunnels: Within a case structure inside a loop, they can cause errors if default values exit without specific conditions being met, disrupting expected data flow.
I repeat: you need to learn DATAFLOW basics: do the Training resources as offered at the top of the LabVIEW board!
06-14-2024 07:34 AM
Hi Amelie,
please don't create new threads for the same problem!
It's still about missing DATAFLOW in your VI…
@ameletudiante99 wrote:
I tried to code a Boolean variable which changes state every 0.5s to activate recording periodically but the program does not work, I cannot correct it?
Why do you need the loop inside and a boolean "variable" at all?
Why don't you read 50k samples per iteration and save the data only each second (aka even or uneven) iteration???