05-25-2013 04:42 PM - edited 05-25-2013 04:44 PM
Where is the sign bit in the 12 bit representation? How are the 12 bits encoded? Are negative values in two's complement? Is there any only documention for this instrument on how to communicate with it?
05-25-2013 04:58 PM
Sorry I meant to ask what you meant by place the string into a new VI diagram. Excuse my ignorance. Would you be able to attach a diagram including manipulating the data aswell.
REALLY APPRECIATE THE HELP.
05-25-2013 05:00 PM
Yes it is a two's complement output.
05-25-2013 05:00 PM
Did you get the string diagram constant? Now simply open a new blank VI and drag the diagram constant to the new diagram. Save the new VI uder a new name and attach it here.
You still have not answered my question about sign and such.
05-25-2013 05:09 PM
Yes sorry I got the first diagram you sent. I think the two's complement take care of the negative numbers?
05-25-2013 05:16 PM
The diagram in post #2 here assumes big endian. You should use unflatten from string instead, where you can set the byte order.
05-25-2013 05:20 PM
Ok thank you. Will I then be able to manipulate each byte as I said earlier.
05-25-2013 05:24 PM
I don't know what you want to "manipulate" and why?
05-25-2013 05:33 PM
I need to manipulate them because I need to left shift the first byte 8 places. That first byte has the four MSBs of a twelve bit ADC output so I have to left shift and then join it to the second byte (the other 8 bits of 12 bit ADC output) so I can then convert it to a signed 16 bit integer by left shifting that four places as this is what I want to plot.
05-25-2013 05:41 PM
Sorry when I said manipulate i just meant rearrange the bits.