Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-485 ModBus with NI-9871 on cRIO-9074

I reinstalled LabVIEW (2011 DS1) and can now format and install software to cRIO.

 

But cRIO still crashes after I do a simple communication between two NI-9871 ports.

 

This what I do to crash the CRIO

1-Format

2- Install one default software option (Scan Engine 3.6.0)

3-Open my existing project.

4-Deploy all

5-Run the vi. (write from port1 of NI-9871 to port2 of NI-9871, it sucessfully writes and reads, no error messages returned )

6-Exit LabVIEW

7-Reboot the CRIO

 

And that is it, cRIO goes into safe mode by blinking STATUS Led 4 times, and reports "Safe Mode (software error)" from MAX and its serial port by "Console Out"

 

Any ideas???

 

0 Kudos
Message 11 of 17
(3,340 Views)

can i use Carlo gavazzi dupline mastergenerator G38000015 in NI LABView ?

 

How to interface it with labview software ?

 

Can any one suggest me on that..

0 Kudos
Message 12 of 17
(3,128 Views)

Hello Kaku,

 

Please try as possible to create a new topic. It's better for future customer finding solution Smiley Wink

 

Unfortunately i didn't find built-in LabVIEW driver for your instrument BUT from what i read on its user manual:

 

"The G38xx15 program has been designed for configuration of the G3800X015 master generator. All functions
in the generator are represented by graphic symbols. To each channel function are related parameters and
comments, which can be edited locally in the PC and transferred to the master generator through RS232.
Likewise, data from the master generator can be uploaded and edited."

 

RS232 mean you can use serial communication. thus It is possible to control this instrument with the NI-VISA driver. (there is a palette in labVIEW with VISA function). you will also find example for serial communication in the labVIEW built in example library. (help>> fin example...).

 

Then If you want use Modbus protocol read this paper:

 

tutorial

library:  http://sine.ni.com/nips/cds/view/p/lang/en/nid/201711

 

There also are some example if you install the modbus library.

 

Regards,

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 13 of 17
(3,125 Views)

Thank you for reply...Smiley Happy 

 

I hv rply to ur post as only ur post has carlos gavazzi data. I'll repost all this data ,so other can also get an info about it.

 

I hereby attached an image , in which interfacing between labview & dupline mastergenerator is been explained.

 

I need ur suggetion on how can i interface it using ActiveX as shown in diagram i hv attached ?

 

Also i hv installed Data Access Software in my machine.

 

But how to link that software with labview to use mastergenerator ?

 

Thanx again for ur reply...

0 Kudos
Message 14 of 17
(3,115 Views)

I really don't know this hardware but If all the software pieces have been install, then you can access LabVIEW VIs you can use to communicate with your dupline master generator. It is not well explained if the activeX methods and properties are directly access through these VIs or if yo have to use them in the same time.

If so you can use these activeX function with the ActiveX subpalette located in the connectivity palette. 

 

Apparently some Visual Basic demo are also installed. You can start learning how to use your generator with this example.

 

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 15 of 17
(3,109 Views)

Hi I run in scan mode cRio 9075,(even tried 9012) I configure a Modbus master Com2. it establishes communication have serial sniffer and see commands send and received.

 

Writes to device happens, reads request received and responds but my shared variable does not show any value,  

 

If i changed to onboard com1  as check (rs232) sytem works fine, their is something wrong in the connection of shared variable to the 9871....

 

I can not find any postings on this.  

 

Does anyone know if modbus is surposed to work on the 9871 and what firmware must be installed on crio

 

Installed the latest from 2012 DVD...

0 Kudos
Message 16 of 17
(3,035 Views)

Hi André,

 

You mentioned about using a low cost RS-232 to RS-485 converter on the RS-232 Serial Port available on the cRIO-9074 for Modbus controlling.  This is exactly what I am working on but have no clue why its not working.

It returns a 6101 timeout error code when I sending out commends. 

Would you kindly send me your project code for me to reference? Or do you have any recommandation?

 

Sincerely

Thank you,

 

nobel945

0 Kudos
Message 17 of 17
(2,683 Views)