infinitenothing
-
Posts
367 -
Joined
-
Last visited
-
Days Won
15
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by infinitenothing
-
-
Do you have any extra channels? Just throw two in parallel and sum the currents*
*Warning, following electronics advice from random internet patrons may blow up your equipment
- 1
-
-
Is there a reason to use named queues? If I ever want to grab a reference to a queue without a wire, I just call a non-rentrant VI that looks like the attached code
The advantages are:
- One place to setup queue size
- No typos
- Can output multiple refs
What are the advantages of a named queue?
- Dynamic queue selection
- Anything else?
-
What do you mean by "it times out"? What's timing out? what soft of rate do you want from your top VI? What's the motivation for separating the loops?
-
Yes, I agree with the above. You need to unflatten to singles.
I am getting something of this sort from the UDP Read function in labview when I wired an indicator to it: ƒª’?
If you're still having trouble, can you switch that indicator to show you hex (right click, select hex display) and paste a few lines of that here? Even better if we know what the correct values would be (for example, you could send an array of "1.5")
-
Do you ever come back to something super cryptic like "Open draft update node" and are like "WTF does that mean?"
-
I would push the data from C# to LV using UDP or TCP/IP. It should be quite fast.
- 1
-
I'd rather have broken code in the repo than code that works 80% of the time or a missing subVI. My most common "break" is to leave some simple minded wiring TBD as a nice warmup for the next morning
-
Here's another attempt:
https://decibel.ni.com/content/docs/DOC-39565
It's something I think many developers want to do but it's going to need some more infrastructure to make it efficient to run and easy to use.
-
I agree it's a good use case for bookmarks. However, it requires that I remember to check bookmarks at the start. I tend to be in autopilot in the morning.
-
- Popular Post
- Popular Post
Does anyone else break their code so it won't compile at the end of the work day so that the next morning you open your project and follow the broken run arrow to what you were doing?
- 3
-
Thanks for fixing the conflicts. The new package works for me.
-
I don't think flushing events would solve this, e.g. how can you be sure that the last element isn't already in the event queue, meaning that flushing will remove the most important element you actually want to handle.
Letting the timeout case handle the last event can be very neat, and I use this very often in small UIs. Another option is to use a size limited queue used with the lossy enqueue primitive. This can be handled in the timeout case, or in a separate consumer loop depending on the requirements.
/J
You can tell the flush event queue to flush all but the last one. It also outputs the number of events that were flushed so you can use that to detect you're at the end
-
A little bit off topic but if you wrote this sequence in TestStand, you'd already have HTML report generation by default. You'd also have a database, user logins, etc.
-
I've made some things like this. Usually I've used a tab control with the common controls floating over and the custom controls on their designated pages. The tab change event would sometimes hide or re-caption certain common controls. If you want another function, I'd make another tab page fill out the captions and visible flags.
You need to send that over TCPIP? no prob, just send the function and a flattened cluster of the page contents or even send each individual control on value change. Not infinitely expandable or perfectly decoupled but it got the job done.
-
It's really a risk calculation. You have to anticipate what are the odds that down the road you'll want some feature (programmatic access? in place editing?) that globals can't easily provide. If you think you have a 10% chance you'll need that and it would take your 40 hours to pull out all your global and put in a better data type, you'd need to save 4 hours of development time to justify using a global. Maybe you should put in a fudge factor for unknown unknowns. So you'll want to save 40 hours of dev time to justify their use.
-
It's building a listener list (no time stamp) but it's not stored in the internal state of the WFN. It's limited to how many nodes you have (like you said).
-
Your peak detection may work better if you increase the peak width setting. The sine waves are flat at the top and don't look all that peaky if you just look at a narrow section.
-
You're not supposed to get notifications that occur between WON if you set the ignore flag to true are you?
-
You're going to have to give us some more examples of the echo so we know what to look for. If it always looks the same you can use the cross correlation of a "good looking" echo segment vs the waveform you want to search. The x location of the peak of the cross correlation will tell you where they line up (the start of your echo).
-
Inspired by these two threads:
http://lavag.org/topic/4028-notifier-signals-missed/
I was wondering if I could create my own notifier that could switch between references without the history management. Here's what I came up with. I'm not expecting this to be very fast. I thought it was an interesting use case for occurrences.
Test Case:
Obtain Notifier
Wait on notification
I probably need a mechanism to check and retry if the "Latest Message Is Valid" flag is false after the "Wait on occurrence".
Send Notification
-
I didn't realize there was a potential for a memory leak there. That's unfortunate side effect.
On the upside, if you use the history one, you can reenable dynamic dispatch because you don't have to share clones in yourWait For Notification.
-
In my opinion the advanced behavior is the more intuitive way. It's not intuitive (as you saw with the original post) that the order of the senders should matter. We normally don't think about the receivers having an internal memory (we expect the primitives to be stateless except for the ones that enable statefullness). The other primitive (no history) maybe should be on the advanced pallet because it's for the power users that go faster.
-
I looked through that thread and I wonder if there's a better implementation of the notifier behavior like using subscribers or something
drjdpowell: Here's how this affects messages. I defeated the reentrancy by wrapping your "wait for notification" in a nonreentrant subVI. If "data 1" executes first, all messages are delivered nicely. If data 2 fires first (as shown in the image below), you get a timeout (or a deadlock if the timeout is -1)
You can make it so both messages are delivered by using the "Wait on notification with history" primitive in your "wait on notification" VI instead of the normal "wait on notification" primitive.
- 1
RS232 on pxie-8100 RT
in Real-Time
Posted
Maybe the dev board is talking TTL levels and you need a level shifter? Something like this: https://www.sparkfun.com/products/449