03-23-2010 05:56 AM
I have to control an old instrument with a serie of bytes, in binary format, one at a time.
Whatever I use, (VISA or GPIB 488), there are sent two bytes at a time, instead of one.
Why is that ? How do I prevent that ?
03-23-2010 01:29 PM
03-24-2010 03:39 AM
03-24-2010 09:02 AM - edited 03-24-2010 09:03 AM
In the future, please post your VI rather than a screenshot. You can't debug a screenshot.
Your use of Format Into String is incorrect. If you need to send out the bytes one at a time like that then you should be using the Type Cast function:
You should also use VISA unless you have a good reason to use the lower-level GPIB functions.
03-25-2010 12:57 PM
03-25-2010 01:07 PM
03-25-2010 01:15 PM
Hi
You are right,
normally I use a subvi that transforms a byte into a character because we were used tp pascal it is called Char and accepts a byte as input and delivers a one character string at the output. Inside we use build array and array to string.
Nice test to see what is faster but I guess it will be the typecast.