LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Control sequence of labview communication with arduino

Hi every one, just thought I would shear what I have been working on and hopefully find some help with finishing it off. I am trying to make a labview program that will aid in rapid deployment of LIFA. I have been finding my self spending a lot of time setting up programs for different applications to control the labview output to arduino. My idea is to create a sub vi that makes it easy to connect my inputs, outputs  and sensors. I aim to have it so all I need to do is make the electronic connections and configure a user interface. It will also have functions to be used as a sub vi in other programs such as the ability to run more than one arduino.  

The program should handle the following :

User configuration – input arrays of all data  (VISA resource, pin number, function, )

Set up – initiate Arduino, set input output pins and any other devices I may have connected (this is overly to happen once unless the connection needs to be reset

Handel errors – restart connection with arduino

-Run all user defined functions and exit loop

-be able to run more than one arduino

Save/log data – have not started this but am thinking of using wright binary file

Functions – im starting with digital in and out but want it include pwm, i2c, ISP, serial in/out. I also want to include some boards, devices and sensors.

So far I have got the digital read to work:

- connect the arduino,

-set the comport

- select pins u want to read

-set offset to specify where the data from each pin will be saved on the digital i/o array

-program will loop till u hit stop, then closes arduino and stops loop

I had that working then I stuffed it up by trying to add some more functions, code is still working I just broke the case structure selector and can’t seem to fix it. This happened last time I needed to add a case and I ended up having to create a new case structure and copying every case in (big waste of time). Can someone help me understand the correct method to do this? I will just add I am a little new at labview and have had no formal training so don’t go to hard on me. Thanks 

0 Kudos
Message 1 of 2
(3,475 Views)

I wasn't able to entirely understand what you are trying to do but it sounds very complicated.  I looked at your VIs but don't really know how you are trying to architect this system.

Are you trying to augment LIFA or are you trying to build something that is specific to your needs? 

If you change an enum that is connected to a case structure and need to add that case to the case structure, you can simply right click on the case strcuture and select "Add a case for every value".  If that option doesn't exist, somethine else is wrong or you can add a case manually with "Add Case After/Before".

Another important note is that LIFA is no longer maintained and is replaced by LINX (labviewhacker.com) written by the original author of LIFA.

0 Kudos
Message 2 of 2
(3,026 Views)