LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView + Arduino Solar Tracking Learning Kit.

Hi Folks,

 

I am currently doing a project for college. I bought a Solar Tracking Learning Kit online which is programed through Arduino. I have modified the code as such that it is controlled from LabView.

Basically I built a state machine, 'System Off' 'Idle' 'Tracking' 'Manual' 'Auto'  'Alarm' 'Shutdown' ( I haven't implemented full Alarm Case yet)

 

My main issue is timing delay/feedback. The program seems to slow down.

For example when I operate 'Power' switch on/off no issues, when I transition into Auto/Tracking and back into Idle state no issue. It seems when I go into manual 'mode' my program slows down quite alot and the generates quite a delay response in LabView then. Would be grateful if someone could have a look at my VI and point me in the correct direction, please.

 

Please note, my LabView skills are only basic 🙂 as its a college project.

 

Thanks.

Download All
0 Kudos
Message 1 of 5
(291 Views)

I recommend to do a "save for previous" (2020 or below) and attach again.. Most here cannot look at code saved in LabVIEW 2025.

0 Kudos
Message 2 of 5
(266 Views)

Saved as 20.0 version

Download All
0 Kudos
Message 3 of 5
(256 Views)

Thanks,

 

  • How exactly are you defining and measuring "slowdown"?
  • Why do you think you need to reconfigure the serial port with every iteration of the loop???
  • It is strongly recommended to stay away from generic default names, (e.g. I already had a "control 1.ctl" in my downloads folder from last year, causing the new download the be renamed to control 1 (1).vi and your VI to break because it loaded with the old and incompatible control 1.)
  • All your value property nodes should be local variables
  • many local variables are completely unnecessary.
  • Why do you need to have so many identical boolean constants? You are allowed to branch the wire and set output tunnels to "use default if unwired".

 

altenbach_0-1764955723898.png

 

Also note that in manual node, you are sending a garbled command because the constant is set to normal mode instead of \-codes display. If I set it to \codes, you can see that is also sends a plain "\n" before the linefeed. Not sure what the receiver does with it...

 

altenbach_0-1764956097955.png

 

 (note that your other similar string constants are set to \-codes.)

 

0 Kudos
Message 4 of 5
(222 Views)

As i said, my LabView skills are fairly basic. Thanks for the feedback, will have look at this over next few days. 

0 Kudos
Message 5 of 5
(171 Views)