Questions tagged [string]
17 questions
5
votes
1 answer
VHDL: Is it possible to have a "variable length" string in VHDL like in programming languages?
According to the package named Standard in VHDL, the string is actually declared as array of character type where the character type itself is also defined within the package.
Provided that I am filling in a string with data which shall then be…

quantum231
- 11,218
- 24
- 99
- 192
3
votes
2 answers
Algorithm for converting a 128-bit value to a string
I am trying to convert 128-bit data to a string in a PLC, but the PLC has max. 32-bit data. I store 128-bit data as a byte array and bit array. Now I need to convert this value to a string, but the PLC does not have such a variable. I did some…

Burak T.
- 53
- 5
3
votes
2 answers
Error handling strings in a 8051
I am using a Texas Instruments CC1110, which is based on the 8051 microcontroller. I'm programming it using the IAR Embedded Workbench.
I have written a function named sendChar that sends a 8-bit char over the UART interface.
Running the following…

jagjordi
- 356
- 5
- 12
2
votes
1 answer
Power supply to led string
I have some led strings of the type shown:
...which run off two C2032 batteries, so 6V.
I am cutting off the battery cases and connecting them to a 6V supply which is a step down converter on a 12V battery.
However, the led's are overheating and…

rsk
- 21
- 1
2
votes
1 answer
Using string type in VHDL
To make it easier to read a waveform in the testbench, I want to use a signal/variable that is of string type. Basically e.g when I am reading address 0x03 from an SPI device, the string shall say that in words until the SPI transfer is complete.…

quantum231
- 11,218
- 24
- 99
- 192
1
vote
1 answer
My itoa (c++)conversion has a problem
I am receiving a string of data via UART in PIC32, extracting and concatenating two of its bytes, dividing the result by 2, converting the resulting integer to a string and transmitting via i2c to another PIC32. My problem is that this conversion…

Ahmed
- 171
- 1
- 6
1
vote
2 answers
Safely wiring two strands of halloween LED string lights in series?
I have ~20 ft of perimeter to cover and it seems everything sold online is sold by ~10 ft lengths.
I've decided I want to buy two strands of these lights and connect them start to end.
What considerations do I need to take in to account here? I plan…

Capn Jack
- 777
- 1
- 8
- 16
1
vote
3 answers
Adding a const string identifier to at the start location of functions in C
I would like to add a const string identifier at the start locations of few functions. The reason is that I need to maintain a table of function pointers, the indexes of which are to be in a specific order. I need to verify that only the intended…

stenvar
- 731
- 2
- 10
- 17
1
vote
3 answers
What DIY Function Generator is Suitable to drive a Pasco WA-9857 String Vibrator?
Preface... total amateur. I picked up 8 Pasco WA-9857 String Vibrators off of eBay for an art project. I need some way of driving them individually.... cheaply. So I bought a $12 XR2206 Function Generator DIY to try it out. Because that XR2206 kit…

Mark David Gaal
- 35
- 4
1
vote
1 answer
How does to reverse items in an array type
I have a function that works with string passed to it. The string should be defined as "a to b" rather than "a downto b". I have the following questions:
How to find out if the string passed is defined in ascending or descending order?
Why do…

quantum231
- 11,218
- 24
- 99
- 192
0
votes
0 answers
Arcing horn placement on tension string
Why is arcing horn placement on a tension string insulator only placed on the top which only covers the top part of the insulators, while on a suspension insulator string, arcing horns are placed on both sides covering both sides of the insulator?

Axel Witzel
- 1
- 1
0
votes
1 answer
Do the number of corona rings affect corona formation?
Does having two corona rings instead of just one on the line end of a tension insulator string help with corona formation?

Axel Witzel
- 1
- 1
0
votes
1 answer
Driving LED module using CC driver
I am using 3x10 COB LED along with CC driver that is 960 mA, 30-35 V and the connection type is series-parallel. Now the issue is if one of my string fails so will it add up to the remaining LED or no?
I made some calculations too:
1 LED = 30/10 =…

electro_noooobb
- 3
- 1
0
votes
1 answer
Help understanding this equivalent mechanical circuit of a piano string?
I'm studying this article to help with an audio synthesizer design for guitar/piano strings.
Musical strings can be conceptualized as having both vertical (perpendicular to the soundboard/body) and horizontal vibrations. Slight differences in the…

mike
- 123
- 6
0
votes
5 answers
Why is there no resistor in a christmas LED string light?
I bought a bunch of different LED string lights for Haloween and Christmas. All of them are arranged as 2 sets in parallel. They are either 50 or 100 LEDs.
I noticed that most of them have a molded resistor built into each parallel circuit (which I…

rboy
- 103
- 1
- 4