LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Request sample Hex vi

Hi !
 
I'm a frequent 7.1 LabView user. Just want to request vi that can write hex message like for example "0xAA" to acertain address "0x00" then read.
The read hex message should also be "0xAA".
 
Regards,
Kabo
0 Kudos
Message 1 of 6
(3,032 Views)
It sounds like you just need to use the In Port and Out Port functions on the Advanced Port I/O palette.
0 Kudos
Message 2 of 6
(3,025 Views)
Dennis,
 
Thank you for your information, I am planning to use the sample basic serial vi but I don't know how can I start with it.
It's my first time to make this program but I don't know how can I send that hex message on a particular address?
Do you have actual sample for this ? Can I request ?
 
Thanks,
Gilbert 
0 Kudos
Message 3 of 6
(3,012 Views)
Hi,

I'm sorry, but I do not understand what you would like to do. Do you want to transfer data over the serial port? Please explain your problem a bit further!

Regards
Matthias
0 Kudos
Message 4 of 6
(3,006 Views)

Hi Mathias,

Sorry for the confusions. Yes, I have to transfer data over the serial port. To make it clear for you, the instruction is like this "Write 0x55 to address 0x1000 then read. If the byte read is 0x55, proceed to the next step. Otherwise, send message to the PC "Flash test fail" then abort Flash test".  Sending message "Flash test fail" to the PC will be very easy for me as long as I read it correctly.

Regards,

Kabo

 

 

 

0 Kudos
Message 5 of 6
(2,998 Views)
Hi,

we'd need a more complete specification of the protocol you have to implement.

Data on a serial port / serial line is just a stream of bytes. There is no fixed convention of how to "write data to an address". This depends on the device you want to talk to.

Regards
Matthias
0 Kudos
Message 6 of 6
(2,993 Views)