LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

property node outputs wrong values

Solved!
Go to solution

Two tangential questions:

  • Why are you operating your LEDs in such a Rube Goldberg way?
  • Why are you closing the references with every call inside the subVI? (SetCursorPosnMod.vi)
0 Kudos
Message 31 of 43
(2,255 Views)

The LEDs were just a quick test, and I liked red and green, instead of on and off.  I suppose I could go into the properties and change the on/off color, but I was just throwing it together...  I just copeid it from somewhere I had more than two states for an indicator...

 

I originally did not close the references, but the NI support guy suggested trying it, and so far I haven't removed it.

0 Kudos
Message 32 of 43
(2,244 Views)

I was able to replicate the problem. I was also able to fix the problem.

 

First off, I added feedback nodes to keep track if the values had been triggered at all since the first run. The feedback nodes will only change their value on True, so they will always output True once it is written once. I also switched the logic so True is the Not Equal trigger and the boolean goes red on True. This makes more sense to me when I think about it like an error.

Left Right Ever.PNG

The solution: change the Preferred Execution System of your main VI to User Interface. This is in your VI Properties dialog via right-clicking the VI icon. After making this change, I can't get the LEDs to go red.

 

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 33 of 43
(2,227 Views)

@JohnEE wrote:

The LEDs were just a quick test, and I liked red and green, instead of on and off.  I suppose I could go into the properties and change the on/off color,


No need for properties, just use the coloring tool to change the dark green (off) to red (shift-right-click...color tool, pick red...mouse down on the off led, repeat.). Much faster to "throw together" than to add all these duplicate steps. 😄

 

And if you need more than two colors, create a color LED where "the color is the data". Property nodes are relatively expensive and clumsy.

0 Kudos
Message 34 of 43
(2,209 Views)

I'm not able to replicate it on my machine.  I'm running an Intel i7, 16 GB ram, Windows 7.

aputman
0 Kudos
Message 35 of 43
(2,195 Views)

Hi James,

 

I'm glad you could reproduce the behavior!  No one else has, as far as I know.  I also like your feedback node/latch thing.

 

Anyway, when I changed the execution system in the top level vi everything ran much, much slower.  I could set the delay in the main vi to 1 mS and have it running at about 1.5mS/iteration with the "same as caller" execution system.  Then changing to "User Interface" it ran at 95mS/iteration.  Changing the excution system in the SetCursorPosn vi did not solve the problem.

 

What operating system are you using?  Number of bits for labview and operating system?  I'm using Windows 10, 64 bit, Labview 2015, 32 bit.

 

Thanks!

 

John

0 Kudos
Message 36 of 43
(2,145 Views)

Altenbach,

 

Thanks for the tips!  I think I'll find use for the color LED!

 

0 Kudos
Message 37 of 43
(2,136 Views)

James.Morris,

 

Would you please provide details as to what system you are able to reproduce the error on?

-Joe
0 Kudos
Message 38 of 43
(2,083 Views)

Yup, sorry I forgot to respond to this earlier.

I am on Windows 7 Professional SP1, 64-bit, 12GB Ram, i7-3770 with LabVIEW 2014 Professional, 32-bit.

 

Going back, it does seem to run much much slower on my machine as well.

What is the reason for pulling the coordinates of this button? Is there no way to work around this functionality?

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 39 of 43
(2,065 Views)

James.Morris,

 

Could you please let me know the the "RP DAQ http.vi" and "SetCursorPosnMod.vi"  Priority and Preferred Execution system?  I am unable to recreate the issue on my computer.

-Joe
0 Kudos
Message 40 of 43
(2,038 Views)