02-02-2012 10:23 AM
Hi,
I'm trying to connect and read data from a CR1000 datalogger that I have set up as a modbus slave by using the following code in CRBasic:
ModBusSlave(Com Port, BaudRate, ModBusAddress, ModBusVariable, BooleanVariable) ModBusSlave(ComRS232,115200,1,PPMes(),0)
My problem is I can't figure out how to connect to the logger and read the data in Labview. The CR1000 is connected to my computer on COM4, using a RS232 to USB converter, which I hear don't always work, although I have seemingly connected to the data logger through the application control wizard. The logger uses a RTU modbus frame but when it asks what line do I want to write to the logger I have no idea what to send to retrieve and parse the data. I've also been reading that I could use the write and read VISA controls but I'm not sure how to do that even after looking at the example. I have downloaded the NI-VISA and NI-Modbus packages. I have also seemingly been able to connect to the logger using the modbus slave/master example but again I don't know what to do to retrieve the data. I'm sorry to be asking such basic questions but while I have a reasonable handle on CRBasic programming and the general Labview functions and controls I really have no idea what I'm doing here so any help would be appreciated.
Thanks
02-06-2012 01:54 PM
Hi iaingidley,
From the LabVIEW side of things, what are you using to try and make this connection? If you could post a screenshot or the name of the example you're working with, I'd appreciate it, and then can work from there to make sure connection is established.
Regards,
Dave C