LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Write conflict with Open/Close?

Dear coders,

 

I'm currently in front of a Visa communication problem that I cannot solve alone.

I'm sending commands through a USB port to an external device.

I have to problems:

1- The minimum speed between two string to send is around 90ms. Bellow this limit, the Visa Write vi displays an error.

2- If I want to call the Open/Close vis outside of the loop as it should be done, the Visa Write vi displays an error.

Could you help me please?

I give you two examples:

1- Example1 where everything is working except the fact that I cannot reduce the time between two string sent

2- Example2 where the Open/Close vis placed outside of the loop are not working

 

THANKS

 

0 Kudos
Message 1 of 4
(124 Views)

Hi CIML,

 

maybe you should provide information about the errors you get in your two options…

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 4
(104 Views)

Hi,

 

Someone contact me by message in the meantime.

One error in my code was the \r\n at the end of all strings. If I just put only \r, the system is now responding much faster.

 

Now, the error only comes from the delay between two strings. If this delay is smaller than 40ms, the Visa write vi crashes with this error

The error returned is "-1073807360" "VISA Write dans AOTF_Example2.vi" :-(

 

0 Kudos
Message 3 of 4
(93 Views)

@CIML wrote:

Now, the error only comes from the delay between two strings. If this delay is smaller than 40ms, the Visa write vi crashes with this error

The error returned is "-1073807360" "VISA Write dans AOTF_Example2.vi" :-(


Unknown System Error.  You might just be limited by the hardware (USB hub and/or your instrument).


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 4 of 4
(73 Views)