LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert a string to visa resource name


@crossrulz wrote:

@RTSLVU wrote:

@billko wrote:


Only if you have an aversion to coercion.  😉


IMHO: Coercion dots are a sign of failure 😛


That's a little extreme.  Coercion Dots are red flags to issues, not a sign of complete failure.


No it means *I* have failed, regardless of if the program works.

 

I have to add way back when we were moving from LV5.1 to LV 6i there was a lot of things the would no longer work after importing them into LV 6i because coercion of this or that was no longer supported.

 

A lot of code had to be rewritten and I don't want to ever go through that again.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 11 of 17
(1,278 Views)

In newer LabVIEW versions you can use the "Coerce to Type"

 

snip.png

 

It coerces without a dot. 🙂

 

mcduff

Message 12 of 17
(1,266 Views)

@mcduff wrote:

In newer LabVIEW versions you can use the "Coerce to Type"

 

snip.png

 

It coerces without a dot. 🙂

 

mcduff


Is that the application of a "gentle" coercion?  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 13 of 17
(1,263 Views)

@RTSLVU wrote:

@crossrulz wrote:

@RTSLVU wrote:

@billko wrote:


Only if you have an aversion to coercion.  😉


IMHO: Coercion dots are a sign of failure 😛


That's a little extreme.  Coercion Dots are red flags to issues, not a sign of complete failure.


No it means *I* have failed, regardless of if the program works.

 

I have to add way back when we were moving from LV5.1 to LV 6i there was a lot of things the would no longer work after importing them into LV 6i because coercion of this or that was no longer supported.

 

A lot of code had to be rewritten and I don't want to ever go through that again.


Sure, LV 5 -> LV 6 was painful; and so was LV 7 -> LV 8.  But since then upgrades have been smooth.  Personally, I would rather have coercion dots than extra code that does exactly the same thing.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 14 of 17
(1,254 Views)

@paul_cardinale wrote:

@RTSLVU wrote:

 

No it means *I* have failed, regardless of if the program works.

 

I have to add way back when we were moving from LV5.1 to LV 6i there was a lot of things the would no longer work after importing them into LV 6i because coercion of this or that was no longer supported.

 

A lot of code had to be rewritten and I don't want to ever go through that again.


Sure, LV 5 -> LV 6 was painful; and so was LV 7 -> LV 8.  But since then upgrades have been smooth.  Personally, I would rather have coercion dots than extra code that does exactly the same thing.


As long as coercion always works the way you want it to, I guess that's okay...

 

But I don't want to rely on something that is out of my control to always be the same when it's simple to do it the right way from the start.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 15 of 17
(1,249 Views)

@RTSLVU wrote:

As long as coercion always works the way you want it to, I guess that's okay...

But I don't want to rely on something that is out of my control to always be the same when it's simple to do it the right way from the start.


There's some instances where the implicit coercion is faster than an explicit one. I guess it has something to do with memory copies, otherwise it makes no sense. 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 16 of 17
(1,186 Views)

@Yamaeda wrote:

There's some instances where the implicit coercion is faster than an explicit one. I guess it has something to do with memory copies, otherwise it makes no sense. 


The only place I know for sure is when debugging is on (additional hooks needed for the extra wire to be probed, etc).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 17 of 17
(1,184 Views)