03-28-2025 09:51 AM - edited 03-28-2025 09:53 AM
"Hello, this is really embarrassing, I don’t know much about LabVIEW. I need to collect voltage and current data live and send it to an Excel file. I've decided to use a single DAQ because with two (one for voltage and one for current), I was getting an error because the program doesn't understand the order of execution. Right now, I'd like to know if there is a better way to do what I’m showing here. I’ve decided to set a rate of 200 mHz to get an update on the indicator every 5 seconds, but I’d like to register a sample every 10 minutes in Excel. Another problem I have is that the Excel file cannot stay open while the program is running, and I would like it to be able to. Also, the time column isn’t working correctly. Finally, I would like to know why when I hit STOP from the front panel, it takes almost 10 seconds and sometimes it doesn’t stop the task. Thank you for your help, God bless you.
Solved! Go to Solution.
03-28-2025 11:53 AM - edited 03-28-2025 11:55 AM
Well, there are excellent training resources listed at the top of the forum. If you don't want to do the work, hire a contractor.
03-28-2025 01:42 PM
All right, I think I got everything you told me.
Where can I find the training resources?
Also, I'm not sure if a state machine is too much for my purpouse of a couple of data acquisitions.
03-28-2025 01:50 PM
On the top of the forum, there are plenty of links.
LabVIEW also ships with plenty of example program and design templates.
A state machine is a very simple program design. In your case you would have states for reading, waiting (do nothing), writing, shutdown, etc. and logic to transition between these states (e.g. after 5 seconds, when new data is acquired, when data needs to be saved, when the stop button is pressed, etc.)