03-18-2022 11:56 AM
So basically,
I have I am using two hardware. Arduino and Mcc daq (USB-TC-AI). I have code for arduino and for MCC DAQ combined and no broken VI. Both codes work fine separately. On the MCC DAQ I want to be able to read very very small analog voltage which cannot be read with the arduino because of poor resolution. Now the good thing about arduino, I can be able to generate PWM whereas the MCC DAQ (USB-TC-AI) can't do that.
The can run separately fine. So all I want to is to combine their Their front panels on one main front panel. How do you do that? Can someone please help. I have attached my VIs.
Arduino and ULx combo code.VI is basically what I tried to do and did not work.
If you don't have MCC DAQ hardware, you can use another hardware of your choice. But the idea is just to see data acquisition of both on one main front panel.
I look forward to hearing from you guys.
Thanks in advance for your help.
03-18-2022 12:08 PM
Hi GRCK,
@GRCK5000 wrote:
So all I want to is to combine their Their front panels on one main front panel. How do you do that? Can someone please help. I have attached my VIs.
Arduino and ULx combo code.VI is basically what I tried to do and did not work.
Thanks in advance for your help.
What do you mean by "does not work"? Is the VI stuck somewhen? Do you get wrong data? Does Windows get killed by a BSOD? Does the computer burn down?
There is a big DATAFLOW problem in your combo VI. As you surely did the basic LabVIEW training, as offered at the top of the LabVIEW board, you know by now how to detect and solve that DATAFLOW problem!
Hint: when you want to run things in parallel, then you need to program them in parallel. As soon as there is a DATAFLOW dependency between those "wannabe parallel things" they cannot run in parallel anymore…
03-18-2022 12:17 PM
I kept getting an error when I create local variable from one loop and place it on the other loop
03-18-2022 12:24 PM
What you need to do is to create a local variable for the stop button in order to pass the stop order into the second loop. I do not have the drivers for Mcc daq, so, please take a look at the image attached.
03-18-2022 12:28 PM
Hi GRCK,
@GRCK5000 wrote:
I kept getting an error when I create local variable from one loop and place it on the other loop
So you get an error, but you are unable to explain WHICH error you got?
Again: did you do those training courses offered at the top of the LabVIEW board?
(Hint: Have you ever heard of mechanical modes of those buttons?)
03-18-2022 03:30 PM
Right here. I attached the error that I am getting.
03-18-2022 03:31 PM
Hi Adriana,
I tried that and kept getting the attached error. I believe it may be because the MCC DAQ and arduino are fighting over the COM port.
03-19-2022 06:13 AM
As I don't have the hardware I cannot help you if this is the problem.
Looking over this error I found this entrance:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019UnoSAE&l=es-ES
It may help, although if the VI for MCC DAQ runs okay, that may not be the problem.
Also, I would suggest to modify a bit the VI, as in the image attached, to make a proper error handling.