07-18-2024 09:59 AM
Good morning LabVIEW Support,
I have a VI application that is functional but in the response window it will flash "bad command" but the commands are correct. Not sure if command is sent while loop is closed, but get the message with no input flashes quickly but operates normal. Ive attached my VI, I know you don't have the hardware but I will try my best to explain the issue. Also, when application changes position I get a response "position is near = 1" but it should always state direct position "position is = 1" for example. If you need the list of commands I can send for hardware, but never had this issue since manufacturer updated universal controllers. Only commands used is GO to change position and CP to read current position.
07-18-2024 10:25 AM
Does the device have a command to query the error log? For most devices (SCPI based), I send my command or perform the query and then query the instrument error queue. By doing this, I know what command caused the error and can investigate from there.
07-18-2024 11:55 AM
I know for certain it the "GO" command, when I highlight execution I can slow it down to catch it. With no user input as visa reads from hardware, its like the GO command is being read at the same time its reading the current position. Is there a way to only use the go command when user makes selection, and still utilize visa read response?
07-18-2024 12:02 PM
Since there is a response from the device, it is clear that you're not sending commands (order, syntax) in the way it supports/expects.
I would refer to the device user manual to find out what that response means.
07-18-2024 12:18 PM
I referred to the manual and reached out manufacturer.... the GO command is correct and cross reference Format specifier syntax and visa write terminal is using GO%d/r command which functions correctly, but intermittently flashes GO(position) = bad command in visa read response.
07-18-2024 12:27 PM
@Manny904 wrote:
I referred to the manual and reached out manufacturer.... the GO command is correct and cross reference Format specifier syntax and visa write terminal is using GO%d/r command which functions correctly, but intermittently flashes GO(position) = bad command in visa read response.
Only the manufacturer can say why the device returns "GO(position) = bad command" if you're doing everything correctly.
07-18-2024 12:52 PM
This is the response from the manufacturer;
"Here is the response form our Electronics Department:
They should be only using the commands in the technote.
I was looking at the notes they sent and here is what i am seeing
GO<enter> gives them no response
They told it to GO but not to what position. That is why they did not get a response.
GOB<enter> gives them no response
They told it GOB. B is not a valid command for the multi controller.
GO3<no response>
If it is set in the wrong mode or if it is already in position 3 its possible to get this response."
Current write response is GO%d\r which is a decimal type, please advise....