From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-27-2020 09:38 PM
Hi, I use labview for logging data.
First, I click Start Buttton, the process will start and data will logging to Table1 with 1 second.
After that i will click Logging Button. The Logging Button will start and Table Logging get data from last data Table1.
Table1 must still running when table logging is running.
But, the probelm is Table logging not continue running, must allways click. I want just one click. I dont want use Switch When Released. I want use Latch When Released.
Solved! Go to Solution.
07-27-2020 11:20 PM
It is unclear what you are asking for here.
What I can see is that you have a very stacked set of structures here. Case structure inside a loop, inside a case structure, inside a loop. When case structures and loops go that deep, it is a sign of a bad architecture.
You should probably think about how to do this within a single loop.
07-28-2020 01:01 AM - edited 07-28-2020 01:22 AM
Hi duviky,
you really should simplify your code:
No local variables for controls used as indicators.
No duplicated code.
No stacked structures.
No Rube-Goldberg due to converting scalars to arrays.
No ExpressVIs used for converting to array.
No InsertIntoArray, when you just want to BuildArray!
And only some very simple DATAFLOW to start the logging…
@duviky wrote:
I want just one click. I dont want use Switch When Released. I want use Latch When Released.
When you need switching behaviour, then you cannot use latching switch modes!
Why do you insist on latching?
07-28-2020 01:27 AM
Hi GerdW,
I like your code, very very simple. I like it, but table logging not run continue. I want if i click Logging Button, Table Logging will run continue like Table1. If i use your program I must Allways Click Logging Button. I want One click like Start Button (Latch When Released).
07-28-2020 01:58 AM
Hi duviky,
@duviky wrote:
I want One click like Start Button (Latch When Released).
Then set the "Logging" button to a "switch" mode!