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,680 Views)
Put a & in front of decimalRead1. It's an output, therefore, passed by reference.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,680 Views)