From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-07-2019 07:51 AM
I am a college student who only learned NI LabVIEW fundamentals.
I'm trying to code the control system now, but it's too hard to learn the basics.
Can anyone help me with coding?
Here is the content.
Plan 1) When the velocity sensor value entering the labview is less than 30km/h, the green LED turns on steadily,
When speed sensor speed value is 30 ~ 50km/h, yellow LED flashes every 3 seconds, LED off time 0.5 second
Speed sensor When the speed value is over 50km/h, red LED, flicker at 1 second interval, LED off time 0.5 second
Plan 2) Plan 1 has the same purpose, but we plan to connect the power supply to supply the LEDs with the power supply in the middle.
Therefore, when the speed value is 30 km / h or less, the power supply 1 ON, (power 2.3 OFF)
When speed value is 30 ~ 50km / h, power supply 2 ON, (power 1, 3 off)
When speed value exceeds 50 km / h, power supply 3 ON, (power 1, 2 off)
I would appreciate your help.
The sensor will use a Doppler sensor.
05-07-2019 08:19 AM
Re Plan 1)
Re Plan 2)
Re Doppler Sensor:
05-07-2019 10:58 AM
@25amk wrote:
I am a college student who only learned NI LabVIEW fundamentals.
I'm trying to code the control system now, but it's too hard to learn the basics.
Can anyone help me with coding?
I don't know what LabVIEW "fundamentals" you learned, but it sounds like you need to learn some more. If it is "too hard to learn the basics", you should drop the course. If you submit your code and it doesn't work, we can suggest how you can fix it. If you really need "help with coding", ask your fellow students or your instructor.
Bob Schor
05-07-2019 11:07 AM
Do you have mutiple LEDs, or a single LED that should change color? (Even blinking is just an alternating color change, right?)
What kind of data does the speed sensor contain?
How are the power supplies connected to the hardware?
What is your code architecture?
As a first step work out the logic using simple simulation (A slider control to simulate speed, One LED for each power supply to indicate On/Off, a set of colored LEDs (or a colorbox made to look like an LED) to display the state). Once you have something, show it to use for feedback.