Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Value by reference issue
#8
Thanks everyone for your help! Your push-back caused me to cut the code (not the one shown here, but the bit-banger code) to a minimum.

The problem was a coding error associated with the following statement (not sure what the problem is here, but I can research that tomorrow):

print("adcnum: {0:d}, commandWord: {0:b}, channel: {0:d}".format(adcnum, commandWord, channel))

For some reason, the channel was being printed with the commandWord value.

Thanks again!
Reply


Messages In This Thread
Value by reference issue - by javaben - Jul-30-2021, 10:40 PM
RE: Value by reference issue - by bowlofred - Jul-30-2021, 11:32 PM
RE: Value by reference issue - by javaben - Jul-30-2021, 11:59 PM
RE: Value by reference issue - by javaben - Jul-31-2021, 02:36 AM
RE: Value by reference issue - by bowlofred - Jul-31-2021, 12:22 AM
RE: Value by reference issue - by deanhystad - Jul-31-2021, 12:24 AM
RE: Value by reference issue - by deanhystad - Jul-31-2021, 04:47 AM
RE: Value by reference issue - by javaben - Jul-31-2021, 04:48 AM
RE: Value by reference issue - by deanhystad - Jul-31-2021, 04:59 AM
RE: Value by reference issue - by javaben - Jul-31-2021, 12:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pass by object reference when does it behave like pass by value or reference? mczarnek 2 2,577 Sep-07-2020, 08:02 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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