|
I imagine, given the age and solidity of your supply, that the first thing after the fuse is a hefty transformer. Unfortunately if there is a short on the primary (or even secondary) then getting it rewound is going to cost more than your car.
An alternative point of failure (and hopefully more probable) is the rectifier bridge(s) after the transformer. That should be a very cheap fix.
Time to get the ohmmeter out!
So old that I did my first coding in octal via switches on a DEC PDP 8
|
|
|
|
|
My mind immediately though "hmm, you could be onto something..." the danger if the transformer insulation is going is fix it in one place it will pop in another, a possibility I can't lay hands on the link but there was an eBay seller who had a lot of spares for Heath-Kit, Crown and others. Mind you the thing is 'To fix the fault that caused the fault'.
|
|
|
|
|
|
Shocking!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I was thinking more along the lines of a small thermonuclear device.
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
I'd be happy to load you up some fuses, Mike, but primers are awfully expensive and rare right now.
Will Rogers never met me.
|
|
|
|
|
Damn regulations, stumps are awfully hard to get out by hand.
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
Fuses do actually degrade with age, especially if the're rated a bit near the running current. The inlet fuse will almost certainly be subject to many times its rated current for a short interval every time the PSU is powered up (due to charging up capacitors), and each time they'll warm up a bit and lose a bit more "life". Could be your fuse just got too old and tired.
|
|
|
|
|
We have a lot of power glitches here also. We live in a very small community way out in the country. We're so far out they have to pipe sun shine into us!
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
Interesting. When I search digikey for "fuse", I get a lot of them. Filter on product status: active, mounting type: requires holder, fuse type: cartridge, glass and I got over 1600 hits. Most of them can be ordered as single, but some can only be ordered in quantity.
Or, just Google "old car fuses" since cars used to use the same type.
Have to keep this old equipment working. I hope it's just a problem with an old fuse for you and that the fuse blowing is not just a symptom of another issue.
|
|
|
|
|
Hi,
I have to export a 'long' value from an unmanaged dll to a VB app.
I do this with other data types like int and bool, works fine, so I more or less know how do do it.
When I do the same with 'long' the call crashes.
Where there any samples out?
What is so special with 'long'?
Thanks for helping.
With best regards
Gerhard
extern "C" { __declspec(dllexport) long GetCurrentFileRawFilePointer (void); }
extern "C" { __declspec(dllexport) int AwaitCycleDoneFor (uint); }
extern "C" { __declspec(dllexport) bool isDataLinkClear (void); }
First line fails, other worked fine.
Declare Function GetCurrentFileRawFilePointer Lib "GeoMon4D_iMX7.dll" () As Long
Declare Function AwaitCycleDoneFor Lib "GeoMon4D_iMX7.dll" (timeout_ms As UInteger) As Integer
Declare Function isDataLinkClear Lib "GeoMon4D_iMX7.dll" () As Boolean
|
|
|
|
|
GerhardKreuzer wrote: extern "C" { __declspec(dllexport) bool isDataLinkClear (void); } It's because of the extra spaces in this line.
Jeremy Falcon
|
|
|
|
|
It's a long value, but the VB code requires a short - so you will need to zip the value - which should compress it nicely - and then pass it.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Better to remove the zero-bits because they are worthless anyway.
|
|
|
|
|
I used C/C++ many years ago, as I recall that the long in C/C++ is actually 32 bits, the 64 bits type is called long long (or something like it), whereas long in .NET (and many other later languages) is 64 bits (see here[^]).
|
|
|
|
|
Many years ago, true (mostly). Today, at least on the 64 bit Archs (x86-64, arm-64, risc-v-64) I'm aware of, a long is 64 bits, as is a long long. And going back even further in time (8086 days), an int was 16 bits, and longs and long longs were 32 bits.
Keep Calm and Carry On
|
|
|
|
|
so they are referring to kind of physical unit rather than logical unit ...
|
|
|
|
|
In C++ and probably C the type is going to be 'int64_t'. That is exactly 64 bits in all situations.
|
|
|
|
|
If none of the other approaches work, consider a struct.
struct MyLong {
int hi;
int lo;
}
In the C/C++ side you might be able to union with a long, but it is probably more platform portable to explicitly crack the long and assign the two members separately.
|
|
|
|
|
This is the way to do it.
You could cast it, but it's never going to be as easy, safe and predictable as using a struct.
|
|
|
|
|
This is the way. :RemovesHelmet:
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
My other option was
struct MyLong {
int hi;
uint lo;
}
You only need the sign in one spot. Am I right?
:Reapplies Helmet: ?
:Puts Helmet on head and fastens chin strap and lowers visor: ?
What is the opposite of “Removes Helmet” that is just as concise?
|
|
|
|
|
englebart wrote: What is the opposite of “Removes Helmet” that is just as concise? "Equips helmet"?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I like it. Reminds me of a text based dungeon game!
|
|
|
|
|
your reasoning is sound, for one type of bit ordering
I'd personally stick to int and unit test the conversion logic instead
the details are easier to work out that way
|
|
|
|