<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><HTML><HEAD><META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><META content='"MSHTML 4.72.3509.100"' name=GENERATOR></HEAD><BODY bgColor=#ffffff><DIV><FONT color=#000000 size=2>I must use a function from a library of interface board, but this function uses "unsigned short" parameters.</FONT></DIV><DIV><FONT color=#000000 size=2>And HPVEE does not know this data type,so How can I do to use this function ?</FONT></DIV></BODY></HTML>
declarations to "short". This will usually work because in the range 0
to 32,767 "unsigned short" and "short" are the same. If you are talking
about the NI-DAQ library, this is what we have done and it works fine
since you are always sending the function a very small number anyway. If
you need to send a number in the range 32,768 to 65,535 then you should
be able to do it by sending a negative number from VEE that, if
interpreted as unsigned, would equal the number you are wanting, i.e.
send Y = X - 65536 where X is the desired number and Y is the number you
send to the function from VEE.
Dennis Stanley
Airsys ATM Inc.
Vincent Henette wrote:
I must use a function from a library of interface board, but this
function uses "unsigned short" parameters.
And HPVEE does not know this data type,so How can I do to use this
function ?
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.hp.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.hp.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.hp.com".
---------------------------------------------------------------------