NI Home > Community > NI Discussion Forums

BreakPoint

Showing results for 
Search instead for 
Do you mean 
Reply
Knight of NI
Knight of NI
tst
Posts: 10,845
0 Kudos

Re: LabVIEW Minutiae (that may bite you someday)

I usually use the OpenG 1D array to string VI, which removes the trailing chars.


___________________
Try to take over the world!
Trusted Enthusiast
chilly_charly
Posts: 3,439

Re : LabVIEW Minutiae (that may bite you someday)

This was discussed here 5 years ago. Still not reported in the help... :smileysad:

 

18685i1E85D8A1A9520CFE

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...        
Trusted Enthusiast
TCPlomp
Posts: 3,097
0 Kudos

Re : LabVIEW Minutiae (that may bite you someday)


chilly charly wrote:

This was discussed here 5 years ago. Still not reported in the help... :smileysad:

 

18685i1E85D8A1A9520CFE


Is your number of elements uneven?

 

Why don't you post a snippet?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Trusted Enthusiast
tbob
Posts: 4,089
0 Kudos

Re : LabVIEW Minutiae (that may bite you someday)

It must be fixed in LV 2009:

 

18797i783B95D92611864B

- tbob

Inventor of the WORM Global
Knight of NI
Dennis_Knutson
Posts: 33,699
0 Kudos

Re : LabVIEW Minutiae (that may bite you someday)

It works in 8.5 and 8.6. I don't have any older versions to test it with.

Trusted Enthusiast
Darin.K
Posts: 3,879
0 Kudos

Re : LabVIEW Minutiae (that may bite you someday)

Behavior in LV6i is same as LV9, which is the expected behavior.  Even number of elements, array is unchanged and comparison is false (equal).  Odd number of elements, last element is dumped by decimation/interleaving, comparison is true (not equal).  Empty array returns false (equal).

Trusted Enthusiast
chilly_charly
Posts: 3,439
0 Kudos

Re : LabVIEW Minutiae (that may bite you someday)

[ Edited ]

OK, Darin and Ton spotted the issue (discussed here in 2005) : with an odd number of elements, the decimate array drops the last element, instead of creating arrays of different lengths. Even if this is the intended behaviour, I still think it is inappropriate.

 

I was wrong : This is now properly documented in the help (seems I didn't read the help til the end before sending my previous post :smileysad: ... or the french version has not been updated... this was the case in LV 8.2. I have to check the last version).

 

@Ton

I don't post snippets because LV9 is not installed on the laptop I'm using presently. :smileywink:

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...        
Knight of NI
Knight of NI
tst
Posts: 10,845

Re: Re : LabVIEW Minutiae (that may bite you someday)

 


chilly charly wrote:

 

@Ton

I don't post snippets because LV9 is not installed on the laptop I'm using presently. :smileywink:


 

Try using the current version of the CCT (see Ton's signature). It can create snippets in all versions from 7.0 and up and there are even ways of importing those snippets in versions earlier than 2009.

 

Oh, and it also still has your name in the about screen. If you're not using it, we're going to have to take it off! :smileywink:


___________________
Try to take over the world!
Trusted Enthusiast
chilly_charly
Posts: 3,439
0 Kudos

Re: Re : LabVIEW Minutiae (that may bite you someday)

 


tst a écrit :

chilly charly wrote: @Ton : I don't post snippets because LV9 is not installed on the laptop I'm using presently. :smileywink:

Try using the current version of the CCT (see Ton's signature). It can create snippets in all versions from 7.0 and up and there are even ways of importing those snippets in versions earlier than 2009.

Oh, and it also still has your name in the about screen. If you're not using it, we're going to have to take it off! :smileywink:


Hmmmmm.... sarcasm ...   

 

:smileyvery-happy:

 

 

 

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...        
Trusted Enthusiast
jcarmody
Posts: 2,037

Re: Re : LabVIEW Minutiae (that may bite you someday)

[ Edited ]

 


tst wrote:

 

[...] there are even ways of importing those snippets in versions earlier than 2009.


Here's a JKI RCF plug-in to extract snippets from a Block Diagram png.  I've attached an llb that I have in my /project folder that'll do the same thing.  I prefer the plug-in over the library because I, too, love to right-click on stuff.

 

Jim

You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice