Hi Benj,
That document is useful thanks.
That is interesting that the return value is the length, we were using pActualLenIn for length.
Regards,
Ben
Search found 22 matches
- Mon Apr 27, 2015 2:48 pm
- Forum: MIAC
- Topic: ECIO_Transmit return codes
- Replies: 5
- Views: 6926
- Mon Apr 27, 2015 11:47 am
- Forum: MIAC
- Topic: ECIO_Transmit return codes
- Replies: 5
- Views: 6926
Re: ECIO_Transmit return codes
Hi Benj, Yes we have been referring to that page. Specifically we were after the return codes from the functions ECIO_Open and ECIO_Transmit. They return an int based on the result of the function but we have no idea what that int means. For ECIO_Transmit we have received 0, 1, 5, and 31 at differen...
- Fri Apr 24, 2015 10:24 am
- Forum: MIAC
- Topic: ECIO_Transmit return codes
- Replies: 5
- Views: 6926
ECIO_Transmit return codes
Hi there,
Do you have a reference anywhere of the return codes from the MIAC to the ECIO_Transmit function?
Regards,
Ben
Do you have a reference anywhere of the return codes from the MIAC to the ECIO_Transmit function?
Regards,
Ben
- Wed Jan 21, 2015 12:53 pm
- Forum: MIAC
- Topic: Using TMR1 disables outputs B and C
- Replies: 3
- Views: 5421
Re: Using TMR1 disables outputs B and C
Hi Martin,
Thanks for the reply, that indeed fixed the problem! Phew, what a PITA that was to find!
Thanks again,
Ben
Thanks for the reply, that indeed fixed the problem! Phew, what a PITA that was to find!
Thanks again,
Ben
- Wed Jan 21, 2015 12:21 pm
- Forum: MIAC
- Topic: Using TMR1 disables outputs B and C
- Replies: 3
- Views: 5421
Using TMR1 disables outputs B and C
I've come across a bit of a strange one, took me a while to pinpoint but I'm sure it is something I'm doing wrong. Basically if I enable transistors B and C and then enable TMR1 both outputs are turned off. Is this a bug or is there a reason for it? B_C_problem.jpg I've attached a file to show this....
- Thu Jan 15, 2015 2:54 pm
- Forum: MIAC
- Topic: MIAC Slave raise event on input high
- Replies: 4
- Views: 5938
Re: MIAC Slave raise event on input high
Hi Benj,
That's great - I've just implemented it and it works really well actually! When the project is finalized I'll drop out checking any of the inputs we aren't using to ensure it is as efficient as possible.
Thanks again for your help!
Regards,
Ben
That's great - I've just implemented it and it works really well actually! When the project is finalized I'll drop out checking any of the inputs we aren't using to ensure it is as efficient as possible.
Thanks again for your help!
Regards,
Ben
- Thu Jan 15, 2015 2:03 pm
- Forum: MIAC
- Topic: MIAC Slave raise event on input high
- Replies: 4
- Views: 5938
Re: MIAC Slave raise event on input high
Thanks Benj, Thank you very much for your reply. I assumed that was the case. I guess the polling will beneficial in the way that it will also be testing the connection with the MIAC. One thing that would be really useful is if I added 8 boolean variables (1 for each input) that are set in a macro t...
- Thu Jan 15, 2015 12:14 pm
- Forum: MIAC
- Topic: MIAC Slave raise event on input high
- Replies: 4
- Views: 5938
MIAC Slave raise event on input high
Hi all, I'm using the MIAC as a slave to a C# application. We have some external buttons hooked up to say input 1 and 2 on the MIAC. When we have one of these inputs go high I want to raise an event in my C# application. What's the best way of communicating the event between the slave firmware and t...
- Thu Aug 07, 2014 11:03 am
- Forum: MIAC
- Topic: PWM duty cycle not adjusting
- Replies: 4
- Views: 6227
Re: PWM duty cycle not adjusting
Thanks, great idea, I hadn't thought of that. Our stepper river board should arrive later so once we have given it a go I'll let you know if we need to go the software route! Thanks again for your help.
Ben
Ben
- Wed Aug 06, 2014 11:49 am
- Forum: MIAC
- Topic: PWM duty cycle not adjusting
- Replies: 4
- Views: 6227
Re: PWM duty cycle not adjusting
Apologies - I wasn't setting the duty and period after enabling the PWM, it appears you have to set these each time you enable. Is there any way of reducing the frequency further, we are using a prescale of 16 to reduce the frequency, but could do with dividing this by 2 again to further reduce the ...
- Fri Aug 01, 2014 12:04 pm
- Forum: MIAC
- Topic: PWM duty cycle not adjusting
- Replies: 4
- Views: 6227
PWM duty cycle not adjusting
Hi, I think I've found a problem with the PWM component. On our project I have the period set to 255, the prescale 16 and the duty cycle 128. This gives me a frequency of 2.92Hz, a period of 3.41us and an on and off of around 171us, so a 50/50 duty cycle. When we scope the output on the MIAC that th...
- Tue Jul 08, 2014 2:37 pm
- Forum: MIAC
- Topic: MIAC with full bridge DC motor
- Replies: 2
- Views: 5075
Re: MIAC with full bridge DC motor
Wow, thanks for your quick response, the new component works great!
All the best,
Ben
All the best,
Ben
- Fri Jul 04, 2014 4:06 pm
- Forum: MIAC
- Topic: MIAC with full bridge DC motor
- Replies: 2
- Views: 5075
MIAC with full bridge DC motor
Hi again, I'm having a bit of trouble with the full bridge motor component. It works fine in simulation but not when downloaded to the MIAC. The transistor outputs aren't turned on at all, so the motor doesn't move. We've had no problem with steppers and half bridge dc motors, so for now I've writte...
- Wed Jun 25, 2014 1:44 pm
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
Re: MIAC in Visual Studio
Thank's so much! That has done the trick, all running as it should now!
Many, many thanks indeed!
Cheers,
Ben
Many, many thanks indeed!
Cheers,
Ben
- Wed Jun 25, 2014 9:40 am
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
Re: MIAC in Visual Studio
Hi Benj, That's great, thanks a lot. The command table is really useful. There's still something amiss... When I run the example 1 found in the archive it all appears fine (with the slave firmware loaded onto the MIAC) but none of the commands work, and the return value I get from the lines.. Dim lR...
- Tue Jun 24, 2014 11:23 am
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
Re: MIAC in Visual Studio
Thanks a lot, that was exactly what was the problem. I'm a little confused. In the example there is a LCD screen, a couple of pots, a key pad and a USB slave. I'm guessing this is an example of using the ECIO setup as a slave. Is this example compatible with the MIAC? I'm now starting a new Flowcode...
- Mon Jun 23, 2014 2:38 pm
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
Re: MIAC in Visual Studio
When I the MIAC in it comes up as "USB device not recognized " is in Device Manager as "Unknown Device"... does the slave firmware need new drivers?
- Mon Jun 23, 2014 2:33 pm
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
Re: MIAC in Visual Studio
That's brilliant, thanks a lot. I've used the info found here to flash the MIAC USB slave firmware. http://www.matrixtsl.com/mmforums/viewtopic.php?f=28&t=13054&p=52871&hilit=miac+slave#p52871 All seemed good untill I tried to send over the "EX6. Basic Slave" flowcode program to the MIAC - I got a "...
- Mon Jun 23, 2014 11:30 am
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
Re: MIAC in Visual Studio
Thanks for the examples.
I've opened Example1 and UserProg, both use ECIO_api.dll, is this the DLL I need to reference? If so, do you have a full list of all the functions in the DLL?
Thanks again,
Ben
I've opened Example1 and UserProg, both use ECIO_api.dll, is this the DLL I need to reference? If so, do you have a full list of all the functions in the DLL?
Thanks again,
Ben
- Mon Jun 23, 2014 11:20 am
- Forum: MIAC
- Topic: MIAC and the .net Framework
- Replies: 2
- Views: 4267
Re: MIAC and the .net Framework
Hi thanks for the quick reply and apologies for the double post, didn't realize topics had to be checked by a moderator
- Mon Jun 23, 2014 10:43 am
- Forum: MIAC
- Topic: MIAC and the .net Framework
- Replies: 2
- Views: 4267
MIAC and the .net Framework
Hi guys,
Apologies if this has been asked before, I've looked a fair bit and not come up with a lot.
I'm trying to communicate with the MIAC using either C#, C++ or VB.net, but I'm not sure which DLL I need to reference to do this. Does anyone know which one it is?
Thanks in advance,
Ben
Apologies if this has been asked before, I've looked a fair bit and not come up with a lot.
I'm trying to communicate with the MIAC using either C#, C++ or VB.net, but I'm not sure which DLL I need to reference to do this. Does anyone know which one it is?
Thanks in advance,
Ben
- Mon Jun 23, 2014 10:28 am
- Forum: MIAC
- Topic: MIAC in Visual Studio
- Replies: 11
- Views: 9886
MIAC in Visual Studio
Hi guys,
Sorry if this has been asked a 1000 times before, I've searched but can't find anything. Basically I want to communicate with the MIAC with either C#, C++ or VB.net, but preferably C#.
Which DLL do I need to reference?
Thanks in advance,
Ben
Sorry if this has been asked a 1000 times before, I've searched but can't find anything. Basically I want to communicate with the MIAC with either C#, C++ or VB.net, but preferably C#.
Which DLL do I need to reference?
Thanks in advance,
Ben