LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My serial communication commands dont work in MAX

Solved!
Go to solution
Highlighted

I am trying to read and writ a command to a temperature oven. The commands offered by NI-MAX don't work.

I attached a picture with a sample command that the manual gave. This device uses GPIB.

0 Kudos
Message 1 of 16
(269 Views)

Does it need a termination character?  (probably)  Did you send a termination character?  (I don't see one in your command.)

 

Hit enter at the end of version.  Or type /n or /r.

0 Kudos
Message 2 of 16
(260 Views)

Thanks for the response. Yes I tried \n and \r.

0 Kudos
Message 3 of 16
(236 Views)

I also am not sure which GPIB to choose.

I tried GPIB0 and GPIB4 and GPIB5 then "Scan for Instrument".

Not sure.

0 Kudos
Message 4 of 16
(234 Views)

@Netsballer92 wrote:

I also am not sure which GPIB to choose.


Leave it as GPIB0.  You should only need to change that if you have multiple GPIB controllers on your system.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 5 of 16
(228 Views)

What model of oven and/or controller are you trying to talk to?  There are plenty of other settings to worry about that might show up in the manual.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 6 of 16
(226 Views)

That looks like it's supposed to be a query.  Did you click the "Query" button?  (Alternatively, did you click "Write" followed by "Read"?)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 16
(216 Views)

Thank you for the response on GPIB0.

Here is the manual.

0 Kudos
Message 8 of 16
(169 Views)

Thank you for the response.

Yes I tried both of these options. Write and read also query

0 Kudos
Message 9 of 16
(166 Views)

How many ovens do you have connected?  I see 10 instruments listed in your NI-MAX list.  Are they all powered on?  How long are the cables between them?  Have you specifically set the address on each oven?  What is the address you are attempting to contact?  (In your first post its GPIB0::4::INSTR, but its not shown in the list in the latest image.)

 

GPIB has some restrictions on cable length (2m between instruments/repeaters) and a total of 20m of cable length.  Also I think its 2/3 of the instruments have to powered on at any time.  If you have a huge long run on cabling, and most of the instruments are off your feeble GPIB querry just gets lost and eventually you get that timeout error.

 

I would try to send either "Status?\r\n" or "Temp?\r\n".

 

Craig

0 Kudos
Message 10 of 16
(146 Views)