LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i16 conversion problems

Hi,
 
I've come over a curious problem and I can't see why this is happening, the program I have saves data to a binary file using I16, i developed this using labview 7.1. I need the final data to be in voltages so I obviously have to convert the binary file afterwards. In 7.1 i did this by reading the binary file and seeing that the range of my input voltages range was 10v to -10v and the range of I16 binary i +32768 to -32768. So I thought just multiplying all the data by 10/32768 would give the correct voltages, and it all seemed to work. Then when I transferred it to work where they use 8.0 the conversion brought up some some strange results. Investigating it now seems that the maximum binary number is around 2047 instead of 32768 at 10v? I do not know why this is can anyone let me know or am i doing this completly wrong?  
 
thanks
 
Charlie
0 Kudos
Message 1 of 5
(2,902 Views)
Can you post a picture of the diagram?

Regards,

Wiebe.


0 Kudos
Message 2 of 5
(2,894 Views)
What Daq board are you using?  2047 and I assume it goes to -2048 would be representative of a 12 bit binary number.  2^12 = 4096
0 Kudos
Message 3 of 5
(2,894 Views)
You're right it does seem as if it is 12bit, but I don't know why it has changed, even when I change it to I32 it still comes out with +2047.
I'm using PCI6052E, which is meant to be 16 bit I think.

Thanks

Message Edited by charliedawkes on 02-07-2008 11:35 AM
0 Kudos
Message 4 of 5
(2,879 Views)
Sorry I had signed into the wrong account! I've realised that one of the boards I'm working with is 12bits, thanks for your help
0 Kudos
Message 5 of 5
(2,839 Views)