NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Joncombat
Posts: 49
0 Kudos

low level driver support

I have old rs-232 protocol that switches baud rates during a transmission.  It uses a combination of standard CVI rs-232 commands (opencomconfig) and low level outp commands.  The software will run perfectly using NI-serial 1.6, but does not function on ni-serial 3.6.  The protocol is timing critical and I need the low level functions working.  I used CVILowLevelSupportDriverLoaded (); which returned a 1 (drivers loaded).  Any suggestions?

Member
Jacob_R
Posts: 148
0 Kudos

Re: low level driver support

Hello Joncombat,

Are you using two machines with the different versions of NI Serial? Or have you upgraded and lost program functionality?

Are you experiencing any errors when using NI-Serial 3.6? Any screenshots or messages would be helpful. Is there a particular function that the program is hanging on?

Jacob R. | Applications Engineer | National Instruments

Member
Joncombat
Posts: 49
0 Kudos

Re: low level driver support

I am using two identical test racks/pc's.  One has 3.6 the other 1.6.  The low level transmit commands do not function on the 3.6 driver.  I do not see any error message, it just does not function.

 

Jon K.

Member
Jacob_R
Posts: 148
0 Kudos

Re: low level driver support

What serial device are you communicating with? Non National Instruments devices, like a serial port, use other drivers.

On what function does the program hang on when you debug through it?

Jacob R. | Applications Engineer | National Instruments

Member
Joncombat
Posts: 49
0 Kudos

Re: low level driver support

We have a propriatry protocol that changes baud rates when transmitting data.  When connecting a scope to the TX line the code will transmit correctly on Serial 1.6 but transmit nothing when using serial 3.6. 

 

Member
Jacob_R
Posts: 148
0 Kudos

Re: low level driver support

After upgrading to NI Serial 1.6 did you disconnect and reconnect the scope? This updates the firmware.

You may also want to consider using PortMon to compare what is happening in both cases. Save that information so that we can refer to it later.

I'll swing this by some people in R&D to see what they have to say.

Is installing the newer version and installing the older version a possibility until we see what the problem is?

What are the specs for the test racks?

Thank you

 

 

 

Jacob R. | Applications Engineer | National Instruments

Member
Joncombat
Posts: 49
0 Kudos

Re: low level driver support

We have one PXI setup with the original cvi 7.0 using ni-serial 1.6, the remaining test equipment has been upgraded to later version of CVI and newer ni-serial drivers.  The code will run on the original setup but will not on ni-serial 3.6 +.  Before upgrading all our systems to the latest drivers we need to test our production test code prior to release.  As of now we are stuck on this comport issue.

 

 

Member
JL@NI
Posts: 124
0 Kudos

Re: low level driver support

Hello Jon,

 

Could you perform an NI I/O Trace on each machine to campare the calls made in each case? Here are some details on NI I/O Trace.

 

Regards,

 

Jeff L.

Applications Engineer | National Instruments
Member
Joncombat
Posts: 49
0 Kudos

Re: low level driver support

I will run the trace today.  Also, if I run the code on COM 1 (PC comport) it works correctly.  The issue is only with the NI-8420 serial ports

Member
Joncombat
Posts: 49
0 Kudos

Re: low level driver support

I ran the trace but it does not record comport data, only gpib and switching.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page