Recording peak load with Labview
i have an application where a cylic load is applied to an object via a load cell. I need to record the peak load of every cycle and plot it on an XY graph versus the cycle number.
However, the only trigger available to tell labview to look for a peak and add a count to the cycle number, is when the load goes over a certain threshold. The load is over that threshold for 3/4 seconds normally.
I am struggling to:
1. Add a single count i.e. if I use a case structure the condition is true for 3/4 seconds so the count is not single
2. Record the peak load - If I use a while loop, the live load cell reading freezes at the point the loop starts.
I appreciate it is probably very easy code and I'm being a bit thick - but can someone help please!!
Hi,
Attached is a sample VI that shows the two types of peak detector available side by side. For the point by point graph I have also divided by the cycle time in samples and returned only the quotient that should give the cycle number. Is this what you were after?
Regards,
James Mc
========
CLA and cRIO Fanatic
wiresmithtech.com/blog
Attachments:
Peak Detector Example.vi 32 KB
Similar Messages
-
How can I record a video with LAbview?
Hi,
I have a question: How can I record a video with labview?
I have a camera (AXIS 221) connected via rj45 on PC. I see the video of the camera in a browser.
And I would to acquire the video in labview.
Could someone help me?
Thanks
RafUnfortunately I haven't any experience with this camera. Iguess, you should install API, then crete new VI, place ActiveX container (palette Container->ActiveX) on the Front Panel, then right mouse click, then choose Insert ActiveX object..., then found you camera object and select it and press OK. Then you probably can see image from the on the front panel. Also probably you will be able to get image data in array (how easy is it - depends from the camera API).
If you able to see image from camera in the Internet Explorer, then another method - you can put Microsoft Web Browser as ActiveX object, then you should also see the image. Disadvantage of this method - you will be not able to get image data.
Andrey. -
How do I count arbitrary pulses from an oscilloscope with labview
I am looking at arbitrary pulses on a TEK 2024B oscilloscope. I want to use LabView to count those pulses and record a time stamp for each pulse (perhaps to an excel spreadsheat). The duration of the measurement is over ten minutes and the pulses, on the average, occur once per millisecond. How do I count/record these pulses with LabView?
Jay,
I would start by downloading the Instrument Driver for the 2024B from ni.com/idnet It should have the functions that the scope is capable of implemented there. If you have problems using the driver please post back.
-Marshall R
National Instruments
Applications Engineer
One stop for all your NI-VISA Support
GPIB Support has a new homepage -
I have an ipod classic loaded with songs from my old computer that were put on my library from cd's. can I transfer those songs onto my new computer from my ipod or do I need to re-record them to my library on disc at a time?
See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
Recovering your iTunes library from your iPod or iOS device
B-rock -
How can I Save and Load the Configurat​ion File of a VNA HP8510C with LabView
Hello, I'm working with a HP8510C. In order to simplfy the use, I try to save and to load the configuration file. Actually, such files are saved in the HP8510C, but there is only 4 places to save. It will be more interresting when I can storage this file in the computer with Labview. I don't have found anything about in the Documentation.
Has someone already deal with such a question?
Géraud DEVOS
IWE KarlsruhegeraudIWE a écrit:
Hello, I'm working with a HP8510C. In order to simplfy the use, I try to save and to load the configuration file. Actually, such files are saved in the HP8510C, but there is only 4 places to save. It will be more interresting when I can storage this file in the computer with Labview. I don't have found anything about in the Documentation.
Has someone already deal with such a question?
Géraud DEVOS
IWE Karlsruhe
Hello GerauIWE,
Have you try to use the Hewlett-Packard 8510C Instrument Driver?
You can download it on :
http://sine.ni.com/apps/we/niid_web_display.drv_results?p_app_area=&p_man=hewlettPackard&p_keywords=8510c&p_inst_type=&p_env=845&p_drv_type=&p_int=
Best Regards,
Sanaa T
National Instruments France
Sanaa T.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> http://www.nidays.fr/images/081110_ban_nidays09_468X60.gif -
Load with a error but records no error
Hello BW Experts,
i am loading from a flat file and there is no errors in the individual records of the psa. but in the monitor it has red. even loading to the psa.
details:
the extraction is red
Extraction: errors occured
39 records sent (39 received)
transfer (idocs and trfc : errors occurerd
datapackage 1: arrived in BW; processing; 2nd processing step not finished.
procesing (datapacket ): errors occured
data package 1 ( 39 records ): errors occured
update psa is all green
transfer rules ( 39 --> 39 ) errors occured
1 incorrect records for packet 1 - generation of error request marked.
messages ( type E ) for data records with record number 0
no messages exist in the details or in the psa. psa all records are green
Please suggest what could be the error here.
Thanks,
BWerIt says all the records are loaded in PSA and one of the 39 records loaded is an error.
Resolution:Delete the request . Since its only 1 record ,Please go to PSA. select the inconsistent records chage it manually.& Reconstruct. -
LabVIEW load error code 3 when opening VI with LabVIEW 2010
I got this error when I try to open a VI saved in 8.6.1 with LabVIEW 2009 and 2010.
The VI open correctly with 8.6.1.
It's appening with only one VI. All other VIs are OK.
Anyone experience this problem?
What can I do to get over this bug?
Dany
Dany AllardSame issue here too. Could anyone help me to open it?
Attachments:
Peak Detector.vi 34 KB -
VI with Several XControls on nested tabs takes minutes to load in LabVIEW 2013
Hello all,
I have a VI in LabVIEW 8.2 that includes more than 400 Xcontrols in nested tabs, which opens in seconds (very fast). The code was upgraded to LabVIEW 2013 and now the VI takes minutes to open and in the meantime LabVIEW is unusable with the CPU at 100%.
I am wondering if anybody has experienced this behavior with Xcontrols.
Thanks.Please note that I am working with jarcTek on this project where we inherite that UI with so many XControls instances.
It is not like there are a lot of different XControls (there are a total of about 10 different type of XControls), but there are a lot of instances of these XControls (several 100) in 3 levels of nested tabs.
Yes, we both had the time to re-recompile the source code between the two posts that jarcTek made. The various XControls are stored in 4 different llbs. Most of the XControls that have a lot of instances are actually pretty simple (very little code there). Finally, yes the VI property (or the XControl library property general settings) indicate that the code is in LabVIEW 2013 [see image below].
You are correct, the delay occurs after the VI is loaded from disk. The loading time is fine (we see the loading progress/dialog since there are a few 100s vis to load with that main UI), but after that everything hangs for several minutes (cpu peg at 100%). We run the Desktop execution toolkit, and we can see a lot of XControl events (1000s) that are fired during this time.
FYI: Unloading (closing) the VI is also very slow.
To put this in perspective, In LabVIEW 8.2 the same code is ready to run immediately after the UI opens.
Thanks
PJM -
Record audio with labview and audio dataplugin
The thing I would like to do, is write waveforms to WAV/wma/mp3 files.
The way to do this, is probably with the help of the audio data plugin.
However, it is far from clear how to configure and use this plugin with LabView. There is documentation available for DIAdem, but what good is that to me, as a simple LabView user?
There is also an example for reading dataPlugin data with LabView, but this example is:
A) not working, e.g. it cannot open a simple WAV file, when using "uspAudio" as DataPlugin Name
B) not documented
C) not handeling errors
D) only reading, not writing, which is slightly more complicated.
So, tips for writing waveform to audio files and/or
tips for working with dataPlugins in LabView would be welcome...Ok, so, now I can read a WAV/WMA/mp3 file, see attached VI
There's still one problem: writing data to a WAV/WMA/mp3 file. In my "DataPlugin Write Audio File.vi" I try to read from / listen to a microphone connected to a AD card. On the Waveform graph, I see my signal correctly, but in the WAV file, there is only a flat line (zero's).
Perhaps it is needed to add properties to the group, but I don't know which properties to add...
All advice is appreciated...
Message Edited by bram@tno on 08-08-2007 07:00 AM
Attachments:
DataPlugin Load Audio File.vi 46 KB
DataPlugin Write Audio File.vi 229 KB -
Delta update data error. Can we do a full load with bad records?
Hello,
We are working with SAP BW 7.0. And we had a problem with a delta update. It has made the delta update correctly, however, a register is loaded incorrectly, when this register was correct in the source system.
We just made a load of that record and now we have it right in the master data. But we must now update the InfoCube. The data came up with a delta load, and now to load only this record we must make a full load (with only 1 register), then in the infocube make a delete selection of the wrong record.
The problem is that we have doubts about how this would affect the load delta, because loads are scheduled for each day and then lost as the source of where to start the next load and we have problems with delta loads the next few days.
Thank you.hi,
What is your delta extractor (LIS or not LIS), What is you target (DSO or cube).
depending on your soruce and target procedure is not the same but you can do it in every cases :
in case of not LIS
just reload with full IP to PSA
in case of LIS
delete setup tables
do a restructuration for your record (if you can with selection condition)
in case of cube in BW
do a simple full upload
in case of DSO
do a full upload in repair mode (if dataflow is 3.x) else just use DTP.
But if your target is DSO and DSO load other infocube after be sure that they are not corrupted
Cyril -
Lifelines trackit EEG recording with LabVIEW
Hi, I am trying to control a lifelines trackit EEG (www.llines.com) recorder using LabVIEW via serial communication (DB9). Does anyone has any experiences connecting this device with labview? I've done several communication via serial communication with labview before but not as tough and difficult as the current task. I am not able to understand the device (trackit) command in order for me to apply the Basic Serial Read and Write VI. Please advice. I have the Lifelines trackit recorder Interface specification in softcopy as reference but do not know how to attach here. Please let me know if you guys need the copy as reference. TQVM
Host Transmit Write Data and Write Command
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> [Data]# [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> <Data># [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> {Data}# [EOP]Is there a demo program from the manufacturer that works?? you can use portmon or NI spy to capture the serial datastream and reverse engineer the labview code. Sometimes ya have to think like a hacker.
http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx
http://www.ni.com/support/gpib/max/nispy.htm
Message Edited by unclebump on 02-16-2009 08:34 PM -
How to use SQL loader with DBF fixed format record
Hi everybody!
My situation is that: I want to use SQL loader with Foxpro DBF format, it similar to case 2 study (Fixed format record) but DBF file has header, how can I tell SQL loader skip header.
Thank you in advanceAnother option is to apply SQL operators to fields
LOAD DATA
INFILE *
APPEND
INTO TABLE emp
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' (
empno,
ename,
job,
mgr,
hiredate DATE(20) "DD-Month-YYYY",
sal,
comm,
deptno CHAR TERMINATED BY ':',
projno,
loadseq "my_seq.nextval")This is a modified control file of Case Study 3 which originally demonstrated the use of the Sequence parameter -
Hey guys,
I have to write load cell program with labview 6, but I have no idea how to do it.
If anyone knows, please give some hints.
Thank youIf you have little LabVIEW programming experience, the link below would be a good place to start:
http://www.ni.com/gettingstarted/labviewbasics/
I've also located a good example on ni.com/community that shows how to monitor a load cell in LabVIEW
https://decibel.ni.com/content/docs/DOC-2151
I hope this information is helpful.
-Nick-
Nick C | Staff LabVIEW Platform Product Support Engineer | National Instruments -
Hi George,
500 users sending 4 not very heavy objects does not seem like a lot. I
would guess that you would see some brief sluggishness in the clients,
followed by normal behavior. Before you act on this, I reccomend setting
up a test to simulate this. The Forte Consulting group has done a lot of
work on this issue, and may have a lot to offer setting up such a test.
There are several ways to simulate the server going down. In reverse order
of extremity:
* Shut down the partition in econsole/escript
* Kill the process via the OS
* Pull the network plug from the server
* Shut down the subnet (or equivalent) where the server resides
* Kill the OS
* Cut the power to the server
* Something more drastic?
This brings up several other issues. First, know what level of fault
tolerance you want to provide. For example, if you want to deal with the
possibility of a subnet going down, don't replicate a partition to servers
hanging off the same hub. Second, for your particular architecture, make
sure that clients are aware when the server goes down. For example, if you
have a service object of Message Dialog Duration, and a client makes a call
to a server that is temporarily down, the client will not get a
DistributedAccessException. The manuals and courses from the Forte
Training department provide more details on which exceptions are thrown
under which circumstances. Last, make sure that when your clients register
(or reregister) that they are not walking over each other's records.
Disregarding load balancing, service objects are inherently
multi-threaded. Thus, you should make sure you have a mutex (via the
IsShared property or a Mutex object) to control who writes to the set of
clients.
Good Luck,
CSB
-----Original Message-----
From: Vallas, George
Sent: Tuesday, March 02, 1999 6:54 PM
To: Forte News Group
Subject: Peak Load
I am looking for a way to repopulate some simple state information (list of
proxies) to a backup copy of one of my SO's once the primary SO fails over.
I had sent a request to the news group awhile back and received some great
suggestions about writing to a file or to the DB. However, since the state
information is data that CAN be recovered by the client app (i.e. node
name,
client id, pointer or proxy through the passing of an anchored object) we
decided not to write this data to persistent storage but rather have the
client re-register themselves with the SO by sending the appropriate info
over to the SO (including the proxy back to the client). My question is
this: If the SO goes down while a large number of users are logged on
(lets
say 500) and they all re-register themselves on the backup SO at the same
time (passing 3 TextData objects and a proxy to the client) how much load
will this cause and will it be enough of a load to hang the application?
Another Question is: How does one go about forcing an SO to failover for
testing purposes?
Thanks you for your assistance!!
George Vallas
Systems Engineer
EDS Medi-Cal - Systems
3215 Prospect Park Dr.
Rancho Cordova, CA 95670
Phone: (916)636-1183
mailto:[email protected]Hi again,
You don't need a nice operation team to look at the dependencies on production.
In fact, it would not be a good idea if you use autostart. But you can
synchronize your service objects. You can look at synchronization components
(without source code : it's for sale) and a short user sample on
http://perso.club-internet.fr/dnguyen/ (CmpSynchro is the component library and
Sequence & Synchro is the sample).
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
http://perso.club-internet.fr/dnguyen/
Peter Sham (HTHK - Assistant Manager - Software Development, IITB) a écrit:
Hi,
Thanks for your reply. It's really an interesting and intriguing. I once
have some thought on this but dropped the idea soon. The reason is ...
If I implement question 1 with events, what if the SO misses the event as
event doesn't guarantee delivery. After all, to implement such scenario,
there would be a dependency between the startup sequence of the SO. As I
don't have a nice operation team to watch the system, I dropped this idea.
My finally decision is to implement it using database synchronization.
Given the story, I would really appreciate if you can share some idea with
me on such concerns too.
Regards,
Peter Sham.
-----Original Message-----
From: Dimitar Gospodinov [SMTP:[email protected]]
Sent: Wednesday, March 03, 1999 6:14 PM
To: Peter Sham (HTHK - Assistant Manager - Software Development,
IITB)
Subject: Re: Peak Load
Hi,
I am from Sergei's group too...
For question 2 - it just listens for the RemoteAccessEvent. When the
SO is down
all registered clients will receive this event. This event is posted
only if the
SO is with session dialog duration.
According point 1, you can get a reference to all replicates by some
simple
protocol. For example posting an event that all replicates are
registered for.
Each replicate will respond to this event by posting another event
that contains
a reference to the replicate. The SynchronizationMgrSO is registered
for the
second event so it will get all events posted.
Hope it makes sense,
Regards,
Dimitar
"Peter Sham (HTHK - Assistant Manager - Software Development, IITB)"
wrote:
Hi,
I'm interested in your implementation and have some questions:
1. How do SynchronizationMgrSO gets a reference to allreplicas of
NotificationMgrSO?
2. How does a NotificationMgrSO know whenSynchronizationMgrSO has
crashed?
Best regards,
Peter Sham.
-----Original Message-----
From: Sergei Sherstyuk [SMTP:[email protected]]
Sent: Wednesday, March 03, 1999 12:19 PM
To: Vallas, George
Cc: Forte News Group
Subject: Re: Peak Load
I'm very new to Forte but it happened that we had thesimilar
problem in our labs - we had to
develop the fault tolerant NotificationManager. Actuallythe first
our approach was the same as
yours - to force clients to reregister themselves to SO
(NotificationManagerSO) after it restarted.
But then we implemented another schema. May be it is morecomplex
but IMHO more robust and scalable.
We have load balanced (!) NotificationMgrSO with 2 or 3replicas and
additional
SynchronizationMgrSo. The every call tosubscribe/unsubscribe to
NotificationMgrSO comes to
particular replica. This replica registers thissubscription and
then call SynchronizationMgrSo to
make the same changes in all other replicas.SynchronizationMgrSO
has references to every replica of
NotificationMgrSO. SynchronizationMgrSO is fault tolerant.And if it
fails and restarts all replicas
of NotificationMgrSO should reregister themselves at newinstance of
SynchronizationMgrSo - it is
the same technique that you use for clients but at the SOlevel and
hence no problems of
overheading.
Of course there are some issues with this approach but itworked.
The main advantage is that clients
don't wary about their services were restarted.
May be I don't understand well your second question but wetested
our application simply shutdowning
partitions with SO from Environment Console.
Sincerely,
Sergei Sherstyuk
"Vallas, George" wrote:
I am looking for a way to repopulate some simple state
information
(list of
proxies) to a backup copy of one of my SO's once the
primary SO
fails over.
I had sent a request to the news group awhile back and
received
some great
suggestions about writing to a file or to the DB.
However, since
the state
information is data that CAN be recovered by the client
app (i.e.
node name,
client id, pointer or proxy through the passing of an
anchored
object) we
decided not to write this data to persistent storage but
rather
have the
client re-register themselves with the SO by sending theappropriate info
over to the SO (including the proxy back to the client).
My
question is
this: If the SO goes down while a large number of users
are
logged on (lets
say 500) and they all re-register themselves on the
backup SO at
the same
time (passing 3 TextData objects and a proxy to the
client) how
much load
will this cause and will it be enough of a load to hang
the
application?
Another Question is: How does one go about forcing an SO
to
failover for
testing purposes?
Thanks you for your assistance!!
George Vallas
Systems Engineer
EDS Medi-Cal - Systems
3215 Prospect Park Dr.
Rancho Cordova, CA 95670
Phone: (916)636-1183
mailto:[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
Dimitar Gospodinov
Consultant
International Business Corporation
e-mail: [email protected]
<< File: Card for Dimitar Gospodinov >>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
How to build demo versions with Labview ?
Hello,
is it possible to design Labview applications in a kind,
that it is possible to generate "demo versions" of it ? Demo version in the means of feature-limited crippled versions of a full instrumentation software, where SOME hardware access is denied, but you can load and view and analyse data.
Of course it might be useful to compile this demo version with the Labview Application Builder,
What might be the business modell for demo versions:
A hardware manufacturer creates a Labview application which controls the manufacturer's components, and allows instrumentation and data recording. The application is not free but sold for extra money.
As pre-sales benifit, the manufacturer would like to send the (compiled) Labview application to future customers.
Now the problem is, that the customer has not (all) the external devices or PCI/USB devices,
on the other hand the hardware manufacturer does not want to give the "full application" as gilft to the customers.
Now with traditional software development with C++, Java, C#,
either a demo version is gained from the full version by replacing some module with hardware access by modules wth "empty" function body or with function body which return constant values instead of accessing the hardware.
In the world of process industry, usual process control systems may supply "alternative" values if the original device is not available.
What kind of software structure must I build with Labview, to do the same ?
Now the problem with Labview applications is
Labview applications depend on drivers. Drivers depend on hardware.
So if the FULL commercial version of the Labview program accesses a DAQmx driver, GPIB driver or any other hardware driver by a VI,
and often this means that a special manufacturer VI is used in the Labview program which does the actual hardware access,
how to modify the software to make a demo version
a) so that IF the customer buys the hardware and gets the hardware driver, he still does not have the full version
b) so if the customer neither has the hardware nor the driver, he still can run the Labview software and load an view data, push buttons, can execute menu items even can manipulate data ect, can use the manufacturer's VI
Unfortunately, it is no solution just to delete "some" of the VIs with hardware access from the distribution of the demo version, as this just causes error messages during the loading of the (compiled) Labview demo application.
Message Edited by hemmerling on 01-11-2007 12:35 AM
Message Edited by hemmerling on 01-11-2007 12:37 AMThanks alot.
Conditional Disable and Diagram Disable Structures
http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/cond_diagram_disable/
are indeed at least a part of what I wanted.
Anyhow, as such "suspended" VIs are often the *source* of signals,
so there must be an addtional method how to provide "alternative" signals for the demo version,
which does not make the administration / further development the full version too complicated...
For example: The VI for an external signal generator device is disabled, but alternatively it would be nice if the users of the demo version can get a fixed sinus signal instead...
How to do that with Labview and the "Conditional Disable and Diagram Disable Struktures",
and can I test this all even without Labview Application Builder, in the full development system ( so that I don´t need the compiler for frequent checking ) ?
Btw, with what version was this "Conditional Disable and Diagramm Disable" feature introduced ? Is ist already available with Labview 7.0, /.1 ?
Sincerely
Rolf
Maybe you are looking for
-
Latest iTunes XP download Error 6034 fails to run
Latest iTunes XP download Error 6034 fails to run
-
Just got a new 20" iMAC (intel core 2 duo). It replaced an iMAC G4 (15". 800 Mhz). My question may seem dumb but will the same applications run on the new machine? Specifically, Final Cut Express (got it quite awhile back and put it on the G4), also
-
Dear Experts, kindly provide the module parameters to convert CSV to xml messages in SFTP adapter. please find the below my falt structure. ENUMBER,ENAME,SAL,LAST_NAME,FIRST_NAME 1234 , srinu , 10lac , p,srinu 2344 , reee , 2 la
-
Crash when wake from sleep..help!
I've had this problem on and off, but it's become very serious ever since I installed the latest security update. Pretty much every time I open the PB from sleep it crashes...what I mean by that is that the screen is black and there's no response fro
-
Bridge cs2 keeps crashing. Mac g5 2.0 dual
Hi, I'm using Bridge version 1.0.4.6 on a Mac G5 2.0 dual with 2 gigs of RAM. Photoshop cs2 When I'm working in Bridge it crashes at seemingly random moments. The crash rate seems to be increasing in frequency. I can't lock it into any particular pat