Subcategories

  • Analog and digital inputs and outputs, RS-485 and 1-Wire bus for the Raspberry Pi

    33 Topics
    103 Posts
    J

    Hi Phil,

    A colleague has already responded to your query via support. To ensure we have all the information, I’m adding some additional questions here on the forum as well. We need more details from you:

    Has the problem been present since the beginning, or did something change? What has changed? Did the LEDs work well before? What REXYGEN project are you using? Can you try running the "0121-09 Monarco HAT Demo Example" and see if you can trigger the LEDs? What does the system log say?

    Best regards,
    Jan

  • Need help configuring some of the I/O drivers? Problems integrating custom hardware or software?

    9 Topics
    33 Posts
    cechuratC

    @MikeyH Hi Mike,

    I'm glad it works for you šŸ˜‰

    For the "variable decimal point" I would use blocks MUL and CNDR. CNDR configure so it reflects the changing of the gain according to the value.

    You will probably find many other solutions which will lead you to the desired behaviour (e.g. SSW for switching gain according to the value)

    Hope it helps.

    Cheers,
    Tomas

  • Need help configuring some of the I/O drivers? Problems integrating custom hardware or software?

    10 Topics
    22 Posts
    cechuratC

    Hi George,

    we have no specific example on using REXYGEN REST API in C# .NET at the moment. However there is an example with scripts in Python, Bash or Matlab available - see Example 0302-03 REST API Python Bash etc.

    Let us know if it helped to solve your issue.

    Regards,
    Tomas

  • Need help configuring some of the I/O drivers? Problems integrating custom hardware or software?

    5 Topics
    27 Posts
    A

    Hello, @jackobocze.
    REXYGEN Community Forum is predominantly an english speaking forum.
    Please, refrain from using languages other than english. By doing so your comments and contributians can be useful to much larger field of users of this forum.
    In the future we would like to keep this forum english only and that could cause comments and contributions written in other languages to be deleted without prior notice.

  • Need help configuring some of the I/O drivers? Problems integrating custom hardware or software?

    27 Topics
    123 Posts
    J

    Hi everyone,

    @AlexanderH solved his MCP3424 multi-channel reading issue! Here's the key takeaway:

    The Problem

    When reading multiple channels sequentially from MCP3424, conversion time must be respected. Each configuration byte starts a new conversion:

    12-bit: ~5ms (1/240 s) 18-bit: ~267ms (1/3.75 s)

    Table 4.3 from MCP3424 datasheet lists all data rates by resolution.

    The Solution

    One-shot mode + proper timing between configure/read operations:

    For 12-bit (2 channels):

    // Channel 1 - configure + convert + read i2c_bufTx[0] = 0x80; // CH1, one-shot, 12-bit, gain x1 i2c_write_count = 1; i2c_read_count = 0; i2c_ret_fun = I2C(i2c_bus_handle, i2c_chip_address, i2c_bufTx, i2c_write_count, i2c_bufRx, i2c_read_count); Sleep(0.01); // wait for 10 ms before reading the first channel // Data rate: 12bit = 240 SPS, 14bit = 60 SPS, 16bit = 15 SPS, 18bit = 3.75 SPS i2c_write_count = 0; i2c_read_count = 3; i2c_ret_fun = I2C(i2c_bus_handle, i2c_chip_address, i2c_bufTx, i2c_write_count, i2c_bufRx, i2c_read_count); // i2c_bufRx[2] contains configuration byte channel1 = ((i2c_bufRx[0]<<8) + i2c_bufRx[1])/2; i2c_bufTx[0] = 0xA0; // channel 2, one-shot, 12bit, gain 1 (see MCP3424 datasheet) i2c_write_count = 1; i2c_read_count = 0; i2c_ret_fun = I2C(i2c_bus_handle, i2c_chip_address, i2c_bufTx, i2c_write_count, i2c_bufRx, i2c_read_count); Sleep(0.01); // wait for 10 ms before reading the second channel // Data rate: 12bit = 240 SPS, 14bit = 60 SPS, 16bit = 15 SPS, 18bit = 3.75 SPS i2c_write_count = 0; i2c_read_count = 3; i2c_ret_fun = I2C(i2c_bus_handle, i2c_chip_address, i2c_bufTx, i2c_write_count, i2c_bufRx, i2c_read_count); channel2 = ((i2c_bufRx[0]<<8) + i2c_bufRx[1])/2; Important Notes

    Sleep time scales with resolution - 10ms works for 12-bit, 270ms needed for 18-bit

    Original MCP3422 example worked because it read only 1 channel (no channel switching). The message from the previous tick was probably returned as a response.

    Example Update

    REXYGEN example library will be extended with:

    read_mcp3424_12bit.c - 2 channels, 12-bit read_mcp3424_18bit.c - 2 channels, 18-bit

    Big thanks to Alexander for the thorough debugging, testing different timing scenarios, and sharing his working scripts!

    Cheers,
    Jan

  • Integrations of arbitrary devices, general questions

    40 Topics
    111 Posts
    M

    @Jan-Reitinger Hi Jan,

    Thanks for clearign that up.

    I'm not sure what happened with the slave device, it hasn't been changed at all, a mystery! If I find the issue I'll le you know.

    Cheers,
    Mike

  • Need help configuring some of the I/O drivers? Problems integrating custom hardware or software?

    13 Topics
    68 Posts
    M

    @cechurat Hi Tomas,

    Yeah I see, thank you.

    Cheers,
    Mike

  • Driver for Database Access via ODBC connector

    5 Topics
    17 Posts
    cechuratC

    @istratesorin01
    Hi Istrate,

    it seems that the issue is remote access to the Database which is forbidden by default. Have a look at this tutorial: https://webdock.io/en/docs/how-guides/database-guides/remote-access-your-mariadb-mysql-database-ubuntu-focal-mariadb-v106

    Kind regards,
    Tomas

  • Persistent memory

    1
    0 Votes
    1 Posts
    761 Views
    No one has replied