LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress Serial Flush Buffer

Is there a way to configure VISA to not send the MJ_FLUSH_BUFFERS command during a serial session?

Chris
Practical Physics, LLC
www.practicalphysicsllc.com
0 Kudos
Message 1 of 5
(2,966 Views)
The answer to this part of the problem is found here. It turns out the IOCTL_SERIAL_GET_COMM_STATUS is causing a similar problem. Anybody have any idea how to suppress this status request? It seems this USB to 422 device (or the serial device) is very basic in its function and would be happiest if I simply performed reads and writes without any other functions being performed.
Chris
Practical Physics, LLC
www.practicalphysicsllc.com
0 Kudos
Message 2 of 5
(2,954 Views)

Chris,

 

I'm not sure how to suppress this request.  Do you mind posting an NI-SPY capture of the error occuring?

 

If you haven't done an NI-SPY capture before, some instructions are here.

 

Thanks,

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 3 of 5
(2,923 Views)

Ben,

 

It will be Thursday before I can do a capture, but I do have more information for you. The device (Intelligent Motion Systems MForce Controller) does not return an error when it receives the IOCTL... command. The device only responds to commands sent one character at a time with no other commands allowed between characters. For example, the software that shipped with the device sends the command 'MR 1000\n' as individual characters, and the device echoes each character back as it is received (telnet style communication over USB). If the same command is sent as a string, the device ignores it. If the characters are sent individually out of LabVIEW/VISA, the IOCTL... command occurs and the command is ignored.

Chris
Practical Physics, LLC
www.practicalphysicsllc.com
0 Kudos
Message 4 of 5
(2,917 Views)

Chris,

 

Take a look at the attached example.  It's from this thread.  It seemed to solve problems using the same or similar USB to 422 converters.

 

 

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 5 of 5
(2,911 Views)