09-05-2014 12:44 AM
I want to write a freuquency value into VISA write buffer. but the integer part and fractional part should be written in different registers.
this is what I've done:
but the array cannot connect with the VISA string. How can I change the configure? Thanks!
09-05-2014 01:03 AM
you should write to each register one by one.
VISA write does not accept clusters.
09-05-2014 06:02 AM
@cantata2014 wrote:
but the array cannot connect with the VISA string. How can I change the configure? Thanks!
That is not an Array, but a cluster that you are sending to VISA Write.
09-05-2014 06:58 AM
I think what you really want is Concatinate Strings.
09-10-2014 02:07 AM
but after combining them by using concatenate string, the string becomes 64bits, isn't it?
09-10-2014 03:55 AM
No, it just becomes a longer string. The number of bits is only a factor for a number that is being expressed as a single binary value. You are creating two commands that each consume 4 bytes. Concatenating them will produce a single string 8 bytes long.
Mike...
09-10-2014 06:49 AM
Just a fair warning. A lot of instruments do not like to recieve commands back-to-back like this. You may need to use two VISA Writes (one for each command) with a small delay in between to allow the device to process each one.