Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

i am using VISA 5.3 for reading my serial device .. my serial device is FISO that device will send four messages for single comand i need all the four messages to be displayed at a same time in VISA SERIAL READ BUFFER

Solved!
Go to solution

i am using VISA 5.3 for reading my serial device .. my serial device is FISO that device will send  four messages for single command given to that instrument .. and i am reading that messages via  VISA serial READ.. while running the  VI buffer displays the messages individually ..  i need all the four messages to be displayed at a same time in VISA SERIAL READ BUFFER,in order to over come that what block i have to add from the function pallete.

0 Kudos
Message 1 of 12
(4,663 Views)
Solution
Accepted by preci

Either disable the termination character detection or do four reads where you simply concantanate the strings together.

0 Kudos
Message 2 of 12
(4,658 Views)

Thanks for your valuable time, but i request to view my VI file attached in the blog and give detailed solution to over come this problem. Since i am new to LAB VIEW i cant able to get the meaning of Technical terms in Lab View.

0 Kudos
Message 3 of 12
(4,632 Views)
There is no VI.

One of the inputs to the VISA Configure Serial Port is Enable Termination Character. When this is true, the VISA Read terminates whenever the character (LF) is detected.

If it's always 4 lines, I'd leave it alone. A for loop is very basic LabVIEW.and is covered in the brief tutorial you should have taken.
0 Kudos
Message 4 of 12
(4,623 Views)
You marked the question as solved. Not a good idea if you still have questions. Click on ' Options' to remove the solved indication.
0 Kudos
Message 5 of 12
(4,620 Views)

Dennis - such an optimist!

 

preci,

 

Here is what your 1 fiso VI BD looks like after clean up (with manual assist):

 

1 fiso after cleanup.png

Note that your Blank Button will likely be read exactly one time and that shortly after the VI starts running. Pressing the button later will have no effect.  This is probably not what you had in mind.  This is basic dataflow and is fundamental to the way LabVIEW operates.

 


 

This is possibly what Dennis had in mind when he recommended four reads and concatenate:

 

1 fiso improved.png

 

Note that this has the case structure controlled by Blank Button inside the while loop where it will be read every time the loop iterates. The false case contains an empty string. (Even better would be to put all the Write and Read functions inside the case structure. You probably get timeout errors or other strange behavior when trying to read after no command was written.) No local variable required. In LV the wire is the variable, not the control or indicator. Naming front panel objects "...Buffer" suggests a text language programming background.  To take advantage of the power of LV you need to learn how to use the dataflow paradigm.

 

Lynn

0 Kudos
Message 8 of 12
(4,589 Views)
Thanks Lynn,

Thats exactly what I had in mind.

preci,

If you get more or less than four lines sometimes, switch to a while loop and add a VISA Bytes at Serial Port. Not to determine bytes to read but to terminate when the available bytes is zero.

Bet you thought that serial communication was simple.
0 Kudos
Message 9 of 12
(4,577 Views)

Thanks for your valuable time John, i ll try to correct my errors with ur valuable suggestion .

0 Kudos
Message 10 of 12
(4,569 Views)