Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an equivalent LV function to the IBRDI DOS function?

I am trying to download waveform data from a Textronix TDS520 oscope into an array. Previously under DOS I used the IBRDI function. The array name and the number of data points were specifiable parameters. How would I duplicate IBRDI's functionality using the available LV functions? (LV v5.1 and Win98).
0 Kudos
Message 1 of 2
(3,415 Views)
Russ,

The ibrdi function is not a direct function call from the NI-488 library. It was, instead, a standard read with an added interpretation step that would coerce the ASCII reads to an integer value. From the LabVIEW environment, you will need to read the data as an ASCII string then use the available string conversion functions to format the data as desired. I find that the String to Byte array is extremely helpful for these sorts of applications. It will take an ASCII string, break it into its bytes and generate an array of u8's corresponding the the text. That is, if I read "Hello" from the GPIB and run it through this function, I will end up with the array (in decimal format) [72, 101, 108, 108, 111]

Ryan Mosley
National Instruments, Applications Enginee
r
http://www.ni.com/exchange
Message 2 of 2
(3,415 Views)