LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

messages,commands and protocols

I need to make the attached protocol ... The idea is that this is considered as a conversation between the interrogator and the tag and I've already made the commands "select / Query / Ack / QueryRep" with boolean array output ...The problem is  that I need something in Labview like msg  and In case of getting a response action I will take a specific action BUT after waiting sometime "T4 / T1 /T2 " as timeout I need to take another action ..... what blocks I must use "putting in consediration that I have the commands (select / Query / Ack / QueryRep) with boolean array output" .... thanks In advance 

0 Kudos
Message 1 of 6
(2,835 Views)

OK, what have you tried?  This is a great homework problem that you can use to develop some good LabVIEW skills (so we shouldn't "do it for you", as you won't learn anything other than how to take credit for other people's work).

 

Something that I've heard over and over, but never really did, myself, until a few years ago, is "Write the documentation first".  Open Microsoft Word (or a LaTeX editor, or whatever else you like to use) and spend an hour writing yourself a detailed document of the problem.  This usually forces you to see relationships between the pieces, as well as how to organize a complex problem into a series of simple steps.

 

One thing that few beginners seem to recognize is the power of the sub-VI.  Usually the problem can be broken down into a few "big pieces" -- write each piece as its own sub-VI, with inputs and outputs as connectors.  A common LabVIEW (if not Best, then at least Pretty Good) Practice is to use the 4-2-2-4 Connector Pane (four inputs on the left, four on the right, two on top, two on the bottom, with Error In and Error Out on the lower corners), even if you have only a single input and output.  Note that if you have, say, 7 inputs, this is a sign that maybe you should combine related wires into a Cluster.

 

Oh, yes, also make an Icon for your sub-VI -- doesn't need to be complicated ...

2015-03-24_8-34-21.png

Here's an example -- note the connector pane, the Error Terminals, the icon.  "What Happens in the Sub-VI Stays in the Sub-VI" -- your top level VI, where the overall logic of the program should be evident, doesn't have to deal with the "messy details" of how you "Combine Inputs", but can just reflect that you did combine them.

 

Once you've written the document, start laying out your VI and sub-VIs.  When you have something that doesn't quite work, post it and we will try to help/teach you.

 

Bob Schor

0 Kudos
Message 2 of 6
(2,788 Views)

I didn't ask you to "do it for me "  !!!!!! I just asked which blocks or data structure I must use  !!! 

0 Kudos
Message 3 of 6
(2,779 Views)
Sounds like a state machine to me. I have no idea what you mean by 'tag'. Are you going to be talking to some hardware?
0 Kudos
Message 4 of 6
(2,775 Views)

RFID tag ... something like a barcode with a tiny chip ....

0 Kudos
Message 5 of 6
(2,771 Views)
You've already posted ambiguous questions about rfid - http://forums.ni.com/t5/LabVIEW/RFID/m-p/3100320. If you are having problems with the communication, you need to provide details on the rfid reader.
0 Kudos
Message 6 of 6
(2,756 Views)