01-15-2024 03:38 AM
Hi, I want to operate a pulser/receiver using LabVIEW serial communication.
By referring to the control commands provided by the pulser/receiver equipment company, I confirmed that serial communication was working well.
However, when I turn on the pulsar/receiver,
1) I want to apply multiple initial settings that I have set for various conditions (multiple serial communication)
ex) pulse voltage, damping resistors, trigger source,....etc.
2) Also, I want to implement a program when if I change the values of Gain/voltage etc., the serial communication will work and the corresponding values (Gain/voltage etc.) will be converted.
I have attached the serial communication document for the pulser/receiver and the LabView code.
Can you help me?
thank you.
Solved! Go to Solution.
01-15-2024 04:52 AM - edited 01-15-2024 04:55 AM
Hi hurang,
@hurang wrote:
I have attached the serial communication document for the pulser/receiver and the LabView code.
There are several problems in your VI:
01-15-2024 07:23 AM - edited 01-15-2024 07:24 AM
A couple more things:
I have attached a simplified and cleaned up version of your code, taking notes from GerdW as well as my own comments.
01-16-2024 01:51 AM
Thanks for your reply!
When I turn on the pulser/receiver equipment, I want it to have the initial settings I want (V=300, W20, T1, M1, G32...etc.). How can I input it into the VISA function at once?
Also, if a command to change the setting value is entered into the VISA function, I want the value corresponding to the command to be maintained.
01-16-2024 02:15 AM
Hi hurang,
@hurang wrote:
When I turn on the pulser/receiver equipment, I want it to have the initial settings I want (V=300, W20, T1, M1, G32...etc.). How can I input it into the VISA function at once?
Does your device even allow you to send multiple commands in one message? If yes then it should be described in the programming manual of that device. Otherwise you need to send each command with its own message…
@hurang wrote:
Also, if a command to change the setting value is entered into the VISA function, I want the value corresponding to the command to be maintained.
When you want to store data within your VI then you need to program that.
Usually shift registers store data…
01-16-2024 03:10 AM
@hurang wrote:
When I turn on the pulser/receiver equipment, I want it to have the initial settings I want (V=300, W20, T1, M1, G32...etc.). How can I input it into the VISA function at once?
You should be able to send them in a single string with \ Display code enabled and a \r character between each. But!!!!
Your device has likely a limited internal serial port buffer and may overflow if your command string gets to long. How long that internal serial port buffer is, is unfortunately nowhere documented. Considering the short nature of the commands my guess is that it is rather limited.