NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Knight of NI
Knight of NI
Ben
Posts: 16,091

Re: Random Posts (An alternate to side discussions)

[ Edited ]

After mentioning the Turducken architecture that Christian named in this thread my boss told me the following story.

 

A keynote speaker said he was driving down in bayou country when he was passed by a chiken going more than 60 MPH. He tried to speed and over take it but could not so he continued to follow it. Eventually coming to an old shack. He asked the gentleman on the porch if he had seen the chiken and he indicated yes. Inquiring further he asked to find out more.

 

Guy on Porch: My wife son and I all like chiken legs so to avoid problems we bred a chiken with 3 legs.

 

Traveler: how do they taste?

 

Guy on Porch : Don't know can't catch it.

 

 

Ben

 

 

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Knight of NI
Knight of NI
Ben
Posts: 16,091

is using the words "safe" and "scripting" in the same sentance a oxymoron?

[ Edited ]

IN this thread Chistina R wrote;

 


I really hope no one is under the impression that everything you can do with Scripting is safe to do. Many Scripting properties and methods having poor or non-existent error handling. It's a powerful feature but requires careful, responsible use.

 


 

 

To which Steve asked;

 


 

How can we tell if we are being safe and responsible? Can it really hurt anything by putting a constant on the front panel?


 

 

I will now reply;

 

Don't use scripting and only use VIs on the palette.

 

Ben

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Active Participant
GregS
Posts: 478
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentance a oxymoron?


Ben wrote:

IN this thread Chistina R wrote;


I really hope no one is under the impression that everything you can do with Scripting is safe to do. Many Scripting properties and methods having poor or non-existent error handling. It's a powerful feature but requires careful, responsible use.


 

To which Steve asked;


How can we tell if we are being safe and responsible? Can it really hurt anything by putting a constant on the front panel?


 

I will now reply;

 

Don't use scripting and only use VIs on the palette.



By which, I presume you mean that if you need to ask the question, then you can't handle the answer.  Now if only NI would allow the same level of "caution" to apply to XNodes - yes there can be problems, but when written carefully and responsibly they are pretty near safe.

 

Knight of NI
Knight of NI
tst
Posts: 10,301
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentance a oxymoron?


GregS wrote:
Now if only NI would allow the same level of "caution" to apply to XNodes - yes there can be problems, but when written carefully and responsibly they are pretty near safe.

You might wish to take that up with AQ - http://lavag.org/topic/15654-xnode-and-externalnode-help/page__p__94643#entry94643


___________________
Try to take over the world!
Member
alfa1
Posts: 147
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentance a oxymoron?

PLAGIARISM

Romanian prime minister accused of plagiarism
http://www.nature.com/news/romanian-prime-minister-accused-of-plagiarism-1.10845
The president of Hungary, the German defence minister resigned in PhD plagiarism row
http://www.guard...ian.co.uk/world/2011/mar/01/german-defence-minister-resigns-plagiarism
All politicians, the majority of the professors, scientists…are not able to discover anything new, but they looking to buy Academic Titles!
My theories:
My Evolution theory, my Wavefunction theory, my Quantum consciousness theory…are not plagiarism!
http://ferentadrian.tk/
Knight of NI
Knight of NI
Ben
Posts: 16,091
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentance a oxymoron?


GregS wrote:

Ben wrote:

...

I will now reply;

 

Don't use scripting and only use VIs on the palette.



By which, I presume you mean that if you need to ask the question, then you can't handle the answer.  Now if only NI would allow the same level of "caution" to apply to XNodes - yes there can be problems, but when written carefully and responsibly they are pretty near safe.

 


 

I like the Jeff Oldbloom line from jurasic Park;

 

"Just becasue we could, does not mean we should."

 

Ben

 

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Trusted Enthusiast
SteveChandler
Posts: 2,249
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentance a oxymoron?


alfa1 wrote:
PLAGIARISM

Romanian prime minister accused of plagiarism


Well that was pretty random and even more so given the subject. I am starting to think you just get a kick out of messing with this board. Do you even know what LabVIEW is?

=====================
LabVIEW 2012


Active Participant
Christina_R
Posts: 211

Re: is using the words "safe" and "scripting" in the same sentence a oxymoron?

There's an old quote from Greg McKaskle about mucking with unpublished INI tokens: "These obscure features are typically kind of like the attic or basement of a house, not finished out, not very interesting, and potentially harmful."

 

Scripting, in its early days, was like this. It grew to be more useful over time. And even though it's now published, I feel like we didn't "finish" the attic as much as sweep it out and give you a flashlight. If you see a rusty nail, please don't poke it with your finger just because we let you in the attic.

 

I don't know of any problems with using controls/constants in the wrong part of the VI, but I can guarantee the developers didn't write the code expecting controls on the diagram or constants on the panel, so it seems likely that something will go wonky if you insist on writing VIs with them.

 

Trusted Enthusiast
TiTou
Posts: 2,689
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentence a oxymoron?

Christina, you're giving me the opportunity to ask a question I've wanted to ask for a long time : why do we have access to the "default value"  write property for a front panel control when we don't have scripting enabled?

I mean... reading that property is not scripting, it's a normal feature we can use in any app, but writting it... when else than when scripting am I going to need that? I'd like to know how many people have asked on the forum why they get an error when they use it in "non-scripting code".

________________________________________________________________
"Cambiar el mundo, amigo Sancho, que no es locura ni utopía. sino justicia."
Cervantes
Knight of NI
Knight of NI
Ben
Posts: 16,091
0 Kudos

Re: is using the words "safe" and "scripting" in the same sentence a oxymoron?


TiTou wrote:

Christina, you're giving me the opportunity to ask a question I've wanted to ask for a long time : why do we have access to the "default value"  write property for a front panel control when we don't have scripting enabled?

I mean... reading that property is not scripting, it's a normal feature we can use in any app, but writting it... when else than when scripting am I going to need that? I'd like to know how many people have asked on the forum why they get an error when they use it in "non-scripting code".


While waiting to the "right answer" I'll propose...

 

It can be used that are not reserved to run to set the default values. I suspect at some point in time NI may have used the default to be able to support multi-language support by getting them from the default of a control. A VI could go through a bunch of VIs and set the proper text for the target langauge as the defaults.

 

Done with the specualtions.

 

Ben

 

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page