I need an idea. Here's the problem: I have 16 numbers. I need to select 5 of these (using each no more than 1 time), and do a calculation with them, stuff the results in an array that has the quintuplet with the result. I have solved the problem, but I am looping, and it takes a long time.
My old VEE tutor (don't tell I I said 'old' used to drill 'think parallel no loop'.
How do I do this in a better, non-looping way?
Second phase is sorting. I need to sort by some fields. It looks like Vee's sorting capability is not very extensive. To allow sorting I stuffed the values into a coordinate array, then I can at least sort by 1 column. But, there is no way to have secondary sorting criteria, it seems. I tried doing the secondary sort first, then fed the result into the primary sort, but the secondary sort did not seem to survive. Is there a way of doing this?
Lastly, I need to filter. I did not find a good way to filter the large array, dropping rows where certain conditions were fulfilled. I was able to apply some criteria at the calculation stage, before a row was stuffed into the large array. But I do need a way to eliminate rows later also, on certain criteria.
I'd appreciate any help and directions
BTW, the general problem is working out gears. I have 16 gears, there are 5 positions for them... lots of possibilities to arrange them. -- Regards, Rich =================== Richard Kleinhenz Wafer Engineering 845-892-2617 scubaman@us.ibm.com ===================
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
>>All users of VEE are not heavy duty programmers, like many LabView users, >> >> >we are scientists and engineers ... > >I'm trying to parse that sentence. >Are you saying that many LabVIEW users are heavy duty programmers, while VEE >users are not? >Or: both VEE and LabVIEW users are scientists and engineers? > >
I was struggling to make myself understood in few words- then ran off to class. I was saying that many Labview and VEE programmers are users who know just enough to get the job done, they don't program every day and the thought of creating drivers, etc can be formidable.
When I first learned about graphical programming, at a free NI LabView event, I was hooked. They had a very cheap student edition which I bought. I was about to buy a site license when I heard about VEE and met some HP guys who would come to the University. They had such a great deal it blew NI away, I think I got a 40 copy site license and a GPIB board for about $500! I have since updated the license a few times (Vee one lab and now VEE 7.0 (and I am behind again!).
While I was teaching students VEE, one of our big research institutes hired some labView guys so LabView became the standard programming environment at the lab, rendering some of what I do less relevant..
I still think VEE offers good deals to universities but not many know about it as Agilent doesn't seem to go to the conferences academic scientists and engineers go to nor does it advertise in our journals. Agilent should take a lesson from LEGO (latest WIRED) and create an Academic Users Group to learn how to infiltrate universities better so as to create future VEE demand.
Jim
>While I sympathize with you, in some ways the managers of VEE brought this >upon themselves. >Look back at the early days of VEE. There was an academic version that >didn't even have the instrument support. Universities were suppose to use >this for general purpose programming. That version was soon dropped. >Some members of HP/Agilent management didn't see the need for instrument >drivers because Direct IO was available as a work-around. >Meanwhile, NI made sure that there was an instrument driver available for >just about everything. Sometimes the driver wasn't very good. (I looked at >the Plug&Play C-code for a simple DAC. The Init code from Agilent just >about had more instructions than the entire code from NI. And those were >important instructions.) But NI had drivers. >Also, NI made sure that they set up deals with many universities - >introducing LabVIEW to most of the engineering students. Those students >soon became engineers making purchasing decisions. They purchased what they >knew - LabVIEW. > >Face it. HP/Agilent marketing fell flat on its face on this. They assumed >that since HP/Agilent was the market leader in High Performance instruments >that they would be the market leader in graphical language. They were >wrong. Now they are paying the price. > >Les Hammer > > > > >
-- Jim McClymer, PhD Graduate Coordinator Department of Physics and Astronomy University of Maine
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
Here's one idea that might help you get started. It seems inefficient because it generates 2^16 gear combinations and then selects only the ones with just 5 gears, but it does it all with one short loop. It also demonstrates MATLAB's sortrows() function which does the kind of sorting you are looking for. -- Bill Ossmann Philips Ultrasound e-mail: bill.ossmann__AT__philips.com
Richard Kleinhenz <scubaman@us.ibm.com> wrote on 01/30/2006 02:56:57 PM:
> It occurred to me it might be a good idea to attach the the slow looping > program. Note that a lot of filtering on the output array is not there, I > offloaded some into excel post-processing - but am running into problems > there also... > (See attached file: gears.vee) > -- > Regards, > Rich > =================== > Richard Kleinhenz > Wafer Engineering > 845-892-2617 > scubaman@us.ibm.com > =================== > > >
> Richard
> Kleinhenz/Fishkil
> l/IBM@IBMUS To > VRF <vrf@agilent.com>
> 01/30/2006 02:03 cc > PM
> Subject > [vrf] need an idea...
> Please respond to
> Richard
> Kleinhenz/Fishkil
> l/IBM@IBMUS
>
>
> > > > > > I need an idea. Here's the problem: > I have 16 numbers. I need to select 5 of these (using each no more than 1 > time), and do a calculation with them, stuff the results in an array that > has the quintuplet with the result. I have solved the problem, but I am > looping, and it takes a long time. > > My old VEE tutor (don't tell I I said 'old' used to drill 'think > parallel no loop'. > > How do I do this in a better, non-looping way? > > Second phase is sorting. I need to sort by some fields. It looks like > Vee's sorting capability is not very extensive. To allow sorting I stuffed > the values into a coordinate array, then I can at least sort by 1 column. > But, there is no way to have secondary sorting criteria, it seems. I tried > doing the secondary sort first, then fed the result into the primary sort, > but the secondary sort did not seem to survive. Is there a way of doing > this? > > Lastly, I need to filter. I did not find a good way to filter the large > array, dropping rows where certain conditions were fulfilled. I was able > to apply some criteria at the calculation stage, before a row was stuffed > into the large array. But I do need a way to eliminate rows later also, on > certain criteria. > > I'd appreciate any help and directions > > BTW, the general problem is working out gears. I have 16 gears, there are > 5 positions for them... lots of possibilities to arrange them. > -- > Regards, > Rich > =================== > Richard Kleinhenz > Wafer Engineering > 845-892-2617 > scubaman@us.ibm.com > =================== > > > --- > You are currently subscribed to vrf as: scubaman@us.ibm.com > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to > "owner-vrf@it.lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/". > > --- > You are currently subscribed to vrf as: bill.ossmann@philips.com > To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner- > vrf@it.lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw. > com/vrf_archive/".[attachment "gears.vee" deleted by Bill > Ossmann/ANR/MS/PHILIPS]
--- You are currently subscribed to vrf as: rsb@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
I need an idea. Here's the problem: I have 16 numbers. I need to select 5 of these (using each no more than 1 time), and do a calculation with them, stuff the results in an array that has the quintuplet with the result. I have solved the problem, but I am looping, and it takes a long time.
My old VEE tutor (don't tell I I said 'old' used to drill 'think parallel no loop'.
How do I do this in a better, non-looping way?
Second phase is sorting. I need to sort by some fields. It looks like Vee's sorting capability is not very extensive. To allow sorting I stuffed the values into a coordinate array, then I can at least sort by 1 column. But, there is no way to have secondary sorting criteria, it seems. I tried doing the secondary sort first, then fed the result into the primary sort, but the secondary sort did not seem to survive. Is there a way of doing this?
Lastly, I need to filter. I did not find a good way to filter the large array, dropping rows where certain conditions were fulfilled. I was able to apply some criteria at the calculation stage, before a row was stuffed into the large array. But I do need a way to eliminate rows later also, on certain criteria.
I'd appreciate any help and directions
BTW, the general problem is working out gears. I have 16 gears, there are 5 positions for them... lots of possibilities to arrange them. -- Regards, Rich =================== Richard Kleinhenz Wafer Engineering 845-892-2617 scubaman@us.ibm.com ===================
--- To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
>>All users of VEE are not heavy duty programmers, like many LabView >>users, >> >> >we are scientists and engineers ... > >I'm trying to parse that sentence. >Are you saying that many LabVIEW users are heavy duty programmers, >while VEE users are not? >Or: both VEE and LabVIEW users are scientists and engineers? > >
I was struggling to make myself understood in few words- then ran off to class. I was saying that many Labview and VEE programmers are users who know just enough to get the job done, they don't program every day and the thought of creating drivers, etc can be formidable.
When I first learned about graphical programming, at a free NI LabView event, I was hooked. They had a very cheap student edition which I bought. I was about to buy a site license when I heard about VEE and met some HP guys who would come to the University. They had such a great deal it blew NI away, I think I got a 40 copy site license and a GPIB board for about $500! I have since updated the license a few times (Vee one lab and now VEE 7.0 (and I am behind again!).
While I was teaching students VEE, one of our big research institutes hired some labView guys so LabView became the standard programming environment at the lab, rendering some of what I do less relevant..
I still think VEE offers good deals to universities but not many know about it as Agilent doesn't seem to go to the conferences academic scientists and engineers go to nor does it advertise in our journals. Agilent should take a lesson from LEGO (latest WIRED) and create an Academic Users Group to learn how to infiltrate universities better so as to create future VEE demand.
Jim
>While I sympathize with you, in some ways the managers of VEE brought >this upon themselves. >Look back at the early days of VEE. There was an academic version that >didn't even have the instrument support. Universities were suppose to >use this for general purpose programming. That version was soon dropped. >Some members of HP/Agilent management didn't see the need for >instrument drivers because Direct IO was available as a work-around. >Meanwhile, NI made sure that there was an instrument driver available >for just about everything. Sometimes the driver wasn't very good. (I >looked at the Plug&Play C-code for a simple DAC. The Init code from >Agilent just about had more instructions than the entire code from NI. >And those were important instructions.) But NI had drivers. >Also, NI made sure that they set up deals with many universities - >introducing LabVIEW to most of the engineering students. Those >students soon became engineers making purchasing decisions. They >purchased what they knew - LabVIEW. > >Face it. HP/Agilent marketing fell flat on its face on this. They >assumed that since HP/Agilent was the market leader in High Performance >instruments that they would be the market leader in graphical language. >They were wrong. Now they are paying the price. > >Les Hammer > > > > >
-- Jim McClymer, PhD Graduate Coordinator Department of Physics and Astronomy University of Maine
---
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
Here's one idea that might help you get started. It seems inefficient because it generates 2^16 gear combinations and then selects only the ones with just 5 gears, but it does it all with one short loop. It also demonstrates MATLAB's sortrows() function which does the kind of sorting you are looking for. -- Bill Ossmann Philips Ultrasound e-mail: bill.ossmann__AT__philips.com
Richard Kleinhenz <scubaman@us.ibm.com> wrote on 01/30/2006 02:56:57 PM:
> It occurred to me it might be a good idea to attach the the slow > looping program. Note that a lot of filtering on the output array is > not there, I > offloaded some into excel post-processing - but am running into > problems there also... > (See attached file: gears.vee) > -- > Regards, > Rich > =================== > Richard Kleinhenz > Wafer Engineering > 845-892-2617 > scubaman@us.ibm.com > =================== > > >
> Richard
> Kleinhenz/Fishkil
> l/IBM@IBMUS To > VRF <vrf@agilent.com>
> 01/30/2006 02:03 cc > PM
> Subject > [vrf] need an idea...
> Please respond to
> Richard
> Kleinhenz/Fishkil
> l/IBM@IBMUS
>
>
> > > > > > I need an idea. Here's the problem: > I have 16 numbers. I need to select 5 of these (using each no more > than 1 > time), and do a calculation with them, stuff the results in an array > that has the quintuplet with the result. I have solved the problem, > but I am looping, and it takes a long time. > > My old VEE tutor (don't tell I I said 'old' used to drill 'think > parallel no loop'. > > How do I do this in a better, non-looping way? > > Second phase is sorting. I need to sort by some fields. It looks > like Vee's sorting capability is not very extensive. To allow sorting > I stuffed > the values into a coordinate array, then I can at least sort by 1 column. > But, there is no way to have secondary sorting criteria, it seems. I tried > doing the secondary sort first, then fed the result into the primary sort, > but the secondary sort did not seem to survive. Is there a way of > doing this? > > Lastly, I need to filter. I did not find a good way to filter the > large array, dropping rows where certain conditions were fulfilled. I > was able to apply some criteria at the calculation stage, before a row > was stuffed into the large array. But I do need a way to eliminate > rows later also, on > certain criteria. > > I'd appreciate any help and directions > > BTW, the general problem is working out gears. I have 16 gears, there are > 5 positions for them... lots of possibilities to arrange them. > -- > Regards, > Rich > =================== > Richard Kleinhenz > Wafer Engineering > 845-892-2617 > scubaman@us.ibm.com > =================== > > > --- > You are currently subscribed to vrf as: scubaman@us.ibm.com To > subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to > "owner-vrf@it.lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/". > > --- > You are currently subscribed to vrf as: bill.ossmann@philips.com To > subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". > To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". > To send messages to this mailing list, email "vrf@agilent.com". > If you need help with the mailing list send a message to "owner- > vrf@it.lists.it.agilent.com". > Search the "unofficial vrf archive" at "www.oswegosw. > com/vrf_archive/".[attachment "gears.vee" deleted by Bill > Ossmann/ANR/MS/PHILIPS]
--- To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
I need an idea. Here's the problem:
I have 16 numbers. I need to select 5 of these (using each no more than 1
time), and do a calculation with them, stuff the results in an array that
has the quintuplet with the result. I have solved the problem, but I am
looping, and it takes a long time.
My old VEE tutor (don't tell I I said 'old'
parallel no loop'.
How do I do this in a better, non-looping way?
Second phase is sorting. I need to sort by some fields. It looks like
Vee's sorting capability is not very extensive. To allow sorting I stuffed
the values into a coordinate array, then I can at least sort by 1 column.
But, there is no way to have secondary sorting criteria, it seems. I tried
doing the secondary sort first, then fed the result into the primary sort,
but the secondary sort did not seem to survive. Is there a way of doing
this?
Lastly, I need to filter. I did not find a good way to filter the large
array, dropping rows where certain conditions were fulfilled. I was able
to apply some criteria at the calculation stage, before a row was stuffed
into the large array. But I do need a way to eliminate rows later also, on
certain criteria.
I'd appreciate any help and directions
BTW, the general problem is working out gears. I have 16 gears, there are
5 positions for them... lots of possibilities to arrange them.
--
Regards,
Rich
===================
Richard Kleinhenz
Wafer Engineering
845-892-2617
scubaman@us.ibm.com
===================
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".