ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Specific command that doesn't work

Aros_0-1760620329576.png

Hi all, I have this mass flow controller with which I want to communicate. In the image above, I am using a code from the distributor, where it is a simple communication, and the command "unitID"T (AT) performs a totalizer reset. This works. But when I try to implement it using the same subVI that I have highlighted in my code, the instrument does not perform the tare. I've tried to replace de subVI with an only Visa write block and won't work neither. It is not a communication error since other commands work perfectly.

I don't understand why this could be; it must be something simple. Thanks in advance, Ros.

0 Kudos
Message 1 of 5
(173 Views)

Usually it's a missing end of command (like "\n"). Double check what their example is actually sending and compare to yours.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 5
(153 Views)

I'll try it, but I really don't think it's \r \n, because with the same device I use other commands and both work without \n. There must be something else. Anyway, since I can't do troubleshooting, what do you recommend I do? Should I add indicators in the executables to see what command is being sent? The instrument is being used right now on a set-up.

 

Thanks

0 Kudos
Message 3 of 5
(115 Views)

Yes, some extra indicator and probes in \ -mode is a good start. If that's not enough you can run Wireshark to capture the traffic. You should be able to open the Visa panel in MAX and send the command manually to see that they work.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(77 Views)

t could also be a timing issue.  If you are sending it a lot of commands in a short time it might not be able to handle them all.  Does it run in highlight execution mode but not in regular execution?  If so then add delays or look and see if the instrument implements registers for *OPC?. 

 

0 Kudos
Message 5 of 5
(50 Views)