Jump to content

logging average running current


Recommended Posts

I'm still making the transistion from PLC to Labview programming, so I'm finding some of the basic tasks in PLC are totally foreign to me in LV. Using an existing program in 8.2.1, average and peak running current is collected per cycle, displayed on a waveform chart, and then sent to a Csv file. What I would like to do is log average running current (not the peaks, or stall, or in-rush) that is collected in each direction of the test sequence (Up, Down), and then have it as part of the file saved at every cycle. Note that the current is already collected and displayed, but what's stumping me is adding the logic to filter out when the data ia collected, and average it out. Likely a basic task, but any suggestions will be appreciated.

Link to comment

It sounds like you record one point in every cycle for every direction?

If that's true use the Point-by-Point VIs and esp. Mean ptbp use for every direction another VI (not in a for loop!)

Another pointer:

Lose the .csv file, and get some real action:

TDMS is your friend!

Use a time channel to log the moment of the measurement, and for every direction a measurement + average channel.

Ton

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.