06-23-2023 03:12 AM
I want to generate my first diagram output voltage continuously, but my event structure has timing so it is controlling my first diagram also .
See my attached vi.
i want to measure the Analog output voltage continuously of my first diagram, but my event structure has timing for other digital output signal, so i can see my voltage only when timing is changing.
so please send me a vi how i can get this issue resolved.
06-23-2023 03:48 AM - edited 06-23-2023 03:59 AM
Hi Holas,
@Holas1505 wrote:
I want to generate my first diagram output voltage continuously, but my event structure has timing so it is controlling my first diagram also .
See my attached vi.
Ok, so the question is: why do you want to use an event structure at all?
Why not simply read the stop button inside the loop?
On your VI: you really should learn from the example VIs provided by NI in the example finder!
Using AutoCleanup after applying some changes to your code:
06-25-2023 10:47 PM
Dear Gred,
Thank you for your guidance , i am new to labview so not knowing about some features.
Now, i will make changes as per your suggestion.
Event structure i have use for ON and OFF cycle.
Thanks
06-26-2023 01:06 AM
@Holas1505 wrote:
Event structure i have use for ON and OFF cycle.
No, you don't "have to use" the event structure!
You can, but you could also use a simple wait function instead…
06-27-2023 06:06 AM
But i want to stop the timing when i press stop, so if i will use wait function than it will wait till the time is complete.
06-27-2023 06:10 AM
Dear Gred,
Some more query, as i have already attached my VI.
Done some changes as per your suggestion.
1. i want to save report whenever i need.
2. i want to all the sub diagram from one stop button.
3. i want my output to be off whenever i press stop button.
Can you help me with example.
06-27-2023 06:44 AM - edited 06-27-2023 06:49 AM
Hi Holas,
@Holas1505 wrote:
Dear Gred,
Done some changes as per your suggestion.
Now there are even more terminals with deleted/hidden labels! You still use wrong datatypes, unneeded locals instead of wires, InsertIntoArray instead of BuildArray, ... And additionally you stop a DAQmxTask inside a loop, but still try to read from the task in the next iteration!
You also seem to have trouble to write my (nick)name correctly.
@Holas1505 wrote:
1. i want to save report whenever i need.
2. i want to all the sub diagram from one stop button.
3. i want my output to be off whenever i press stop button.
06-28-2023 03:59 AM
Dear GerdW,
soory for wrong spell before.
Can you share example with VI if possible!! as i am new to LabVIEW somethings doesn't understand properly.
Thanks
Holas
06-30-2023 03:46 AM
Hello,
I want to off my DAQ output whenever i press stop button of my while loop.
Attached vi for reference.
Pls share vi for changes.
Thanks
06-30-2023 06:07 AM
Hi Holas,
@Holas1505 wrote:
I want to off my DAQ output whenever i press stop button of my while loop.
See message #7…
(Please stick with your thread instead of starting new ones for the same question.)