LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

12 bit DAC...

I want to send a 12 bit number to a DAC, but as it is an old DAC, it has been designed to work with an 8 bit bus. Therefore, I need to send the 12 bits as 2 separate 8 bit pieces, MSB followed by LSB. I know how to split the 12 bit number, but I'm not sure as to how to send the specific 8 bits. The usual GPIB SEND is useless, as it won't send the pure binary data (as far as I am aware). Does anyone have any ideas? I'm using a g4 mac running LabView 5.1 (GPIB interface).
0 Kudos
Message 1 of 2
(2,844 Views)
If you split the 12 bit number so that you have two 8 bit integers in LabvIEW, you should be able to convert that to flattened string data to send with the GPIB VI's. You can use the "Flatten to String", "byte array to string", or the "type cast" vi depending on your needs. You can create an indicator for the resultant string and view it in HEX to make sure things are the way you need them to be.
0 Kudos
Message 2 of 2
(2,844 Views)