From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring a Watlow F4 Controller

Solved!
Go to solution

The invalid reference usually means you have not selected the correct port. Did you select the com port by clicking te arrow on the right side of the VISA resource name control?

0 Kudos
Message 11 of 89
(7,879 Views)

I did make sure to have the correct port chosen.  I have been delving a little more into the VIs and noticed that found the VISA Read in WLF4 Utility MODBUS RTU Receive Message.vi is generating the error.  I have checked and re-checked the settings listed in MAX and the F4 itself, they match.  Inside the Init VI is give the following message about the error.

"The ID Query failed.  This may mean that you selected the wrong instrument or your instrument did not respond.  You may also be using a model that is not officially supported by this driver.  If you are sure that you have selected the correct instrument and it is responding, try disabling the ID Query."

 

I know I have the correct port, driver.  Could it be that the 0 Register that it is attempting to read is incorrect? The Watlow F4 manual lists 0 to be "Model, Diagnostics"

 

Tracing the error back in further leads me to WLF4 Utility MODBUS RTU Receive Message.vi. I have attached a copy of it below with all of the settings intact. Perhaps one of you can see something wrong in there.

0 Kudos
Message 12 of 89
(7,861 Views)

The Saga Continues...

 

A friend here turned me onto NI Spy and this is what I captured.

 

1.  viOpenDefaultRM (0x13020DB8)    Status: 0 (VI_SUCCESS)
2.  viParseRsrc (0x13020DB8, "COM4", 4, 4)  Status: 0 (VI_SUCCESS)

3.  VISA Open ("COM4", False, 0, 0, "COM4")  Status: 0 (VI_SUCCESS)

4.  VISA Set Attribute ("COM4", 0x3FFF001A, 100000) Status: 0 (VI_SUCCESS)
5.  VISA Set Attribute ("COM4", 0x3FFF00B3, 0) Status: 0 (VI_SUCCESS)
6.  VISA Write ("COM4", "........")  Status: 0 (VI_SUCCESS)
7.  VISA Set Attribute ("COM4", 0x3FFF00B3, 0)  Status: 0 (VI_SUCCESS)
8.  VISA Read ("COM4", 3) Process ID: 0x00000974         Thread ID: 0x000004F0 Start Time: 14:46:05.843     Call Duration 00:01:40.000   Status: 0xBFFF0015 (VI_ERROR_TMO)

Perhaps this can help elucidate the problem.  As the name says, I am a chemist and have never dealt with MODBUS before.  Thank you all for the continued help!

 

Regards,

PChemist

0 Kudos
Message 13 of 89
(7,846 Views)

Pchemist,

 

Did you ever get this resolved?  I've run into the same problem with a timeout error in the read of the receive message.

0 Kudos
Message 14 of 89
(7,653 Views)

Hi CStaller

 I did get it working, I will try to post the VI in the next couple of days. I currently have an experiment running and don't want to intefere with it.

 

Regards

PChemist

 

0 Kudos
Message 15 of 89
(7,648 Views)

no you wont. as long as someone helped you, who cares if other people have the same exact problem. Your issue is resolved thats the most important thing. 

At least I have chicken
0 Kudos
Message 16 of 89
(7,624 Views)
Solution
Accepted by topic author PChemist

As much as Dennis attempted to help me it was not his advice, in the end, that solved my problem. I solved it through diligent work and reading on my own part. Including learning an old communications protocol that is not in my field or of interest to me.

 

Due to Leroy's rudeness I will not be posting my solution on the general forum. If someone needs help they may feel free to contact me.

0 Kudos
Message 17 of 89
(7,604 Views)

oh gosh, what are we to do now? Without someone as smart as you who "runs experiments" and "investigates protocols" the community is lost!

0 Kudos
Message 18 of 89
(7,586 Views)

   

0 Kudos
Message 19 of 89
(7,581 Views)

^^^^ Really??  Wow, too bad he wouldn't help you do your homework.  Maybe if you asked specific questions, you'd get specific answers (ya' know, kinda like he did).  Instead, you say "It's not working, and I don't know why!!  Send me your code that you spent hours developing so I can see if it works for my very specific situation."  Google a little, read some forums, a programmer's manual here and there, maybe even a specification, and one day you'll be able to solve your own problems too.

0 Kudos
Message 20 of 89
(7,489 Views)