Sue,
I solved the problem by replacing all "VI_ONs" and "VI_OFFs" in the .fp
file with simple "1" and "0". I figured out that the problem was not in
the source code (in this case compiled to .dll) but in the way VEE reads
the .fp file. I am satisfied with this solution.
I went thru the VXI PNP spec several times (it is actually part of my
job ) and I agree with you - it is sort of lax. You did a good job at
HP. VEE at least can read .fps. I just wanted to say that it would
definitely be nice if it supported all the vpp types.
Regards
Michal
--
Michal.Harhaj@vsb.cz
VSB-Technical University Ostrava
tel: +420 69 6994882
fax: +420 69 6919597
I solved the problem by replacing all "VI_ONs" and "VI_OFFs" in the .fp
file with simple "1" and "0". I figured out that the problem was not in
the source code (in this case compiled to .dll) but in the way VEE reads
the .fp file. I am satisfied with this solution.
I went thru the VXI PNP spec several times (it is actually part of my
job ) and I agree with you - it is sort of lax. You did a good job at
HP. VEE at least can read .fps. I just wanted to say that it would
definitely be nice if it supported all the vpp types.
Regards
Michal
--
Michal.Harhaj@vsb.cz
VSB-Technical University Ostrava
tel: +420 69 6994882
fax: +420 69 6919597
> I have got a Plug&Play instrument driver written in National Instruments
> LabWindows/CVI. I created (also in CVI) a dll out of this driver. I load
> this dll in HP-VEE (3.2) as an I/O PNP instrument. In this instrument I
> call a function that has few parameters including a binary switch with
> VISA values VI_ON and VI_OFF. When I turn things on or off nothing
> happens. All other parameters are changed accordingly to changes made on
> the function panel EXCEPT the binary switch.
Michael,
VEE will only parse and use the #defines that are defined in your PREFIX.h
file, not all the VISA ones too.
In 4.0 VEE will by default handle VI_TRUE, VI_FALSE, VI_NULL, VI_SUCCESS,
and VI_ERROR even if they're not in your .h file.
So I'd say you need to #define those in your PREFIX.h file. Or, upgrade
to 4.0 and use the standard VI_TRUE and VI_FALSE.
Regards,
Sue Wolber
HP VEE engineer