Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

trouble with Serial time delay

hi,i need help.

my problem is that there are no output and input parameter is changing very fast,but subvi has results only when the subvi runs in the process of highlight.

i think it might because of time delay,but i don't kown how to correct it.

 

 

thank you very much.

Download All
0 Kudos
Message 1 of 4
(3,931 Views)

i think i need to present it in more details, i want to use serial to control 54 power modules.

the subvi only control a module and it is efficient, but there are no results when i input 54 parameter to the final edition vi, and the data on the front panel is changing very fast.

0 Kudos
Message 2 of 4
(3,927 Views)

I cannot open your VIs.  It appears that the language differences may be an issue. LabVIEW does not recognize them as valid LV files.

 

Generally when a VI runs correctly with Highlight Execution on and does not run correctly with it off, it is an indication that there are timing issues in the VI.

 

If you are reconfiguring the serial ports in the 54 module version, you may not be allowing enough time for port to get set up before attempting to communicate. Do you have 54 different serial ports? What kind of hardware are you using for the ports?

 

Lynn

0 Kudos
Message 3 of 4
(3,913 Views)

Thank you for your help. I have solved the problem.There is a mistake when I put Wait (ms).vi and VISA Bytes at Serial Port.vi together in the same frame, it seems like it has not enough time to read all the bytes.

 

 

Thank you!

 

 

0 Kudos
Message 4 of 4
(3,886 Views)