ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

blinking front panel object problem

I am recieving data (displacment) and wish to represent this as an arrow blinking up or down depending on the number in the form of an asci packet .When the displacment data is increasing postively the arrow blinks down and the when the displacement is negative the arrow points up ,Even perhaps a 3rd state when the displacment is in a static state it shows simply either no arrows or a flat looking indicator to indicate nothing is moving .Does anybody know a simple way to do this or even better a example vi in V6 or 6.1 ." I have included the Main application, and the blinking arrows vi that I have so far , also included the extract packets vi if any body is interested in this.
Any help greatly appreciated

Regar
ds Brett Scott
Western Australian School of Mines
0 Kudos
Message 1 of 4
(3,347 Views)
Hello Brett,

I understand you're looking to programmatically blink a button between the 'on' and 'off' states. This is a typical request of LabVIEW users, and I have included several answers to this question in the links below.

Thread 1

Thread 2

Thread 3


Thread 4

Thread 5

I hope this helps! Please let me know if you need further assistance.

Best Regards,

Joe Des Rosier
National Instruments
0 Kudos
Message 2 of 4
(3,347 Views)
Hello Joe , Thanks for the info , one more question, I have data starting at maybe 0 , or maybe - 5, or maybe 5 , streaming in packets and how can I make a true or false comparison in that when the load cell is loading it will show true and when unloading show false therefore changing the state of the indicators i have already got, I dont think i can make a peak displcment comparison ?, I am thinking along the lines of a comparison with the lowest number , therfore anything higher will be loading ,But I cant get my head around this either. I have spent many hours thinking about this,still cant see how do do this , Any help appreciated .

Kind regards

Brett Scott
West Australian Shool of Mines
Snr Mining Engineering Technician
Western Australian School of Mines
Curtin University of Technology,
Locked Bag 22, Kalgoorlie Western Australia 6430
Ph: 08 90886159 Fax: 08 9088 6151 Mobile: 0407441251
Web http://research.wasm.curtin.edu.au/
0 Kudos
Message 3 of 4
(3,347 Views)
Brett,

If your apparatus is already preloaded and you want to use the preloaded value as the initial condition reference point, you will want to use either hardware or software offset nulling.

Offset nulling is a method used to offset a series of measurements with respect to an initial condition (I.C.). If your load cell is preloaded, you can reference all future load conditions with respect to the preloaded I.C.

On a hardware level, offset nulling is possible if you're using a SCXI-1520 or PXI-4220. In this case, you will turn on offset nulling in LabVIEW or Measurement Explorer.

On a software level, offset nulling is accomplished by taking a series of initial condition readings from the load cell. Then, you average these readings and subtract this value from all subsequent readings in order to offset the initial preloaded value.

If the load cell is initially unloaded, you will not want to incorporate any form of offset nulling (assuming I.C. voltage reading is 0V).

Now, I understand you're looking to have the arrow blink up and down with loading and unloading, respectively. In order to accomplish this effect, you will want to incorporate a series of Boolean tests. First, measure the initial load reading (with or without the offset nulling dependent on whether/not preloading is existent). Now, use the imbedded LabVIEW Boolean tests to measure whether each subsequent reading is greater than the previous measurement. Make a case structure with the switch condition 'true' and 'false' dependent on the Boolean test condition. In the 'true' condition structure, place the property node coding (answered in your last post) that causes the up arrow to appear. In the 'false' condition structure, place the property node coding for the down arrow to appear. If you need instruction on case structure programming, please refer to this link .

In effect, your program should now display the up and down arrow with respect to increasing and decreasing loading of the load cell.

If you store all of the signal values to an array as they are acquired, you can use the Array Max & Min function to determine the signal value respective to the maximum displacement. To access this function, [right-click] on your LabVIEW block diagram, click [All Functions]>>[Array]>>[Array Max & Min].

I hope this helps. Please let me know if you need further assistance.

Best Regards,

Joe Des Rosier
National Instruments
0 Kudos
Message 4 of 4
(3,347 Views)