Keyboard Shortcuts
Likes
- Nodered-Hamradio
- Messages
Search
Re: File Notifications
#file-notice
Added the WO2X modified "Skinny" Bar Chart and made it the default chart. ?The "Fat" Bar Chart is available but not wired in:
Also, on the Tuner Sweep, added a display to show "Tuner Solution" status, with a five-second countdown. ?If you have a segment of frequency set up in the Tuner Genius, set to not tune (because tuning is not required) when the Tuner Sweep sequencer reaches this segment, the "Tuner Solution" will display, "Tuner Solution-None," and after five seconds, will continue to finish the remaining frequency sweep sequence. Here is the new dashboard, with "Skinny" bars and the new Tune Solution status: Here is the "Tuner Solution" status, when it encounters a frequency that has been bypassed in the Tuner. ?After five seconds, the sequencer will move onto the next frequency: Dave, WO2X, will be making a video on his integrated Flex/Tuner Genius/Tuner Sweep flow set. ?That set has been posted in the Tuner Section. Alan. WA9WUD |
File Notifications
#file-notice
Group Notification
The following files and folders have been updated in the Files area of the [email protected] group. By: Alan Blind, WA9WUD <a.alan.blind@...> Description: The following files and folders have been updated in the Files area of the [email protected] group. By: Alan Blind, WA9WUD <a.alan.blind@...> Description: The following files and folders have been uploaded to the Files area of the [email protected] group. By: Alan Blind, WA9WUD <a.alan.blind@...> Description: |
Re: Global variable initialized as number errors as NaN
开云体育Thanks Mick, ? My issue is the other way around. ? ? My Node Red function is sending the Non Numeric to the MOAS II server.? ? I will try adding the node.status anyway to see what is being sent instead of the sequence number. ?? ? I will also try hard coding a number to see if that confirms the problem is truly with my Node Red flow and not the MOAS II server.? Thanks again, George / W7GES? On Jul 6, 2022, at 6:06 PM, Mick - W8BE <w8bea2b2c2@...> wrote:
|
Re: Global variable initialized as number errors as NaN
George,
It sounds like the MOAS II server is not sending the numeric data the function is looking for.? ?Even if you set it to a default number then server may be overwriting the variable with NaN when the msg arrives.? ?You can add this to your code to see the status of the variable on the node in the editor node.status({text:(?"txstatus"?+?variable_a)});
-- Then you will see the status on the function: This may help your debug. Regards Mick, W8BE |
Global variable initialized as number errors as NaN
Hi,
I worked on a couple of flows a few months ago that have been working pretty well. They interface with my YCCC MOAS II switch and N1MM UDP packets to show me the available antennas for each of my SO2R radios and allow me to pick the available antenna combination I would like to use for each radio. I use two flows as I want my dashboard to show available antennas for the left rig and right rig on the appropriate side of the dashboard. The data the flows get from the N1MM UDP packets and the YCCC MOAS II switch are shared between the 2 flows with connectors. I use Node Red global variables to store some of the data that needs to be used between nodes and flows. The YCCC MOAS II switch reads and writes JSON messages. The message that is sent to change antennas uses a sequence number. I don’t think this is a critical number used for any special purpose but there is an informational message the server displays if the message is received out of numerical sequence or if I just hard code a sequence number. For a few months now the flows have worked very well. Whether I change the rig frequency via N1MM or the rig front panel the Node Red flow updates with the correct antenna as shown on the YCCC MOAS II windows client. If I select a different antenna via the client or the Node Red flow the appropriate antenna is changed. About a week ago I started getting a message in the MOAS II server that the sequence number from the Node Red flow was not numeric. I checked the JSON object Sequence Number field in the Node Red information panel and sure enough it confirms that field is NaN (not a number). I double-checked the Config node that initiates the global variable is set to numeric. I checked the flow function nodes where I get the variable, create the json object with the variable and increment the variable (variable + 1, write global variable). I also added a ParseInt to the function variable just before creating the JSON message. I’m still getting the non numeric error from the MOAS II server and the JSON object still shows NaN in the sequence number field when I look at the information pane in Node Red. I thought rebooting the Node Red computer might resolve an issue in case there was some kind of memory leak problem but that didn’t work either. I’m running Node Red on a Debian install using a mini-pc. My other flows have been working before and after this problem with my numeric Global Variable. Have any of you seen a similar problem? 73, George / W7GES This is a pick of the working MOAS II flows, the buttons are all grayed out with no labels when the flow sends non numeric sequence numbers. |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
开云体育Alan and I are continuing to tweak the Auto Tune flow (it is more than just an SWR sweep at this time). Alan is adding ability to show a success/fail for each tuning memory when performing the auto tune. ? Alan, feel free to upload the zip file with my radio and TG XL flows when you are completed. ? The three flows in the zip file will work together as there are link in & out nodes between the flows. You would need to uninstall the Flex Radio and Tuner Genius flows first, deploy, then import the three flows in the zip. ? We’ll come up with some documentation as Alan has standard and customizable features in his auto tune flow. I am going to do a video of it in action as well. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Alan Blind, WA9WUD
Sent: Tuesday, July 5, 2022 6:23 PM To: [email protected] Subject: Re: [nodered-hamradio] File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded #file-notice ? Dave |
Re: Tweaking WA9WUD's Auto Tune flow
Also, another important note on building the HTML string. The "SWR Meter" function builds a text file called, "msg.template" to send the HTML to the Dashboard Template Node. In order to get the dynamic data into the text, I had to use a ?concept called, "Template Literals". You add a "back tick" around the text rather than a set of quotes.? Outside the text build, bring in the JSON object, but it must be converted, first, to a string:?msg.data = JSON.stringify(msg.data); Then, in the text build, between the back ticks, bring in the variable, msg.data with this syntax, var data = ${msg.data} The reverse ticks are very small and hard to see in the function, so be sure to not delete them. Here is a link describing String Literals. On Wed, Jul 6, 2022 at 6:14 AM Alan Blind, WA9WUD via <a.alan.blind=[email protected]> wrote: Dave |
Re: Tweaking WA9WUD's Auto Tune flow
Dave
I like your improvements. ?As you say, this is the fun of Node-Red, open source working together to advance our ideas. ?Also, integrating the Sweep flow into your Tuner Genius Flow, will make easy for other Tuner Genius persons to use the Sweep Flow. The visual presentation easily shows how your G5RV antenna is performing. ?The resonant areas, and the areas needing tune solutions are easy to identify. ?Also, easy to adjust your TG tune solutions with changing seasons. FYI, I found that Stephen had used a Javascript library, called "D3, Data Driven Documents" to build his panadater flow. ?I found that Node-Red had a version 3 of D3 built in. ?There are more advance D3 versions, and if you want to use them in Node-Red, just add the desired D3 library script to a Node-Red Template, Head Section, node. I found this video series concise and easy to learn from, for using D3. ?The bar chart build is in video three: Alan. WA9WUD |
Tweaking WA9WUD's Auto Tune flow
开云体育Hi All, ? I have integrated Alan’s Auto Tune flow with my Flex Radio and Tuner Genius flows. I also have been doing some customization to make it more readable. I made the SWR bars smaller and they appear above the frequency and tuner settings for each tuner memory. I changed the frequency and tuner values to yellow on black. I also changed the SWR numbers at bottom of graph to white on black. ? Thoughts? ? 73 Dave wo2x ? |
Re: OM Module w/Antenna Genius
开云体育I have for another ham but I don’t think I have saved it. I am willing to help you and we can do it remotely. Reach out to me direct.?P.S. I need to order an OM module and 1x2 antenna switch. Going to be adding a high power triplexer and diplexer along with band pass filters to my setup. Expected delivery of triplexer, diplexer and filters is next month. Have to still order the OM and 1x2.? 73 Dave wo2x Sent from my waxed string and tin cans.? On Jul 5, 2022, at 9:17 PM, Patrick Lenn <nwmtech@...> wrote:
|
OM Module w/Antenna Genius
I've got the posted Antenna Genius flow up and running (thank you David), but recently added on the OM Module to it. I'm using to power do some relay switching for a couple antennas. Has anyone integrated the OM module into a flow yet? I'm sure it's possible, but unfortunately this is way above my pay grade.?
W7APM Patrick? |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
开云体育I had one thing misconfigured that wasn’t showing actual tune values for C1, L, and C2. Fixed. Also changed text color to yellow. Here’s my 40 meter sweep. You can see where my antenna is resonant ? ? 73 Dave wo2x ? ? ? From: [email protected] <[email protected]> On Behalf Of Alan Blind, WA9WUD
Sent: Tuesday, July 5, 2022 6:23 PM To: [email protected] Subject: Re: [nodered-hamradio] File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded #file-notice ? Dave ? |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
开云体育OK, I modified Alan’s flow to use Link IN and Link Out nodes to the Flex Radio flow and Tuner Genius flow. I selected starting frequency of 3.525 MHz and ending 3.975 MHz then 9 steps (remember, only 10 memories per antenna per band) ? Here’s the results. On the left is my dashboard showing his flow and results of auto tune and on right is his flow zoomed way out so you can see complexity. Gotta change the red on blue. I think yellow on blue will be much more pleasing to the eyes. ? ? Nice work Alan! ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Alan Blind, WA9WUD
Sent: Tuesday, July 5, 2022 6:23 PM To: [email protected] Subject: Re: [nodered-hamradio] File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded #file-notice ? Dave ? |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
Dave
I agree, links are better then MQTT....in my case, two different machines...so....MQTT. FYI, here are screenshots of the WO2X TG-XL Flow connections to the Sweep Flow: Alan |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
开云体育I think the Link In and Link Out nodes are more efficient. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Alan Blind, WA9WUD
Sent: Tuesday, July 5, 2022 10:17 AM To: [email protected] Subject: Re: [nodered-hamradio] File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded #file-notice ? Using the WO2X Tuner Genius Flow as the TCP stream and polling source, I built a SVG based Flow that will sequence the Tuner Genius through a range of selectable frequency range, and step width, to "Teach" the Tuner Genius the tune solution for each frequency. |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
开云体育I will load it later and play around. Been dealing a bit with health issues so wind up sleeping in the afternoons. Today will force myself to play radio (and Node Red).?Thanks for the work on this. It definitely can be beneficial in several ways, if not just to plot SWR curve of antennas.? I’ll give you a call once I have it running and we can compare notes.? 73 Dave wo2x Sent from my waxed string and tin cans.? On Jul 5, 2022, at 12:56 PM, Alan Blind, WA9WUD <a.alan.blind@...> wrote:
|
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
Thanks, Dave, I was hoping you would take it for a drive. ?Looking forward to your improvements.
For both the SWR Sweep and Tuner Sweep, the step number (var max count) is entered from a dash pull down, then, the freq step is calculated in the "Set TX frequency" function. ?The result is displayed on the dashboard as "Frequency Step". Alan. WA9WUD |
Re: File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded
#file-notice
开云体育Hi Alan, ? Nice work! Question, how do you determine the step sizes per band? ? For example, there are 10 tuning memories per antenna per band up to 4 antennas per band. On 80 meters I use 50 kHz steps starting at 3.525 MHz and the 10th step winds up at 3.975 MHz. On smaller bands like 17 meters you could probably accomplish tuning in 2 to 3 memories with smaller step sizes. Just curious how you deal with that. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Alan Blind, WA9WUD
Sent: Tuesday, July 5, 2022 10:17 AM To: [email protected] Subject: Re: [nodered-hamradio] File /!1! Flows by Type/SVG Based Flows/Tuner Sweep.json uploaded #file-notice ? Using the WO2X Tuner Genius Flow as the TCP stream and polling source, I built a SVG based Flow that will sequence the Tuner Genius through a range of selectable frequency range, and step width, to "Teach" the Tuner Genius the tune solution for each frequency. |