Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Send command every 30ms

Hi,
I have an application which acquire, process and visualization data. I need every 30ms send command via serial port. I don’t now how to control that. I try to use Timed look, but then the whole application doesn’t make anything else-only send the command.  I suppose I don´t know how to correct set the timed loop… Or is there any other way how to control that?

Thank you,

Oliv

0 Kudos
Message 1 of 3
(3,352 Views)

What you don't seem to understand is basic LabVIEW dataflow. When the timed loop starts, that is the only that will exeucte until you press the 'Stop Send' button. If you had used the regular while loop, you would have the same situation.

 

You could pull out the timed loop of the main while loop and run it in parallel. You might also try putting just the VISA Write code in the timeout event. Change the timeout value. Having a timeout of 0 is wrong anyway.

0 Kudos
Message 2 of 3
(3,341 Views)

Hi Oliva,

 

I suggest you to call our toll number (for free) and we can easily discuss thiss issue on phone.

 

According you profile I guess you are from Czech Republic.

Our free number for Czech is 800 142 669 for Slovak 0800 182 362. Press 2 for technical support.

  

Regards,

 

Jiri Keprt

 

Application Engineer

NI Czech Republic 

CLA, CTA

0 Kudos
Message 3 of 3
(3,303 Views)