07-03-2007 09:03 AM
07-04-2007
12:38 AM
- last edited on
09-30-2025
06:43 AM
by
Content Cleaner
Hi jray3475,
Before going straight into developing your application I would highly recommend you go through the Getting Started with NI-DAQmx series. Both these documents along with this video can provide you with a solid foundation for starting to build your application.
As for your specific application, you should be able to use a series of DAQ Assistants to control the relays using the Digital I/O ports and also perform an Analog Input operation to read your 250 voltage points. As for logging data you should be able to use the Write to Measurement File express VI to log to a text file. All your decision making can be done using case structures and while loops (all covered in the LabVIEW in 6-hours training).
Please post back if you have any specific questions.
07-04-2007 07:34 AM
07-04-2007 10:17 PM - edited 07-04-2007 10:17 PM
Message Edited by Abhinav T on 07-04-2007 10:18 PM
07-11-2007 06:52 AM
The VI has been coming along well.... except a few issues. Turns out I need 15,000 data points when acquiring the generator voltage, which is no problem. The problem has been graphing the data from the excel file after manipulating the data. I use a "read measurement" to pull up the data and manipulate the time and voltage readings with equations and then curve fitting. My goal is to plot speed vs time, the torque vs time, and power vs time. I would like to plot the torque and power curves on the same graph. I have not had any luck at all with the graphing. I'm not sure what I'm doing wrong, but all of this is done in a sequence sequence structure to make sure things happen one at a time, it is recording the voltages and times correctly. I'm on the verge of just inserting a macro and plotting the data in Excel, but I'd like to plot it in LabVIEW. Any ideas? Thanks so much for your time. My equations are:
T=J*α/gc
Where:
J
= Mass moment of inertia (lb-in^2); α = Rotational acceleration (rad/s^2); T = Torque (in-lbf); gc = Gravitational constant___________________________________________
w=V/km
Where:
V
= Voltage (V); w= Rotational speed (rad/s); km= Motor constant (V-s/rad)_________________________________________________
α=Δω/Δt
Where:
α
= Rotational acceleration (rad/s2); Δω = Change in rotational speed (rad/s); Δt = Change in time (s)____________________________________
P=T/ω
Where:
P
= Power (lbf-in/s); T = Torque (in-lbf); ω = Rotational speed (rad/s)_________________________________________________07-12-2007 10:21 PM
Hi jay3475,
To address the issue at hand, please describe the actual problem that you’re having when plotting the data. Are you using a waveform graph or a waveform chart? Is it not displaying properly? Are you receiving an error? As long as your x-axis and y-axis have the same units for all of the plots that you are trying to display, there should definitely be a way to get it working. If they do not have the same units, it may make for a more meaningful presentation to display each piece of data (voltage, power, torque, etc.) in a separate plot.
Please post back with further clarifications. Thanks!
Regards,
Ed W.
Applications Engineer
National Instruments