jeremyhannon
2007-06-13 22:10:12 UTC
I have written a VHDL program to reside on a CPLD on a board that we are designing. In product it should be talked to serially so I'm trying to use Labview to communicate to this board byte-by-byte over the serial port (COM1) of my computer.
As a new Labview user I'm currently stuck on how to convert the in/out strings used with the VISA Serial controler into a form that I can use. I'm specifically trying to send sets of 2 or 3 8-bit packets and then do bit-wise operations on each packet.
1) I've found the "String to array of bytes" function, but also have seen references to a 512-character lookup to convert ASCII text into bytes. Will both of these approaches work? I'm concerned because I've seen that there are regular strings, hexadecimal strings, decimal strings, etc.
2) What is the Labview function to convert a U8 byte into an array of booleans? What about the other way, array of booleans to byte?
Does anyone have any example code where they've tried something similar?
I am using Labview 8.2
As a new Labview user I'm currently stuck on how to convert the in/out strings used with the VISA Serial controler into a form that I can use. I'm specifically trying to send sets of 2 or 3 8-bit packets and then do bit-wise operations on each packet.
1) I've found the "String to array of bytes" function, but also have seen references to a 512-character lookup to convert ASCII text into bytes. Will both of these approaches work? I'm concerned because I've seen that there are regular strings, hexadecimal strings, decimal strings, etc.
2) What is the Labview function to convert a U8 byte into an array of booleans? What about the other way, array of booleans to byte?
Does anyone have any example code where they've tried something similar?
I am using Labview 8.2