LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output current function (frequency) to the very last value in HP8510c

Solved!
Go to solution

Alright, so my bytes were lacking to get the exponential part.

I increased it to 24 and now I get it.

Thanks that was great help!

0 Kudos
Message 11 of 15
(347 Views)

You are having a hard time understanding the fundamentals. Your string is truncated because you are not requesting enough bytes. Each character is a single byte. Increase your byte count to something arbitrary such as 1000. You'll get the full string. No need to try to guess how many bytes are supposed to be returned. The read will stop with an EOI.

0 Kudos
Message 12 of 15
(346 Views)

I am sorry, I do know the theory, I was just being very panicky because I had to get sorted with this problem fast.

0 Kudos
Message 13 of 15
(344 Views)

You may also need to use "%e" in place of "%f" in your format string. That will interpret the string as representing a number in scientific notation.  Look at the detailed help for the Scan from String function and follow the link there to the format string help.

 

Lynn

0 Kudos
Message 14 of 15
(341 Views)

Interestingly, both gave out the same result in this case.

0 Kudos
Message 15 of 15
(337 Views)