02-10-2025 03:37 AM
Dear community,
I am having problem running my labview program due to the event structure VI that i have implemented for locking numeric slider to not change values by mistake. but as i also have DAQ in my same block diagram. it is showing an error. How can i rectify this mistake ? I am also attaching a picture of block diagram as well as the error dialogue.
My logic is that if i change the value of the numeric slider. there should be a dialogue box asking "are you sure you want to change the value?". and only when i click yes it should change or else it should go to the previous value. Kindly help me fix this error.
I have tried fixing number of samples and increasing the size of number of samples and sampling rate also. What could be the possible error ?
Thanks
Regards,
Shruthi
02-10-2025 03:55 AM
Don't sample in the same loop.
02-10-2025 04:13 AM
Hi shru,
@shruthiganapathy wrote:
What could be the possible error ?
Yamaeda is right.
Other items:
But again: separate DAQ handling from UI handling!
02-10-2025 07:04 AM
Thanks a lot for the timely reply. I seperated into 2 while loops and now my numeric slider is working perfectly.
But i also have one more doubt. what is the best way to collect these data from NI DAQ USB 6009 to excel. i tried using "Set dynamic data" and "write to measurement file" VI's but the same error from my previous screenshot seems to appear. How can i fix that ?
Thanks and regards,
Shruthi
02-10-2025 07:35 AM
@shruthiganapathy wrote:
But i also have one more doubt. what is the best way to collect these data from NI DAQ USB 6009 to excel. i tried using "Set dynamic data" and "write to measurement file" VI's but the same error from my previous screenshot seems to appear. How can i fix that ?
I much prefer to use the DAQmx Configure Logging to have DAQmx save the data straight to a TDMS file. This is extremely efficient. Assuming you have the TDMS Excel plugin installed, Excell can just open up the TDMS file.
02-10-2025 10:41 AM
@shruthiganapathy wrote:
My logic is that if i change the value of the numeric slider. there should be a dialogue box asking "are you sure you want to change the value?". and only when i click yes it should change or else it should go to the previous value. Kindly help me fix this error.