LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting data acquired from byteRead=inp(DATA)

Hi, I have acquired data from parallel port DATA register and would like to know what type of data format is byteRead? In the program, I've defined byteRead as a char and I need to convert byteRead so that I can perform an arthimetric operation (divided it by 256) to obtain a decimal answer.

I've tried Fmt (decimalRead1, "%s<%d", byteRead1); declaring decimalRead1 as a char or int but the error message is it expects a pointer to void.

Can someone help? Thanks.
0 Kudos
Message 1 of 2
(2,793 Views)
Duplicate post. See http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HFORCEKWTID=21570:5&HOID=506500000008000000AA350000&HExpertOnly=&UCATEGORY_0=_46_%24_7_&UCATEGORY_S=0.
0 Kudos
Message 2 of 2
(2,793 Views)