03-14-2016 03:58 AM
Hi,
Am using my pic controller for controlling various motors and valves. I have interfaced my pic controller with labview using Visa driver. I am passing binary data to labview through serial communication. Based on the binary data, i want to represent the ON/OFF of motor in front panel. pls anyone hlp with me. Am just using my labview for visual inspection of ON/OFF of the motor. Thanks in advance
03-14-2016 05:39 AM
Please explain your protocol a little better. How long is your message? What does the data mean? How many motors are you controlling and need to show status for?
Also, please show us what code you have so far.
03-14-2016 06:09 AM
Thank you.
Am using PIC Controller for controlling ie to turn on and off motor(4 Motors). Binary data is send from PIC to labview through serial port. If the motor is ON, in labview LED indicator should glow. Eg: Am passing data as, 0100 if the motor 2 is ON, 0010 for Motor 3 and 1111 for all Motor is set to ON.
03-14-2016 07:15 AM - edited 03-14-2016 07:15 AM
velkumar10 wrote: Binary data is send from PIC to labview through serial port. If the motor is ON, in labview LED indicator should glow. Eg: Am passing data as, 0100 if the motor 2 is ON, 0010 for Motor 3 and 1111 for all Motor is set to ON.
So I'm left to assume this is all sent as a single byte. In that case, this should work for you.
03-14-2016 07:41 AM
03-14-2016 07:46 AM
1. Do not call be "bro".
2. Please use complete words.
3. What I posted is called a snippet. You can drop the image straight onto your block diagram you will have the code. You may need to save the image to your harddrive first. It does not always work with web browsers.
4. You might want to take some tutorials.
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products
03-14-2016 07:49 AM
03-15-2016 05:27 AM
Hi Vrossrulz,
I used your snippet, when i use that program. only the Indicator 1 glows, if we send any data. I am continously sending the status of the motor through serially. so my labview program want to update the status. is there any way for mentioning end of the string in the visa read.
03-15-2016 08:42 AM
This tells me we have the wrong format for the data coming across the serial port. Perhaps you should share your code for the microcontroller side where you send the data through the serial port.