LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone explain (simply) DAQmx IO mapping in LabVIEW


@Kevin_Price wrote:
I'm on the verge of bowing out of this thread. 

I think the spoon feeding needs to be downgraded to bottle feeding. 😄 I am out, this is too tedious.

0 Kudos
Message 31 of 39
(416 Views)

You didn't put much effort into answering the question in my previous reply in this response. You just referred back to a previous comment where you suggested that using parallel loops is best practice for this type of implementation, said "told you so," never explained technically why doing so is good and would be more likely to avoid problems, and then shifted the focus to your grievances with the way I have handled these threads. Not a very helpful response at all.

0 Kudos
Message 32 of 39
(410 Views)

@nathan_t wrote:

You didn't put much effort into ...


You need to quote a small part of the post, otherwise we cannot tell what you are replying to.

0 Kudos
Message 33 of 39
(373 Views)

Dang does someone need bottle feeding?

0 Kudos
Message 34 of 39
(367 Views)

Reread msg #6 where I *did* give reasons for the parallel loops.   The "technical" reason isn't much deeper than what I said -- sometimes interactions with a device might be time consuming.  To allow *other* parts of your code to keep humming along, it can be helpful to isolate those interactions into a dedicated parallel loop.

Attempting to read a digital frequency from a signal that may not be pulsing yet can be one of those time-consuming interactions.  But the good news is that such a timeout error isn't the end of the world.  Yours seems to be a case where you could anticipate the likelihood of a Read timeout and write code that can deal with such errors when they happen.  It'll often be best to set a shorter-than-default timeout value too, to limit the time you have to wait before your loop can iterate and do the next thing (try again?  report error?   restart motor?  etc...)

 

Technical reason: frequency measurement depends on 2 active edges from the incoming pulse train to establish the time interval that determines the signal's frequency.  There is no measurement until both edges occur.   Edge counting merely reports the value of the device's count register when requested.  The count itself is incrementing behind the scenes based on incoming active edges and the device's logic circuitry.  The count *is* the measurement and it's always available, even when the count is 0.

 

Aside: it takes *time* to formulate fairly clear, fairly concise, but fairly useful responses.  Sometimes all I've got is ~5 minutes while waiting for a test system to reboot.  Something like that holds true for a lot of us.   Sometimes it takes a lot of back and forth to finally "get there" as progress and knowledge transfer come in small increments due to time constraints.

 

We are trying, albeit imperfectly, to throw you a lifeline.  So we get frustrated when you seem more interested in sawing at the rope than grasping for the buoy.

 

I'm done with free advice in this thread.  PM me if willing to pay for consulting fees.  Probably only an hour or so if you're well-organized and prepared, two or more if not.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 35 of 39
(356 Views)

@nathan_t wrote:

Dang does someone need bottle feeding?


Aight man good luck with your project, I'm out too.

 


@Kevin_Price wrote:

So we get frustrated when you seem more interested in sawing at the rope than grasping for the buoy.


Holy crap, haven't heard that one before 🤣

0 Kudos
Message 36 of 39
(306 Views)

this is very entertaining...

0 Kudos
Message 37 of 39
(279 Views)

@BertMcMahan wrote:


@Kevin_Price wrote:

So we get frustrated when you seem more interested in sawing at the rope than grasping for the buoy.


Holy crap, haven't heard that one before 🤣


I have not hear that one before either. I like it 🤣

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 38 of 39
(272 Views)

You've managed to alienate all the LV experts - some of them since LV version 1 - in one thread.  And Mr. Price - aka Mr. DAQ - as well.

 

When your car is broken and insist that the mechanic only go on a phone call with a description of "sometimes my car doesn't work", you only get very general answers.  GIGO.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 39 of 39
(224 Views)