12-08-2021 12:21 PM
Hello everyone,
Im trying to save 3 numbers JUST ONCE into .csv file but because my program is running in while loop, data is saving too fast. Even if I try to click Button: True then False, to catch this one tick, its not working and it must not work anyway like this. Is this way to put some condition into case structure to link this with changing into false after another tick loop so data will save only once after I clicked button? Also Ive been thining about incrementing then decrementing some variable, but I cant manage it properly...
Any help will be useful! Thanks :D=)
Solved! Go to Solution.
12-08-2021 01:07 PM
Hi Krzysztof,
@Krzysztof_Orzel wrote:
Im trying to save 3 numbers JUST ONCE into .csv file but because my program is running in while loop, data is saving too fast.
Then you need to program that feature!
Two options:
12-08-2021 01:14 PM
I will try this and will give you an answer asap
12-08-2021 01:27 PM
So I changed my boolean to "switch until released" but Its not what I want, I cant always catch data saving tick, I need 100% of sucess so If I click it will automatically switch off after next iteration of loop
12-08-2021 01:39 PM - edited 12-08-2021 01:41 PM
Hi Krzysztof,
@Krzysztof_Orzel wrote:
So I changed my boolean to "switch until released" but Its not what I want,
I wrote "switch mode, followed by PtByPtBooleanCrossing to detect rising edges". It seems you didn't read my message carefully!
Btw. you failed to attach your code two times now: when you have problems with your code then you should attach (real!) code…
(Edit: please don't send PMs when you already got answers in the forum. PMs will not increase the speed/willingness I'm answering with.)
12-08-2021 01:42 PM - edited 12-08-2021 01:45 PM
The code is more complex I have interfaced my labview with solidworks assembly and Im moving created robot with labview softmotion module so It wont work anyway 😕 unless you know how to launch this
12-08-2021 02:28 PM - edited 12-08-2021 02:32 PM
Hi Krzysztof,
@Krzysztof_Orzel wrote:
The code is more complex
The code is not complex, but messy…
Why do you need to bundle 3 values just to unbundle them right after???
See this:
(It's a switching button…)
12-08-2021 02:46 PM - edited 12-08-2021 02:51 PM
Yes I know its messy, well be grateful then that I didnt post my 11 Vi's which contains the real program with FT Sensor plugged in 😄
Anyway I finally achieved what I wanted, thank you so much
I did this that way (picture), so whenever I switch to true then false data is saving only after another iteration
Thank you for your patience!
12-08-2021 02:49 PM
12-08-2021 02:56 PM - edited 12-08-2021 02:58 PM
I know, I know I sent the same picture be accident,
(bundling and unbundling are remainings after I was learning smth)
can I ask you last question, Im writing 3 numbers into csv file, every time in next row, If I want to read them later lets say to recreate movement how can I do this, how can I read row after row, 3 after 3 numbers, do I need arrays ?