10-29-2017 12:10 AM - edited 10-29-2017 12:14 AM
Need help writing a basic program. The program takes input from a voltage and current sensors from NI cDAQ hardware and records it and saves it into a excel sheet. I also want the program to calculate the energy and power consumption from the voltage and current data. I am completely new to LabView and dont even know if I am using the right packages. I am attaching my current program. Thank you in advance.
Solved! Go to Solution.
10-29-2017 06:52 AM
I'm guessing you are a (graduate?) student in engineering, and as this is your first post on the Forum, are largely inexperienced (and perhaps untaught) in LabVIEW. I also assume that being able to acquire data and process it will be important in your career (at least in getting your degree). So here are some suggestions:
Bob Schor
10-30-2017 12:59 PM
Bob,
Thank you for the advice and information you have provided. I am currently following many tutorials and learning to use LabVIEW. That being said, this program is for a mini project for a course I am currently taking and I am on a deadline. My current knowledge and expertise in the software is not sufficient for me to assess if I have a workable program for the end result I am looking for. Any help and advice regarding the same would be very much appreciated and any feedback regarding my current program (even though it uses the DAQ Assistant).
I would also like your advice another issue I have been having:
The experiment requires me to run the DAQ software to acquire the readings for a period of over 2 hours. When I try to right click on the graph and try to export it to excel (currently the only way i know of to get the data in tabular form) , the program either crashes or shuts down making me loose all the data in the process, or I get an error message saying there is not enough memory for the process to be completed, even though my RAM is free and available. Is this because of the system or am I doing something wrong?
10-30-2017 01:41 PM
When you use the DAQ asssitant there is a tab for logging, that will allow you to save a file in TDMS format. Configure it and you will have your file.
There is a plug-in for Excel that allows you to open TDMS files. Hint Search Google
mcduff
10-30-2017 01:43 PM
Will that prevent the crashing of the software that I am experiencing when i try to manually convert the graphs to excel directly?
10-30-2017 01:45 PM
Maybe, probably. You need to try it. Isn't that the point of your class?
mcduff
10-30-2017 09:19 PM
@jama223 wrote:
Will that prevent the crashing of the software that I am experiencing when i try to manually convert the graphs to excel directly?
It will log the data in the background, eliminating the need for you to export from the graph.
11-01-2017 12:22 AM
I am getting broken wires for power and energy measurements when trying to write them into a tdms file. I am attaching the image of the program with the error. Please let me know where I am going wrong. Thank you.
11-01-2017 10:30 AM
You can configure logging DIRECTLY from the DAQ assistant, use that.
mcduff
11-01-2017 11:13 AM
The error is not at the DAQ assistant terminal but at the power and energy VIs. Those are individual VIs themselves and that is where the broken wire is at.