LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bad command and near position equal read response intermittent

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. 

0 Kudos
Message 1 of 7
(557 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(541 Views)

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?

 

0 Kudos
Message 3 of 7
(516 Views)

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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 7
(514 Views)

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.

 

0 Kudos
Message 5 of 7
(508 Views)

@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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 6 of 7
(503 Views)

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....

 

0 Kudos
Message 7 of 7
(486 Views)