From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-05-2006 08:22 PM
03-05-2006 11:21 PM
-1073807202 VISA: (Hex 0xBFFF009E) A code library required by VISA could not be located or loaded.
03-06-2006 01:56 AM
03-06-2006 04:40 AM
03-06-2006 11:04 AM
03-06-2006 11:36 AM
I don't know what format the serial port sends data. Is it Hexidecimal, ASCII, String, Decimal?
The simple answer is that everything that travels out of the UART is an ASCII character. The VISA Write function does not do any sort of conversion between what you feed in as a string and what goes out over the serial line.
You may want to take a look at this Serial Quick Reference Guide from NI. If you wire a string constant "ABC" to the input of the function then the data equivalent of "ABC" goes out. If you tell the afore-mentioned string constant to display its contents as hexadecimal ( which would equate to 41 42 43 ) then ABC still goes out exactly as before (it doesn't make any difference how the input constant is displayed). Everything has to be converted to an ASCII string before it is fed to the VISA Write function.
Don't make this too complicated by over-thinking it. It really is quite simple and straight-forward.