04-22-2010 07:59 AM
05-04-2010 07:24 AM - edited 05-04-2010 07:26 AM
I would like to thank newbieboy for a beautiful example of a race condition, which can be found here.
Oh yeah.. I forgot that the snippets have the same feeling towards locals as I do. In the original code, it is a Local Variable of the x=y? indicator that is wired to the Case Statement.
05-04-2010 08:14 AM - edited 05-04-2010 08:17 AM
Ray.R wrote:Oh yeah.. I forgot that the snippets have the same feeling towards locals as I do.
Not if you use the CCT to create them. It manages just fine with both locals and property nodes.
05-04-2010 08:57 AM
Ray.R wrote:I would like to thank newbieboy for a beautiful example of a race condition, which can be found here.
Oh yeah.. I forgot that the snippets have the same feeling towards locals as I do. In the original code, it is a Local Variable of the x=y? indicator that is wired to the Case Statement.
Of course, the beauty is that it's still a race condition even with the reference!
05-04-2010 11:34 AM
tst wrote:
Not if you use the CCT to create them. It manages just fine with both locals and property nodes.
If you use the Code Capture Tool, can you also drag it into the block diagram like the code snippet?
05-04-2010 12:06 PM
Ray.R wrote:If you use the Code Capture Tool, can you also drag it into the block diagram like the code snippet?
No. Code Capture Tool is just a picture. But at least its a real picture and doesn't discriminate against local variables like we do.
05-04-2010 12:44 PM
Ray.R wrote:
If you use the Code Capture Tool, can you also drag it into the block diagram like the code snippet?
Despite what tbob said, you can, at least in modern versions of the CCT. You're welcome to try it with the snippet I posted earlier.
Incidentally, the CCT supports snippet creation for any version from LV 7.0 and up, and there's a JKI plugin which will allow you to import the snippet, which works from 8.2 and up.
You can find the CCT here, with some videos which show the new features. If you want direct access to the videos, they should be here.
05-04-2010 02:16 PM
Well... I'll be a flying swordfish...
It worked.. I'll definitly switch to it.
Thanks tst
05-04-2010 02:52 PM - edited 05-04-2010 02:58 PM
tst wrote:
Ray.R wrote:
If you use the Code Capture Tool, can you also drag it into the block diagram like the code snippet?Despite what tbob said, you can, at least in modern versions of the CCT. You're welcome to try it with the snippet I posted earlier.
Incidentally, the CCT supports snippet creation for any version from LV 7.0 and up, and there's a JKI plugin which will allow you to import the snippet, which works from 8.2 and up.
You can find the CCT here, with some videos which show the new features. If you want direct access to the videos, they should be here.
Sorry. I had no idea CCT would do this. I must have the old version. Switching to the new right now....
Well... I'll be a flying squirrel. It creates snippets.
05-04-2010 03:02 PM
tst wrote:[...] and there's a JKI plugin which will allow you to import the snippet, which works from 8.2 and up.
The JKI RCF plugin is here.