I am working with the MMC IO Device USB-SSR24. I am looking to control 5 different 24V air cylinders and read back 24V read switches based on each cylinder's position. My application is using C# in visual studio 2019. Is there any example code that I could look at to help me with this?
I have used the USB-1024HS from MCC before and have been able to connect and configure each port. If I used this same code it is able to find the device but says the device is already in use. I am not sure what to try next.
Question
Nick8
Hi,
I am working with the MMC IO Device USB-SSR24. I am looking to control 5 different 24V air cylinders and read back 24V read switches based on each cylinder's position. My application is using C# in visual studio 2019. Is there any example code that I could look at to help me with this?
I have used the USB-1024HS from MCC before and have been able to connect and configure each port. If I used this same code it is able to find the device but says the device is already in use. I am not sure what to try next.
Code:
private MccDaq.MccBoard DaqBoard = null;
MccDaq.DaqDeviceDescriptor[] inventory = MccDaq.DaqDeviceManager.GetDaqDeviceInventory(MccDaq.DaqDeviceInterface.Any);
if (inventory.Length > 0)
{
DaqBoard = MccDaq.DaqDeviceManager.CreateDaqDevice(0, inventory[0]);
}
Questions:
An example program to look at would be very helpful. Appreciate any help.
Thanks,
Nick
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now