Jump to content

bobby light

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Location
    United States

LabVIEW Information

  • Version
    LabVIEW 2010
  • Since
    2009

bobby light's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. meh i got it working how I want by basically reinventing the wheel into a p/c. had to get all my reads and writes in the same loop for the trace to work like I wanted, and then made all cases in the consumer loop set next state to read case. Thanks.
  2. Thanks for your responses i really appreciate it. This is what I worked out before, this does exactly what I want except I have separate string indicators on the front panel, one for RX one for TX. I tried making one up like your example, but I could not get it to work where a single trace updated either with RX msg or Tx msg, my problem is i guess syncing the shift registers in two different loops, which is probably not possible and why i was thinking I need a queue and then dequeue after the read to update the window with whatevers in the bottom loop....forgive the cleanliness of code, will cleanup when i figure out what I'm doing lol
  3. thanks for the response, I had already taken a stab at just throwing in a second loop like you did there, except i used "bytes at port" feeding into a case structure where 0 does nothing essentially and default does the read, which works as far as talking out of the serial port like i'd like, but the problem i'm having is syncing the trace window on my FP. in your example you just have the reads showing up in the read buffer indicator, but I'm trying to have the Tx echo in the same indicator also. That's where I was thinking originally i'd need like a qsm or something, unless there is some clever way to echo a write to "read buffer" in your bottom loop in the example you posted.
  4. Thanks, for the tip, but if i put my heartbeat in the timeout event, where should I be monitoring the port for received messages? I would have just put a short timer on the timout event and listened for bytes at port, and wrote them to my terminal as I saw them, is there a way to create a "bytes at port event"?
  5. Hi everyone, I'm new to the board and pretty new to labview. I have a simple serial messaging protocol. I need to create a tool that will essentially be a terminal tool with buttons that will send out 5 or 6 manual commands. The commands have start character and end characters. It will also need to send a status message at some interval and be able to send the same status message on demand. I was thinking about using a state machine for this, however the adjustable rate heartbeat message and how to handle that in statemacine is kinda jamming me up and maybe i'm trying to be too cute or am just going down the wrong path in general. also searching around i was unaware of visa events, would this be an appropriate use of visa events for the message reading or am i better off just inspecting each byte and acting accordingly? any tips would be appreciated.
×
×
  • Create New...

Important Information

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