08-08-2014 02:40 AM
Hi!
I have a program that aquiers a signal from the DAQ assist. I have searched here on the forum and on the web, but I can't find a way to implement a tare function. The signal is from a loadcell and therby it would be good if Icould tare the signal to value zero. In the DAQ assist I can calibrate it manually, but i would like to wire this function to a button.
Also I have another problem that shouldn't be hard to solve, but I'm struggling with it. I want a resert function in my labview code so that i can restart the program from the begginging. I have used a case structure with normal and restart enum constant, and wierd them via a tunnel. But it dosn't seems to work. Instead of resetting the program it only stops it
I have attached my code below.
Best Regards Maurlind
Solved! Go to Solution.
08-08-2014 02:55 AM
Hi maurlind,
I have searched here on the forum and on the web, but I can't find a way to implement a tare function.
Well, often this function is called "Zero" - and often this was discussed here in the forum…
You need to store one measurement value (in a shift register) and subtract it from following measurements!
I want a resert function in my labview code so that i can restart the program from the begginging.
Usually you put your main part of the program in a loop that runs until you stop it with a condition of your choice…
08-08-2014 07:19 AM
How do you store a live signal and subtract it?, i have seen people who manage to zero a counting timer, with the help of an array and **bleep** register. But how can I do this with a signal ?
I don't know how to take the signal and subtract it with an offset.
With the reset function:
I know that I have to put a loop in the main part of my code, but I have a hard time to get my condition to work.
Best Regards Maurlind.
08-08-2014 07:25 AM
08-08-2014 09:10 AM
08-08-2014 09:15 AM
08-08-2014 11:56 AM
08-11-2014 02:26 AM
I solved my problem with the tare function, i used a case structure and shift register to store values in it. se picture below.
I haven't found a way to restart my VI yet. I tried to implement something from the community , see this link: https://decibel.ni.com/content/docs/DOC-4747
But that doesn't work for my VI and i don't know why. Could someone explain why doesn't work ?
My goal is to restart my whole VI with a press of a button.
Best Regards Maurlind
08-11-2014 04:01 AM
Hi Maurlind,
I appreciate cleaning up a VI before uploading as a kind of respect for this forum…
You really should read the Design Guidelines in the LabVIEW help!
Could you please attach your VI in LV2011?
My goal is to restart my whole VI with a press of a button.
Usually you need a loop and a case structure wired to your button - similar as shown in that linked example…
08-11-2014 04:24 AM - edited 08-11-2014 04:29 AM
Here is the program in LV 2011
I know my code is a bit off and need alot of polishing, but i have only worked with Labview for a month or two, so I'm still learning.
Sorry for any inconvenience!
Best Regards Marulind