> Has anyone tried to split a file into user
> defined sizes using VEE?
Nope.
> Any idea how file splitting programs (such as
> file-split, file chopper etc...) split files
> very quickly?
Yup.
> Is it possible to implement these in VEE?
Yup. Read the entire thing at once (very fast). Use a UInt8 array for the
destination. Then write out the chunk files directly from the array without
moving or re-reading anything. Like:
Read myFile size 100 bytes, write chunks of 20 bytes.
read all
write "myFile.chunk01" Data[00:19]
write "myFile.chunk02" Data[20:39]
write "myFile.chunk03" Data[40:59]
write "myFile.chunk04" Data[60:79]
write "myFile.chunk05" Data[80:99]
The only pain is generating the chunk names and array indecies, but you can
use some clever array trickery to do all that without looping.
-SHAWN-
---
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".
Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0!
> defined sizes using VEE?
Nope.
> Any idea how file splitting programs (such as
> file-split, file chopper etc...) split files
> very quickly?
Yup.
> Is it possible to implement these in VEE?
Yup. Read the entire thing at once (very fast). Use a UInt8 array for the
destination. Then write out the chunk files directly from the array without
moving or re-reading anything. Like:
Read myFile size 100 bytes, write chunks of 20 bytes.
read all
write "myFile.chunk01" Data[00:19]
write "myFile.chunk02" Data[20:39]
write "myFile.chunk03" Data[40:59]
write "myFile.chunk04" Data[60:79]
write "myFile.chunk05" Data[80:99]
The only pain is generating the chunk names and array indecies, but you can
use some clever array trickery to do all that without looping.
-SHAWN-
---
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".
Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0!
One possibility is that there are two identically named functions, one
attached to Main (or another imported library) and a second one in your
imported plot2 library. Vee arbitrarily picks which function to run. The
only way to guarantee which function executes is to include the library name
when referring to a function ie: plot2.readtext(). Your error could be
coming from a different function executing that does not have data on its
input pins.
Effect 2:
Have you checked the timeout values in the vee.io file on your customers
system? The only time I see this error is if the instrument had not
finished with a prior command before it gets to the next one. Also, does
your development URV55 have the same firmware version as your customers?
Just a few ideas of things to check. Hope it helps,
Mike
***********************************************************
Michael N. Asbery (202)404-3014, DSN 754
US Naval Research Laboratory fax (202)404-7661
Code 5733.20 michael.asbery@nrl.navy.mil
4555 Overlook Ave SW
Washington DC 20375
***********************************************************
-----Original Message-----
From: VEE user at ESF GmbH [mailto:vee@esf-gmbh.de]
Sent: Wednesday, February 11, 2004 4:32 AM
To: VRF
Subject: [vrf] Strange effects
Dear all,
My customer and me am running VEE 6.2 on Windows 2000.
EFFECT NUMBER ONE
since a couple of years a VEE program is running at my customers site with
"acceptable VEE problems"; at least production is possible - just the
handling is ....
Now I had the task to add a graphics output to this "stable software". I
prepared the graphics functions in a VEE library and loaded the library
using the function "Import Library" with the parameters
Library Name = "Plot2"
and
File Name = "Plot2_lib.vlb"
The library is in readable format.
In an old user function now the function "From String" READ TEXT x DATE TIME
produces an error message, that it could not be started due to either "end
of file reached" or "no data available". Checking in the development suite
the signal applied to the input of this function shows that a valid date and
time information text string is available.
After disabling the "Import Library" function the "From String" function
works again.
Disabling the "From String" function allowed to prove, that the graphics
works fine.
How can I solve this problem? When I started to develop the main program, I
experienced the same problem with exactly this "From String" function. I ask
AGILENT for help, which I did not get. Why it works now after the final
development steps, I do not know. It seems to depend on the context.
EFFECT NUMBER TWO
This error is self-explained with the attached error message. Before VEE
reaches the SPOLL function, it communicates several times with the related
device. The SW runs perfectly on my development computer, both in runtime
version and in development version. The error happens on the target computer
of my customer.
Any idea to solve this problem?
Dear Agilent representatives: Since I am using VEE I mainly suffer from such
catastrophic side effects (bugs) from VEE. Developing the required
functionality in any standard software like C or Basic is much more
efficient!
My customer is deeply disapointed about these problems.
Dr. Hans-Joachim Fischer
---
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".
Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0!