VEE Resource Centre

For Full Information on our range of VEE Services, please click here

Questions and Answers

Is it possible to pass a runtime version some parameters from a normal vee program?
Use the '--custom-option' feature provided in VEE. Add the parameters to the command line in the calling program and extract this from the commandLine() function in the called program. See the example for more detailed information. - Question from: Dean Moss, Eurotherm Drives, UK
I've been hacking away at the ActiveX Access automation examples in HP VEE 5 but am having problems with reading table contents into records. I can open and close a mdb but not get at the data. Please can somebody point me in the Location / direction of a basic open mdb,table and read fields example.
Have a look at the ActiveX with Access mini-tutorial which takes an example from scratch to do simple read and write operations.Question From: Paul Rowan, BT Goonhilly Satellite Earth Station
Can somebody tell me if there is a possibility to add a 2dArray like (500,5) to a table with 5 fields in a database without a loop, because its very slow.
You can only add one record at a time - again have a look at the ActiveX with Access mini-tutorial , particularly the example Access 2000 - 6Question From: Orla Poulsen, Intellisolutions
[Without using Matlab how do I] append a value to an array i.e. increasing its length by one?
Just use the concatenate object to append to an array ( I knew it must be useful for something! )
Download an ExampleQuestion from: Lutz Raddatz, Lucent.
Also nice to have would be a generic function to call a VEE function with input arguments and return the results, ... the only way I know to do it is to write all possible functions into a utility and give them numbers, so that the syntax is always the same when calling this utility.
You can do a generic function call by creating the text you want to use as the call then using the formula control input to a formula object to make the call. The example uses an enum to select the function but this could be any method of selecting or creating text. Notes: (a) the output-to-sequence input is to ensure the formula is set before the formula object fires (b) you can only have one output from a call ( if there are several outputs from a UserFunction it returns the upper-most one ) and (c) the result is zero in the absence of an output pin.
Download an ExampleQuestion from: Lutz Raddatz, Lucent.
How do I read all the text from a file without losing any formatting, ( i.e. no data loss ), into an array?
Using a 'From File' object from the I/0 menu and change the transaction to
READ TEXT x TOKEN EXCLUDE:"\n" ARRAY:*
Download ExampleAnswer Supplied By: Mark Roberts, Agilent Technologies.
How do I read values from a comma-separated-values file into VEE and ignore the commas? Specifically, I am interested in reading a name of a test, the lower limit, and the upper limit from a file.
Using a 'From File' object from the I/0 menu and change the transaction to
READ TEXT x TOKEN EXCLUDE:",\n\r" ARRAY:*,3
Download an Example
This will read in all the data from the csv file as in our previous question but this exclude clause will ignore commas, line feeds and carriage returns.
This will put the data into an array 3 columns wide and as many rows as the csv file.Question From: Marc Engle, RF Micro Devices, Inc.