To simplify things to start I highly recommend using a terminal program to manually write commands and read responses back from the board. You can use something like Comm Operator here for that which is free for 30 days:
It actually has support for our API packet so it will add the AA, 0x02 and the checksum onto the end for you, just select NCD API. That will simplify your life quite a bit getting the commands down.
Please also be sure to post a photo of your hardware setup so we can see exactly how everything is put together.
@TravisE_NCD_Technica Here is my setup. The current sensor is connected but not in use and the relay is triggering an led. Power is supplied from the computer via a second usb.
I think I understand the NCD API structure but I am struggling to communicate with the usb converter and the relay. I will test using the Comm operator.
You might take a look at the samples provided in Alpha Station - Visual Basic (https://ncd.io/alpha), the source code handles all the encoding/decoding for you and uses simple I2C write commands, this might be the best place to start. We use our own libraries to communicate to our devices, they should work in VS C#.
Thanks,
Ryan
@ryan1 I have tried to convert the NCDLib to a .DLL file so that I could call the alpha station functions in my c# program. When I tried to compile I always received many build errors. Is there another way to reference the NCDLib functions?
The NCDLib was written by another engineer that is no-longer with our company, so I am afraid I cannot provide any low-level support. Alpha Station does have complete support for current monitoring, it might help as a reference on how to parse data from the current sensor. Hope this helps.
Ryan