Q&A Forum

Notifications
Clear all

[Plugin] Extra Outputs HID USB Relay.

41 Posts
6 Users
4 Likes
19.5 K Views
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 

Ill upload this plugin in to the plugin library in the next few days once iv figured out this one bug where relay state can get messed up if you crash "Yourdyno" software then re-open it and it inverts what it thinks is the correct state. (Which is major bug since if your controlling fan or a brake, It will come on the oppsite.)
You have to unplug usb and plug back in to reset states to normal. So should just have to cycle that USB port on plugin load which would be easy in C++. C# doesnt seem to have any good working examples that I can copy, And I really dont want to have to write another dll in C++ then embed it as managed code and use a wrapper to keep it all in a single file. (Not even too sure if reflection will work within the plugin framework since you use it at runtime to unwrap everything)

Its a nice cool 19c here now.

 
Posted : 18/01/2019 12:30 pm
(@julian-edgar)
Posts: 71
Member
 

😀

Maybe on weather we should hear from Norway?

When I was in Norway around this time of year:

 

 
Posted : 18/01/2019 12:34 pm
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 

Looks like bliss, I do like the cold over heat tho. Since you can always put more cloths on but you cant take more off.
And cold air does = more HP for your car and more OC for your computer.

 
Posted : 18/01/2019 12:40 pm
(@mach_1)
Posts: 350
Member
 

LOL Norway they would be freezing their balls off!

In the low  20C's temperatures is ok and liveable , once you're in the 30C's plus forget dyno testing, i overheat more than the vehicles i chassis dyno test/tune. 40C's is beach and beer time. I don't have a air conditioned workshop area.

There is a fine line how cold air makes more power fuel does funny things at -20C and it's a trade off cold air ( snow storm) equates to lower barametric pressure.

Why waste a 1/0 input/output when a simple screen bution can be used to lockup the electric retarder full load ( or 75%  arbitrary number) for a automatic time_out for 30 seconds via software   enough time to get off a vechicle of a chassis dyno????

 

 
Posted : 18/01/2019 1:11 pm
(@mach_1)
Posts: 350
Member
 

LOL Norway they would be freezing their balls off!

In the low  20C's temperatures is ok and liveable , once you're in the 30C's plus forget dyno testing, i overheat more than the vehicles i chassis dyno test/tune. 40C's is beach and beer time. I don't have a air conditioned workshop area.

There is a fine line how cold air makes more power fuel does funny things at -20C and it's a trade off cold air ( snow storm) equates to lower barametric pressure.

Why waste a 1/0 input/output when a simple screen bution can be used to lockup the electric retarder full load ( or 75%  arbitrary number) for a automatic time_out for 30 seconds via software   enough time to get off a vechicle of a chassis dyno????

 

 
Posted : 18/01/2019 1:11 pm
(@mach_1)
Posts: 350
Member
 

Is it me ! Or something wrong with the website doing double posts ?

 
Posted : 18/01/2019 1:14 pm
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 

Just ozzy internet since Julian double posted on page 1.
Id say you either pressed add reply twice because page was slow. Or you hit refresh at some point and it sent a second $_POST;

Or this will end up as a double post and there is something wrong with server.

 
Posted : 18/01/2019 1:39 pm
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 

Here is a early alpha, Managed to fix the bug with states getting inverted by having it remove the driver when ever "YourDyno" software isnt running which is a lot easier to do in C# then to disable and re-enable a USB port.
Every thing is managed with in a single .dll file for installing so no need to mess around installing drivers or anything.

And here is a demo video using a 2 channel one.
https://www.youtube.com/watch?v=a-fME-JAn9A

Supports
USB relay boards I linked in first post.
1/2/4/8 channel.

This post was modified 5 years ago by bmgjet
 
Posted : 19/01/2019 5:21 am
(@mach_1)
Posts: 350
Member
 
Nice work BMGJet ,
I'm the 1st viewer of your
youtube clip!

Don't you like AC/DC ?
This post was modified 5 years ago by Mach_1
 
Posted : 19/01/2019 6:23 am
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 

What makes you think that I dont like AC/DC they are both nice forms of electricity lol.
Here is the song that was playing in the background.
https://www.youtube.com/watch?v=cvyywDE67tY

I have added source code to the plugin library.
Tried to comment as much of the code as I could bother too but iv never been big on commenting.
Should see the source for my UPS software, no a single comment for a bazillion lines of code.

 
Posted : 19/01/2019 6:31 am
(@admin)
Posts: 1404
Member Admin
 

bmgjet, 

Fantastic :-)! 

Yes, it is freezing cold in Norway now, and dark many hours of the day. Nice time of the year to do programming! 

 
Posted : 19/01/2019 11:54 am
(@admin)
Posts: 1404
Member Admin
 

By the way, a nice add-on functionality would be to turn on and off the relays when another parameter (RPM, etc) is above or below a value. 

 
Posted : 19/01/2019 12:04 pm
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 
Posted by: admin

By the way, a nice add-on functionality would be to turn on and off the relays when another parameter (RPM, etc) is above or below a value. 

Yup thats planned to be added once I figure out how to save settings. Iv already got it working based on conditions for my own plugin using just hard set values.

Posted by: admin

bmgjet, 

Fantastic :-)! 

Yes, it is freezing cold in Norway now, and dark many hours of the day. Nice time of the year to do programming! 

Maybe some of that time could be spent on a bit of how to information with the plugin system.
And a plugin generic template which would make it a bit easyer for others to get started.

Something like having functions for a lot of the basic commands already in it but commented out. And using easy to replacenames so starting a new plugin you just have to use the "find and replace" function to change those names to what you want your plugin called.

 
Posted : 19/01/2019 12:24 pm
Jostein reacted
(@admin)
Posts: 1404
Member Admin
 

Save settings is easy. Just go to Properties->Settings in Visual Studio and click to create a properties file. You can then create a settings and they are accessed at Properties.Settings.Default.<name>

You save them by Properties.Settings.Default.Save();. They are automatically loaded on startup, except if you change .dll version number. To get around that, then you use:

if (Properties.Settings.Default.upgradeRequired)
{
    Properties.Settings.Default.Upgrade();
    Properties.Settings.Default.upgradeRequired = false;
}

 

 
Posted : 19/01/2019 1:36 pm
(@bmgjet)
Posts: 362
Dyno Wizard
Topic starter
 

Looks simple enough. Ill have a look though the VM167 plugin you made and recycle some of that code.

Can you change the title of this thread from (WIP) to [Plugin] to match the same sort of layout as others.

 
Posted : 19/01/2019 2:56 pm
Page 2 / 3
Share:
Select your currency
EUR Euro
USD United States (US) dollar