mccdaq / daqhats

MCC DAQ HAT Library for Raspberry Pi
Other
125 stars 88 forks source link

MCC172 examples C data_logger #48

Closed andyhsieh1010 closed 1 year ago

andyhsieh1010 commented 1 year ago

I can execute the example C "logger". I output "10Hz" "sine wave" through a signal generator. I can't see the X-axis units. But I can see "logger.c line179 freq_val value" in the console. I print it on the console.

Please tell me what I might be doing wrong. Thank you

image thumb png 40205df053bfd6cf7cc1f0ca1920f376

freq_val value 2022-11-11 102251

jeffreyg3 commented 1 year ago

Screenshot from 2022-11-14 08-23-34 I'm not seeing that on my Raspberry Pi 4. My guess is you have something not installed or installed wrong for this example. In particular that graph object, the GTKDatabox. I recommend you uninstall your existing daqhats installation, download and install a fresh copy of the daqhats software, review and run the instructions found in the readme.md found in the folder for that example.

andyhsieh1010 commented 1 year ago

OK! I using Raspberry Pi3 Model B OS: Pi OS 64bit I reinstalled all programs. When I install GTKDatabox. This error occurs on the terminal. But I can't solve it. I would like to ask what is your environment? I want to build the same environment as yours on my board. thanks for your help image

jeffreyg3 commented 1 year ago

I've run this on RPi 3b 32 bit, and RPi 4B 32 and 64 bit.

andyhsieh1010 commented 1 year ago

HI @jeffreyg3 It's really a system environment problem. I changed the board from 64bit to 32bit to solve this problem. Thanks for your help mcc172_logger

nwright-mcc commented 1 year ago

This has been fixed for the 64-bit OS.