LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send a stop to a DAQcard from a pressure transducer

Problem,
i have two while loops running seperatly on a VI.  One controls a motor (hard wired to a DAQcard 6009) and the other recieves volts from a pressure transducer which i have calibrated (also wired to DAQcard 6009).
 
DAQmx read function sends the signal from the transducer to a greater than function.  which im hoping to use the signal from that to stop the port that controls the motor on the DAQcard. 
 
if you have any suggestions they would be greatly recieved
 
DAVE
0 Kudos
Message 1 of 23
(3,842 Views)

Hi dave2222,

to send data between two or more loops you can use queues, notifier or in your case a local variable.

Mike

0 Kudos
Message 2 of 23
(3,841 Views)

hi Mike thanks for your help,

The local variable wont accept the data as it is a scale type not an array. 

I tried attaching the signal to a (data to write) function.

any other suggestions?

 

0 Kudos
Message 3 of 23
(3,837 Views)

Hi dave2222,

can you attach your code. What about Queues?? Did you tried it?

Mike

0 Kudos
Message 4 of 23
(3,834 Views)
hi mike,
 
not sure what my code is?  (assume you mean error code).  Just a broken wire probably cause im sending boolean to the local variable.
 
trying that que function now, no luck so far
 
DAVE
0 Kudos
Message 5 of 23
(3,827 Views)
Hi dave,
can you show a piece of your code?
Mike
0 Kudos
Message 6 of 23
(3,813 Views)

sorry,

dont know what the code is, Do you mean error code?

0 Kudos
Message 7 of 23
(3,808 Views)
Hi dave,

Mike wants to see "code" - that means your program!

Please attach your vi(s) to your message, so we can see what you have done so far...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 23
(3,791 Views)
ok, thanks and sorry for the confusion.
 
cheers
0 Kudos
Message 9 of 23
(3,780 Views)
Hi dave,

no need for locals, globals, queues whatever - just put your two tasks into one loop...

Hint:
Use shift registers for error clusters...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 23
(3,770 Views)