LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

storing data after certain threshold

hi....iam acquiring data using usb 6008...the thing is i dont hv to store all the acquired data...but i hv to start the storing only when it reaches a certain voltage...can ne one tell me how to do it

 

Shinjita

0 Kudos
Message 1 of 48
(3,096 Views)

Do you only need to store data above the threshold, or record all data once the threshold is crossed?

Jim

LV 2020
0 Kudos
Message 2 of 48
(3,086 Views)

start recording after the particular threshold

0 Kudos
Message 3 of 48
(3,077 Views)

A state machine with producer consumer arcetecture would be how I would begin. Look at the examples to see how each system operates and come back for help.

Tim
GHSP
0 Kudos
Message 4 of 48
(3,060 Views)

I'm not clear which part of the task you are having trouble with.  If it is the data acquisition part, have you looked at the examples that ship with LV?

Jim

LV 2020
0 Kudos
Message 5 of 48
(3,053 Views)

can any one suggest how to build a comparator usin labview...i mean from where can i get an opamp

0 Kudos
Message 6 of 48
(3,021 Views)

Op amps are electriconic devices. In LabVIEW, the comparison functions are on the (surprise!) Comparison palette. Look and you will find such things as Greater Than, Less Than, Equal, etc.

 

I would recomend the basic LabVIEW tutorials.

0 Kudos
Message 7 of 48
(3,016 Views)

@shinjita wrote:

hi....iam acquiring data using usb 6008...the thing is i dont hv to store all the acquired data...but i hv to start the storing only when it reaches a certain voltage...can ne one tell me how to do it

 

Shinjita


Please don't use texting shortcuts here.  Spell out the words.  It doesn't take much effort to type have instead of hv, and any instead of ne.  Shorthand is hard to read and slows down the process of reading and replying.

 

For your problem, use a While loop to capture the data.  Wire the output of your comparison to a case structure.  Put code to store the data in the appropriate case (True or False).  Put a small delay, Wait(ms), in the loop to avoid chewing up 100% CPU time.

 

- tbob

Inventor of the WORM Global
Message 8 of 48
(3,006 Views)

yes i know there are greater than and less than functions but they return the value in boolean whereas i need it in voltage or the input that iam giving

0 Kudos
Message 9 of 48
(2,997 Views)

i need to have the input value since i need to do further analysis on it

0 Kudos
Message 10 of 48
(2,996 Views)