LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW crash with Boolean Property Nodes

Solved!
Go to solution

I'm working with a set of boolean buttons and when I invoke a property node for the button and try to set the class for the reference input to a NI845X I2C script or configuration LabVIEW 8.0 give me an error tile indicating that:

LabVIEW .exe has incountered an problem and needs to close.  We are sorry for the inconveniences.  I have attached the main panel with the boolean properties that I'm trying to change the class on.

 

The main boolean buttons are in a cluster and loop until one of the buttons is true.  Then that index is passed over so I can extract the button text to drive the state machine.

 

Gary Tyrna

Tahoe RF Semiconductor, Inc.

 

0 Kudos
Message 1 of 9
(3,749 Views)

I'll be blunt . You have a problem.

 

Events happen every time any of your booleans are pressed weather or not you are in the case with the event structure.  So the events keep piling up every time the values change.  Your case structure only fires the event structure when one or more booleans are true so in the case where all but one boolean was false and the user clicked the last one the event fires but must wait for another button to be pressed before the event CODE happens.

 

Read the caveats in Event structures in the LabVIEW help file- and look at some examples.  


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 9
(3,737 Views)

Hi Jeff,

 

Thank you for the quick response to my question.  Just to let you know that LabVIEW crashes without running.  This crash happens during editing and once you change the property to I2C script or config and put the cursor over the property LabVIEW crashes.

 

Gary Tyrna

0 Kudos
Message 3 of 9
(3,734 Views)
since I don't have access to the i2c subroutines (you didn't add them) I can't duplicate your error

"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 9
(3,731 Views)

Jeff,

 

If you can open the VI and go to block diagram and to one of the buttons property's and right click on it.  Go down to "select class", NI845X, then select either of the two NI845x I2C selection.  Once you have selected either of the two classes then low the cursor down to the property select box below the property's error in and out and config in and outputs.  Once there my LabVIEW will error within 5 sec and then close after I click the "OK" button in the error tile.

Try this and see if you get the same results.

 

Gary

0 Kudos
Message 5 of 9
(3,726 Views)

 

Why on earth would you want the Lable text of a LabVIEW boolean control to be of "class> NI845X. anything"

 

It is a Gobject control

 

What2.PNG

 

 

I think what you want to do is LINK the property node to the control Like THUSWhat.PNG


"Should be" isn't "Is" -Jay
Message 6 of 9
(3,707 Views)
Solution
Accepted by topic author ggaryt

ggaryt wrote:

Jeff,

 

If you can open the VI and go to block diagram and to one of the buttons property's and right click on it.  Go down to "select class", NI845X, then select either of the two NI845x I2C selection.  Once you have selected either of the two classes then low the cursor down to the property select box below the property's error in and out and config in and outputs.  Once there my LabVIEW will error within 5 sec and then close after I click the "OK" button in the error tile.

Try this and see if you get the same results.

 

Gary


 

What you are doing makes no sense!

 

Why are you trying to change the property node of a boolean control to an N845x class?  We don't have that class installed, so we aren't going to be able to duplicate your issue.

 

You don't have any kind of reference wire connected into those property nodes.  If you did have a reference wire of the correct class, then perhaps LabVIEW would know what you were trying to do and wouldn't crash on you.

 

If you dropped a blank property node from the Application Control palette and selected the class, would it still crash on you?

What if you disconnected the string wire coming out of the Label.Txt property node, then tried changing the class, would it crash.

Message Edited by Ravens Fan on 01-26-2010 05:27 PM
0 Kudos
Message 7 of 9
(3,706 Views)

Jeff,

 

The reason I did this is that I received a error list that stated that I didn't have the references connected on the properties and I believed that I needed the I2C connection since this was the reference I was using.  If I don't need to connect the reference on the property node to anything then how do I deal with the errors for not connecting them?

 

Gary

0 Kudos
Message 8 of 9
(3,703 Views)

Jeff,

 

Thanks that worked, and I'm able to get the properties I need for the state machine.  Sorry for the hoop jump but I'm just getting my hands around LabVIEW and believed that since the property was requiring a reference I needed to supply the device reference I was working with.  Thanks again!

 

Gary Tyrna

Tahoe RF Semiconductor, Inc.

0 Kudos
Message 9 of 9
(3,699 Views)