LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW RTOS and arduino VISA

Hi,

 

I have been asked to work on a project recently and I am having issues that I cannot seem to find solutions for. My colleagues and I are very new to LVRT and it is not my equipment so I would really like to minimize trial by error.

 

My research supervisor has provided the team with a LVRT computer (connected via ethernet. no screen/keyboard or mouse attached to RT machine) to do simulations on which we control by a host computer. I have installed arduino drivers on the host computer and the communication using VISA works with the arduino on the host. However as soon as the code is run on the LVRT machine, the arduino communication does not work. First obvious problem is that the arduino driver is not installed on the LVRT machine. Is it possible to install arduino drivers to the real time machine? And will the arduino work properly as it worked on the host machine? If not, is there a way to send the signal to the host computer where I can use python, processing 2.1.1 or even LabVIEW again to the arduino.

 

On the link: http://www.ni.com/white-paper/4040/en/#toc1  , it says - "Serial, CompactFlash, and Ethernet connections are built into the controller" hence why we have developed some of the external hardware to run on arduino.

 

Thank you in advance,

Steve.

0 Kudos
Message 1 of 5
(3,414 Views)

Take a look at this link: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019M0tSAE&l=en-US This is a tool you can use to check if the DLL's for the Arduino will work on the RT Target. Once you verify that they do, you will need to add the files to the Always Include in the RT exe. 

 

If you are using VI's that communicate using the VISA calls and they are not working on the target make sure that NI-VISA support is installed to the target and if it is connected by USB install USB Support as well. You may also need to install the NI-Serial RT software to the target but that may not be needed. Try making sure this software is installed and trying your program again. 

Alex D
Systems Engineer
Academic Research
National Instruments
0 Kudos
Message 2 of 5
(3,358 Views)

Thank you very much

I will try that when I get into the lab today. VISA is working and the USB device is plugged in. It is just that there are no COM devices to select.

 

Is this a link for the USB support installer? - https://www.ni.com/en/support/downloads/software-products/download.labview-real-time-module.html#306...

We are using LV 2011 on the host machine, so I think you suggest the 2011 version of this, but I can find it. - https://www.ni.com/en/support/downloads/software-products/download.labview-real-time-module.html#306...

 

Thank you.

0 Kudos
Message 3 of 5
(3,342 Views)

The software is installed using NI-MAX from a computer that has the Real-Time Module installed. When you install the software to the target there are the options to select what to install. The items that I mentioned are in that list. You should not need to install anything more on your Host computer. 

Alex D
Systems Engineer
Academic Research
National Instruments
0 Kudos
Message 4 of 5
(3,334 Views)

I really appreciate your help, but the dlls all bave bad portions, even the prolific FTDI driver.

We will be moving on using a NI 6229 PCI DAQ board since it would be easy to transmit the data we ned though analog voltages for now.

 

Thank you.

 

 

0 Kudos
Message 5 of 5
(3,325 Views)