Jump to content

Question

Posted
  • Trying to communicate with a Measurement Computing SSR-24 relay board. It's just an array of 24 relays and I can't find any examples on how to turn them on/off.
  • Using code that I have from other MCC devices I've tried to configure the ports as outputs (though that is a dip switch function) and I get an error that says "This digital port is not configurable (it's an In/Out Port)". Trying to use DaqBoard.Dout() says the port is not configured correctly for the requested operation. OK. So how do I talk to this thing?
  •  
  • Thanks
  • Dave 

3 answers to this question

Recommended Posts

  • 0
Posted

Hello @Maylar.

If you are developing with the MCC Universal Library for Windows, then the UL Help is the preferred resource for supported functions of each MCC device.

image.png

 

The USB-ERB08 and USB-SSR08 are very similar in design. One uses dry contact relays, and the other uses solid-state relays. 

Take a look at the examples in this link:  https://files.digilent.com/#downloads/example_programs/Product_Specific_Examples/USB-ERB08/

 

Related forum posts:

 

 

 

Regards,

Fausto

 

  • 0
Posted

Another question about using the relay board...

The DaqBoard has been initialized 

DaqBoard = MccDaq.DaqDeviceManager.CreateDaqDevice(boardNum, inventory[boardNum]);

boardNum is zero (only one device is present). No errors doing this so far. The board shows up as BoardNum 0, and BoardName as "USB SSR-24".

I have a method to read the current value of one of the ports:

public int GetDIO_PortValues(MccDaq.DigitalPortType PortName, out short CurrentValue)
        {
            // get the current digital output values of a DIO port
            ULStat = DaqBoard.DIn(PortName, out CurrentValue);

            if (ULStat.Value != ErrorInfo.ErrorCode.NoErrors)
                return ERROR_SSR24;
            else
                return ERROR_NONE;
        }

If I step into this code and break on the first statement, hovering the cursor above DaqBoard gives an error dialog:

image.png.ec9ce8285a8d813141b44a1c81c3b0a6.png

And another that says Invalid board number. This is even before the statement is executed. The code is contained in a class library that I have created, and the DaqBoard should be valid and defined at this point in the scope. Any ideas what could be going on here?

 

Thanks

Dave

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...