Jump to content

boyracer38

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

boyracer38's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks, ive recently finished the project i was working on. It was my first time using Labview. I produced a Car 'drive by wire' simulator, using serial communications between 2 computers, controls and dashboard on one, the engine, ecu etc on the other. Worked quite well. Was a steep learning curve, starting with the LED problem, lol. Thanks Jason
  2. Im sending strings via serial between two vi's on separate PCs. The string is made and broken down from and into property nodes(.value). I was wondering if local variables are any quicker? Or is there any difference at all? Thanks Jason
  3. Manfred, Thanks. That exactly what i was after. Regards Jason
  4. I'm sending data between two VI's on separate machines via serial read/write. Some times, the VI will read garbage data, sending it loopy. Is there any way of flushing the buffer, to clear it before sending data? Or is there a better way of dealing with this? I have to use serial comms as its part of a assignment for university. Thanks Jason
  5. Thanks for all your replies, i now realise what a stupid question it was, but at the time, i was really stuck hehe. Thanks again Jason
  6. I have the following controls Silder - accelerator Gauge - Miles Per Hour (MPH) Gauge - Revs per minute (RPM) The idea to make the vi simulate a car.... When the accelerator is increased, the revs will rise. The RPM will determine the gear (4 speed auto gear box) So as the rpm rises/falls, the gear will shift and down accordingly.... Thats the part i have done... I now want to link the revs to the MPH to show the speed... The speed will depend on the RPM and the gear.... Each gear has a max possible speed which can be reached in that gear. eg, no faster than 30MPH in 1st My idea is that i shoudl mulitply the present RPM by a value to get MPH which will be displayed on the MPH gauge? Any ideas welcome
  7. Is a sequence structure the best to ensure a serial read/write between two pc's does not get mixed up? PC1 will send to PC 2 PC2 does something with the data and sends back to PC1 so PC1 PC2 Write --> Read Read <-- Write Do i need ad a delay anywhere in the loops to ensure synchronisation?? or am i going down the wrong track al together?? Also, as part of the read, i have a concenate string function. It only write to the serial when the string is complete. Once its complete, the string is written to serial port and then i want to move onto the next sequence in the structure. How to terminate a while loop when the string is written?? Regards Jason
  8. Im trying to change the colour of an led, depending on the number selected from a dial. I'm using a case structure, with a property node linked to the LED, with the property BoolText.FGColor. This should change the forecolor of the LED? If i feed the property node a number representing a colour eg RRGGBB. On running the VI, an error is thrown. I think its due to the way im trying to specify the colour. 'HELP' says it should be hexadecimal... how do i do this?
  9. Thanks for your comments. I used scan from string in the end. Its worked a treat. Regards Jason
  10. Hi, as title.... how do i make an LED blink on and off?? Thanks
  11. I have a string which i want to split and feed into local variable. The string needs to be split into several parts. I basically need something which is opposite to the concatenate function.... I have tried 'slit string, but this only splits a string in 2... Thanks Jason
  12. That really helps thanks!!!! :thumbup: Thanks Jason
  13. In conjuction with the lever mentiond on my previous post: The harder the accelerator is pressed, the faster the car accelerates. This will be illustrated with a Tachometer (RPM). When the accelerator is released, the car will decelerate. So a ramp up/down function is needed?? :headbang:
  14. Is there a way to make a slider control return to the default position when released? The aim is to have a control which acts like the accelerator of a car. When released, it will spring back to 0. Thanks Jason
  15. This might be real simple... I want to connect an LED indicator to show the status of a boolean switch. eg. When the switch is on the LED will light, when the switch is switched to off, the LED will go out. Do i need to use a select comparison? Any help for a n00b much appreciated Jason
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.