03-05-2010 01:42 PM
03-09-2010 09:50 AM - edited 03-09-2010 09:50 AM
Link: http://forums.ni.com/ni/board/message?board.id=170&message.id=480910
Complicated way to get the boolean to light up if the ring control selection is not zero.
The recommended approach is shown at the top.
03-09-2010 02:09 PM
03-09-2010 09:13 PM
Hmm... how could I get the program to wait for 2 seconds to display a message to the user? (Actually found in a very helpful thread about externally posting User Events to LV)
Not terribly Rubish, but I just would have never thought to do it this way....
03-10-2010 12:54 AM
03-10-2010 03:57 PM - edited 03-10-2010 04:01 PM
Hard way!
Ofcourse 2 frames are almost identical and i especially like the 1 step sequence.
03-10-2010 07:35 PM - edited 03-10-2010 07:37 PM
Interesting way to get the time as DBL:
"Format it as complicated string, then scan if from string with the same format"
A simple "toDBL" would do the same exact thing!
Also notice that this entire construct is duplicated in the other case of the case structure. All that needs to be in the case structure are the two indicators.
(A better way would be to keep two two values in a globally initialized feedback node containing an array of two elements. Convert the boolean to 0,1 and replace the appropriate element. 😉 No indicators, locals, or sequence structures needed!
(spotted here, hey it's even the accepted answer! :D)
03-10-2010 10:02 PM
altenbach wrote:"Format it as complicated string, then scan if from string with the same format"
(spotted here, hey it's even the accepted answer! :D)
You shouldn't be making fun of this guy - his question was clearly misunderstood, which is why the posted code is so obfuscated. He clearly wanted a "tacometer". Attachment should point the original poster in the right direction:
03-12-2010 06:50 AM - edited 03-12-2010 06:52 AM
Not sure what the intent of the code is or why the TRUE constant boolean. There's no need for the Exclusive OR when using a TRUE constant.
Let's not mention the fact that the loop may run once or forever depending on the initial value for sensor. I never use Exprwess VI's, but I'm sure some delay value should be wired to the input.
Simplified version:
Found here http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=482027#M482027
03-12-2010 08:27 AM
Ray.R wrote:I never use Express VI's, but I'm sure some delay value should be wired to the input.
Actually, the delay is configured by the popup Express dialog box. In this case, it was set for 4 seconds, which can be seen through context help, or reopening the configuration dialog.