09-15-2010 06:31 AM - edited 09-15-2010 06:36 AM
/;
09-15-2010 06:34 AM
good evening friends, i have 28 bytes
Header 8 bytes
DAta 18bytes
check sum 2 bytes total 28 bytes
content
byte 0 header acf(bits7-4) - pcf(bits 3-0)
byte 1 header msglenwords
byte 2 header icd(bits7-4) -cyclic counter(bits 3-0)
byte 3 header message type message type >>> enum type SERVO_MMC_OPERATIONAL
SERVO_MMC_IBIT_FIN_ANGLES
SERVO_MMC_IBIT_VOLTAGES
SERVO_MMC_VERSION SERVO_MMC_CALIBRATION
byte 4 header time tag-msb
byte 5 header time tag -continued
byte 6 header time tag - continued
byte 7 header time tag lsb
byte 8 Data flags ....upto 25bytes(spare)
byte 26 check sum spare.
here system receives command over RS232 communication executes the operation as per command and send response as per predefined communication protocals.this is my problem , can any one help me how to develop a front panel and blockdiagram.
09-15-2010 09:02 AM
You asked for front panel and block diagram so that would mean LabVIEW. You would need to start by doing some basic LabVIEW tutorials. To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
Once you have the basic knowledge of how to program in LabVIEW then you should read about instrument control. NI has a good series on this: http://zone.ni.com/devzone/cda/tut/p/id/4359. In your case you'd want to look at the serial control parts since you're doing RS-232. Specifically: http://zone.ni.com/devzone/cda/tut/p/id/4370.
LabVIEW ships with examples on using VISA to do serial control. In your case you'd read a byte stream (as a string) and then convert the string to an array of bytes using the String to Byte Array. Then you can do whatever you want with the individual bytes.