Jump to content
Sign in to follow this  
ASTDan

Dumb Open G Question

Recommended Posts

Hello,

Am I crazy blink.gif ? I can't get this to work right. Why isn't my 0 column sorted?

Please help answer what I hope is a dumb question.

Thanks

Dan

Share this post


Link to post
Share on other sites

QUOTE (ASTDan @ Apr 17 2008, 03:52 PM)

Am I crazy :blink: ? I can't get this to work right. Why isn't my 0 column sorted?

It's sorting in alphabetical order, not numerical.

"0", "10", "5" is in correct alphabetical order.

Do you owe me a beer?

Share this post


Link to post
Share on other sites

1 Beer :beer: as ordered. Don't drink it to fast.

Hmmmm. This complicates things. The string array I am actually using has text and numbers, but the first column will always be numeric. Is there an easy way to do this? Right now I am playing around with the pointer array that is coming out of the Sort 2D VI.

Dan

This is what I came up with quick and dirty

Share this post


Link to post
Share on other sites

Thanks Jim!

Just the tip I was looking for.

I am a big open G fan. I tell all my friends about it.

Have a beer on me. :beer:

Dan

Share this post


Link to post
Share on other sites

Dan,

Glad that works for you.

Thanks for spreading the OpenG love :)

Cheers :beer:

-Jim

Share this post


Link to post
Share on other sites

There is a bug in Delete Elements from 2D Array __ogtk.vi where rows are deleted when colums are selected and vice versa.

Reinis

QUOTE (Jim Kring @ Apr 18 2008, 11:34 AM)

Dan,

Glad that works for you.

Thanks for spreading the OpenG love :)

Cheers :beer:

-Jim

Share this post


Link to post
Share on other sites

QUOTE (rkanders @ Apr 18 2008, 10:51 PM)

There is a bug in Delete Elements from 2D Array __ogtk.vi where rows are deleted when colums are selected and vice versa.

Please show us an example.

Share this post


Link to post
Share on other sites

I don't think the bug described above concerning the "Delete Elements from 2D Array " has been fixed. It still returns the wrong deleted elements. The test case posted by Ton is a bad test case due to the nature of the bug. It does not catch the error. I've attached an example that demonstrates error.

Thanks,

Paul

http://sourceforge.n...435&atid=466832

Delete elements from 2D array.vi

Edited by paulmw

Share this post


Link to post
Share on other sites

I agree that this bug hasn't been fixed. However I cannot put my finger on the actual bug.

Changing the number of input columns is of influence of the bug.

Ton

Share this post


Link to post
Share on other sites

I believe the bug is derived by the mismatch in the case structure's state and the enum value being passed to the reorder 2d array. See attached pic.

post-26525-0-18443100-1313021526_thumb.p

Share this post


Link to post
Share on other sites

I believe the bug is derived by the mismatch in the case structure's state and the enum value being passed to the reorder 2d array. See attached pic.

You can track this bug here: ID: 3390029

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.