08-03-2017 10:11 PM
My apologies it's NI 9482
the problem is with this current time delay it takes long time going 50 or 60 level up. Is there a way to minimize this delay ?
08-03-2017 10:13 PM
Device is scifit exercise bike which company refuses to give us any info about the circuit
08-03-2017 10:18 PM - edited 08-03-2017 10:23 PM
What about my question, "why do you think you have a delay"? How are you measuring this?
It is not logical that causing that loop to run more times or less times would affect whatever this delay happens to be.
I see your 9482 is a relay module. I'm not sure that would be the best device to use for sending pulse data. A 300 msec wait is a fairly long time in the DAQ world, but that means your relay goes through a cycle every 600 msecs. That doesn't sound horrible, but would tend towards sounding like a chattering relay. I don't know the mechanics of the relays in that module, but perhaps the magnetism levels and inertia in the contacts mean they aren't meant to cycle that fast.
EDIT: Reading the manual http://www.ni.com/pdf/manuals/373948b.pdf
Page 14 says it has 1 switching operation per second.
What kind of circuit is this relay module supposed to be switching?
08-03-2017 10:25 PM
The device was recommended by the NI rep. Well, we want every let's say 20 second it goes to different levels in our machine . Currently it takes so long to change level . I just don't know ho to fix it
08-03-2017 10:26 PM
And now it crystallises slightly.
My guess - the relay is connected to a hacked out control panel of the bike, controlling the "up" arrow or similar.
Since the bike doesn't provide any information, it probably doesn't have any interface? (it would be comical if not sad - their resources page gives a not found error)
08-03-2017 10:28 PM - edited 08-03-2017 10:29 PM
08-03-2017 10:29 PM
You are absolutely right . Two wires comes out from up button of panel if we send signal to those it goes up ( same as down button )
08-03-2017 10:35 PM
Well every time we press the button it goes .1 level up so going from to level 5 you have to press 50 times
08-03-2017 10:36 PM
So the delay you are talking about is what you detect as to what is happening at the bike. So the delay might be something inherent to the bike and not at all caused by LabVIEW or the DAQ card.
How fast can you press an up button 50 times?
08-03-2017 11:25 PM
Perhaps you could try measuring the voltage difference between the wires when the button is not pressed, and then supplying this voltage to the appropriate (1) wire to try and persuade it that they are connected? That would make this a (probably analog) output task that you could handle easily with DAQmx and you might already have suitable hardware.
Alternatively, consider a breadboard and a transistor - you could rig that to a DAQ DigOut or similar and create your own switch, which might be faster than your relay (at a cost of losing all of the significant engineering benefits of the relay, but I'm guessing that relates to handling significant voltages or currents, or rearrangeable topologies, and so on... you just want a button...)