My STRONG recommendation is to use the NI MAX (measurement and automation explorer) program to ensure the NI-VISA drivers can see your device. If you do not see an instrument with a USBx:: type address, NI's VISA drivers aren't being used for the device and PyVISA won't work. You will really need to do a: > import visa Ok, if your device is using USB, this gets a whole bunch more interesting in a hurry. Scope = rm.open_resource('ASR元::INSTR', flow_control=_ASRL_FLOW_XON_XOFF) Reading through the docs, you'll probably need to issue ![]() Then, once you have things working there, try again in python. To be honest, I would try to get it to talk with Termite or Realterm first. ![]() Make sure your communication parameters match in the PC and instrument, besides baud the RS232 are 8bit packets, No Parity Bit, 1-Stop bit, Xon/Xoff software handshake Įnsure you are using a "straight through" serial cable, there is also a "null modem" cable where the wires are internally swapped, they look the same, but function differently
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |