LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Button help please

Solved!
Go to solution
Here is my attempt to make the button control.  I am thinking of using the output string to labe the button as it goes through the different cases.
0 Kudos
Message 11 of 22
(1,960 Views)

Don't forget that whenever you have multiple instances of the same code, it might be easier to just use arrays instead.

 

Here's a very quick draft on how you could do things (LabVIEW 8.0). See if it is clear. 🙂

Message 12 of 22
(1,933 Views)

Is there a way to change the dialog string on the button itself? I would like to push the button to start acquiring data and have the button itself list acquiring data.  Is it possible to click Go! and the button itself changes to Acquirring Data and then push it again and it changes to Waiting for Max Temp and then it changes when the max is reached and when pushed again the test is complete and the label goes back to "Start". There are 4 changes of state: Start, Gel, Peak, Stop.  Data is collected between Start and Gel, Between Gel and Peak, and between Peak and Stop.

 

0 Kudos
Message 13 of 22
(1,906 Views)

nicholas03 wrote:

Is there a way to change the dialog string on the button itself?


No, because the button is part on an array. All elements of the array will have the same boolean text.

 

What you could do is make the buttons (incl. array container) transparent and place them on top of the string array, for example.

 

You could also use ring indicators (or disabled controls) instead of buttons. Do mouse-down events, calculate the element from the mouse coordinates and increment the ring array element accordingly.

 

There are many other ways to do all this. 🙂 Try some!

Message 14 of 22
(1,903 Views)
Could you simplify the vi so there is no max or anything gathering data? I would just like to see the way the vi forces the cases to switch from one to another.  If you could show it with one thermocouple it would be easier to understand at the moment.
Message Edited by nicholas03 on 01-02-2009 10:34 PM
0 Kudos
Message 15 of 22
(1,865 Views)
I tried to send the vi as an attachment but was unable. Here is a picture.
I have attatched the modification of your Vi. I hope to use this as a control.
Message Edited by nicholas03 on 01-02-2009 11:18 PM
0 Kudos
Message 16 of 22
(1,856 Views)

nicholas03 wrote:
I tried to send the vi as an attachment but was unable.

Use a different web browser or place the VI in a zip file before attaching.

 

Some browsers (safari, google chrome) cannot handle attachments with two-letter extensions (e.g. *.vi).

Message 17 of 22
(1,843 Views)
I changed the browser to Foxfire.  Did this work?
0 Kudos
Message 18 of 22
(1,832 Views)
Solution
Accepted by topic author nicholas03

(Ah sorry, I did not notice that my downconversion to 8.0 mutilated my nice "in-place" structure into a complicated one-iteration while loop. 😞 This is of course not needed!)

 

So anyway, things are thus way too complicated. Here's a very simple VI that just increments each TC state. Is that what you wanted?

 

(To absolutely eliminate any possibility of a race condition, I also use the new and old values from the event terminal)

 

Message Edited by altenbach on 01-03-2009 06:30 PM
Download All
Message 19 of 22
(1,819 Views)

altenbach a écrit: [...] (To absolutely eliminate any possibility of a race condition, I also use the new and old values from the event terminal [...]
Since you placed the Buttons control inside the event structure, do you think a possibility of race condition still exists (except if the "lock FP until the event complete" default behavior of the event frame was changed) ?

 

Chilly Charly    (aka CC)
0 Kudos
Message 20 of 22
(1,809 Views)