LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in relaying to DAQ

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 ? 

0 Kudos
Message 11 of 21
(2,079 Views)

Device is scifit exercise bike which company refuses to give us any info about the circuit 

0 Kudos
Message 12 of 21
(2,077 Views)

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?

0 Kudos
Message 13 of 21
(2,075 Views)

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

0 Kudos
Message 14 of 21
(2,068 Views)

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)


GCentral
0 Kudos
Message 15 of 21
(2,066 Views)

Can you change the step size for the bike? So each increase goes up by more than 1? Seems like pressing a button 50 times would be annoying for a rider

 

Edit: can you press and hold the button? If so, you could try leaving the switch open for longer and try work out timing for increases?


GCentral
0 Kudos
Message 16 of 21
(2,065 Views)

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 )

0 Kudos
Message 17 of 21
(2,061 Views)

Well every time we press the button it goes .1 level up so going from to level 5 you have to press 50 times 

0 Kudos
Message 18 of 21
(2,058 Views)

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?

 

 

0 Kudos
Message 19 of 21
(2,057 Views)

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...)


GCentral
0 Kudos
Message 20 of 21
(2,044 Views)