Hi Dave,
Yep that's an improvement. I saw that you use Get Mappings to determine the
array size. Careful there - it's fine if your arrays are not mapped, but if
they are the "dim 1 to" output will not return the size of the array.
Better to use the Get Values object and look at the DimSizes output.
Warren
-----Original Message-----
From: Hamilton Dave-P17257 [mailto:Dave.Hamilton@gdds.com]
Sent: 04 December 2003 15:29
To: VRF
Subject: [vrf] RE: Concat 2 dim arrays
Expanding on Warrens example, here is a version that outputs a real 2D
array.
Dave Hamilton
General Dynamics
-----Original Message-----
From: paul.2.rowan@bt.com [mailto:paul.2.rowan@bt.com]
Sent: Thursday, December 04, 2003 7:25 AM
To: VRF
Subject: [vrf] Concat 2 dim arrays
Ok this is probly easy but ??
I have two, 2d arrays of results eg
1.2,23,24,25,26
1.3,23,24,25,26
1.4,23,24,25,26
1.5,23,24,25,26
and
2.2,23,24,25,26
2.3,23,24,25,26
2.4,23,24,25,26
2.5,23,24,25,26
2.6,23,24,25,26
2.7,23,24,25,26
The requiered output is:-
1.2,23,24,25,26
1.3,23,24,25,26
1.4,23,24,25,26
1.5,23,24,25,26
2.2,23,24,25,26
2.3,23,24,25,26
2.4,23,24,25,26
2.5,23,24,25,26
2.6,23,24,25,26
2.7,23,24,25,26
Ok I could loop them but in reality these can be 58 by 3047 real32 values.
Please can anyone advise.
Thanks
Paul Rowan
BT Goonhilly
b. &v/
'lrË›m Ö›zf#)+-+Z)^(:.Ë›m Ö›zf%yÞ¾XÈj z{dÝ™,j aÉšXX隊[}"r*.ç …i+a j)b b Ö¦z h
ޮߊb""
---
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".
Yep that's an improvement. I saw that you use Get Mappings to determine the
array size. Careful there - it's fine if your arrays are not mapped, but if
they are the "dim 1 to" output will not return the size of the array.
Better to use the Get Values object and look at the DimSizes output.
Warren
-----Original Message-----
From: Hamilton Dave-P17257 [mailto:Dave.Hamilton@gdds.com]
Sent: 04 December 2003 15:29
To: VRF
Subject: [vrf] RE: Concat 2 dim arrays
Expanding on Warrens example, here is a version that outputs a real 2D
array.
Dave Hamilton
General Dynamics
-----Original Message-----
From: paul.2.rowan@bt.com [mailto:paul.2.rowan@bt.com]
Sent: Thursday, December 04, 2003 7:25 AM
To: VRF
Subject: [vrf] Concat 2 dim arrays
Ok this is probly easy but ??
I have two, 2d arrays of results eg
1.2,23,24,25,26
1.3,23,24,25,26
1.4,23,24,25,26
1.5,23,24,25,26
and
2.2,23,24,25,26
2.3,23,24,25,26
2.4,23,24,25,26
2.5,23,24,25,26
2.6,23,24,25,26
2.7,23,24,25,26
The requiered output is:-
1.2,23,24,25,26
1.3,23,24,25,26
1.4,23,24,25,26
1.5,23,24,25,26
2.2,23,24,25,26
2.3,23,24,25,26
2.4,23,24,25,26
2.5,23,24,25,26
2.6,23,24,25,26
2.7,23,24,25,26
Ok I could loop them but in reality these can be 58 by 3047 real32 values.
Please can anyone advise.
Thanks
Paul Rowan
BT Goonhilly
b. &v/
'lrË›m Ö›zf#)+-+Z)^(:.Ë›m Ö›zf%yÞ¾XÈj z{dÝ™,j aÉšXX隊[}"r*.ç …i+a j)b b Ö¦z h
ޮߊb""
---
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".
Many thanks to Georg and Shawn for their examples - according to their own words, looks to me like they started programming API in the early 17th. century!
Thanks again,
Stefan
-----Ursprngliche Nachricht-----
Von: g.nied@gn-software.de [mailto:g.nied@gn-software.de]
Gesendet: Mittwoch, 3. Dezember 2003 17:44
An: VRF
Betreff: [vrf] Privileges (was: CPU Usage)
Stefan,
> Q: how do I get in VEE explicit 'hProcess' and 'hThread' and how to
> use ' PROCESS_SET_INFORMATION'/'THREAD_SET_INFORMATION'?
A:
You have to use
hProcess = OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId)
to get the process handle you need.
The dwDesiredAccess should be PROCESS_QUERY_INFORMATION OR PROCESS_SET_INFORMATION and bInheritHandle=False. dwProcessID is the ID of the process
See attached example!
Warnings:
--------------------------------------------------------------------------------
Use HIGH_PRIORITY_CLASS with care. If a thread runs at the highest priority level for extended periods, other threads in the system will not get processor time. If several threads are set at high priority at the same time, the threads lose their effectiveness. The high-priority class should be reserved for threads that must respond to time-critical events. If your application performs one task that requires the high-priority class while the rest of its tasks are normal priority, use SetPriorityClass to raise the priority class of the application temporarily; then reduce it after the time-critical task has been completed. The important point is that a high-priority thread should execute for a brief time, and only when it has time-critical work to perform.
You should almost never use REALTIME_PRIORITY_CLASS, because this interrupts system threads that manage mouse input, keyboard input, and background disk flushing. This class can be appropriate for applications that "talk" directly to hardware or that perform brief tasks that should have limited interruptions.
-------------------------------------------------------------------------------------------
> '(int32)0' as shown in the example winmm.vee for 'hModule' will bring
> SystemErrorCode '6' ERROR_INVALID_HANDLE - reckon should provide something
> different.
Yes, very different
> Looks like using kernel32.dll separates the man from the boys.....
Thats logical: you grow old while learning to use the API
best regards,
G. Nied
-------------------------------------------------------------------------
Georg Nied - Software-Development - Hansestr.7 - 51149 Cologne - Germany
Tel: +49 2203 9770915 - Fax: +49 2203 9770924 - eMail:info@gn-software.de
-------------------------------------------------------------------------
---
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".