Python Forum
Setting Byte Count in pyVisa Read Function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Byte Count in pyVisa Read Function
#1
Hi, I'm trying to manually set a byte count for the read function in pyvisa (e.g. instr.read(), instr.read_raw()).

For LabVIEW users, this is the same as setting the "byte count" in the VISA Read Function (see LabVIEW Help: Visa Read Function). The tool I'm writing to is requiring me to set this to 1 byte. The same is true when I run my commands in NI MAX. If I don't set bytes to read as 1, I get timeout errors.

Does anyone know how to programmatically set this using pyVisa in python?

Thanks a ton Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Function to count words in a list up to and including Sam Oldman45 15 6,556 Sep-08-2023, 01:10 PM
Last Post: Pedroski55
  Row Count and coloumn count Yegor123 4 1,322 Oct-18-2022, 03:52 AM
Last Post: Yegor123
  list.count does not appear to function Oldman45 7 3,907 Mar-16-2021, 04:25 PM
Last Post: Oldman45
  How to use the count function from an Excel file using Python? jpy 2 4,440 Dec-21-2020, 12:30 AM
Last Post: jpy
  'utf-8' codec can't decode byte 0xe2 in position 122031: invalid continuation byte tienttt 12 11,522 Sep-18-2020, 10:10 PM
Last Post: tienttt
  How to call/read function for all elements in my list in python johnny_sav1992 1 2,075 Jul-27-2020, 04:19 PM
Last Post: buran
  python read function FlyingPig 2 4,248 Jul-07-2020, 07:27 AM
Last Post: bowlofred
  'utf-8' codec can't decode byte 0xda in position 184: invalid continuation byte karkas 8 31,657 Feb-08-2020, 06:58 PM
Last Post: karkas
  Issue to read commands with pyvisa losc 0 1,580 Nov-13-2019, 04:10 AM
Last Post: losc
  Read Byte Array from Zigbee coordinator using python jenkins43 3 3,872 Mar-26-2019, 03:03 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020