LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa serial read with no terminator character

Using VISA serial read, I do not wish to have a terminator character as the returned data includes all codes possible (other VISA features are required).

I have read the documentation and am unable to determine if it is possible to configure the VISA port without a Terminator character.

I have set the termination character to 0 but believe that with 0, it is looking for a NULL as the terminator character.

Do you have any experience / advice
Thanks.
0 Kudos
Message 1 of 7
(3,607 Views)
Look at the VISA Configure Serial Port function where you're setting up baud rate, etc. and you'll see a terminal called Enable Termination Char. By default, it's true. Just wire a Boolean false constant to it.
0 Kudos
Message 2 of 7
(3,607 Views)
Thanks,
It appears that this feature is exposed at the VISA serial config at version 6.1 and later.

Prior to that you have to find the paramater and set it manually.

You saved me a shed load of time.
0 Kudos
Message 3 of 7
(3,607 Views)

Added note for LV 7 users.

Another developer and myself discovered that after installing LV 7 on the same machine as LV 6, the VISA configure Serial Port VI in the LV 6 VI.lib was replaced by a version that did NOT havew this boolean input!

I recovered by pulling out a version that I had saved elsewhere.

Ben


Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(3,607 Views)
Now that's interesting and could explain on of the issues I had problems with.

Thanks

I have this sneaking suspision that all is not well with this function and that it is not actually turning the feature off correctly!! At this point it needs more work to confirm the nature of the issue I am experiencing. As you are probably aware with RS232 you need to take care as it could be the other end causing the issue.

Any thoughts ?
0 Kudos
Message 5 of 7
(3,607 Views)
Make sure you have the latest and greatest VISA.

The config VI should look like the attached.
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(3,607 Views)
The lowest option in the diagram looks as though it could nail the probelm.

That's really cool..... thanks
0 Kudos
Message 7 of 7
(3,607 Views)