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
Active Participant
CJ_Butler__DASYLab_Pro
Posts: 740
0 Kudos

Re: Send different commands to RS232 during measurement

Martin, you should have posted this as a new question.

 

Without knowing the version of DASYLab, the level (Full, Basic, Lite, Pro) or the device that you are communicating with, we can only suggest some general things.

 

Create a RS232 Output module and configure it for the correct communications port. If you just need to send a command, configure the module to send commands, not data. Then enter the command in the command box. Use \r to send a <CR> and \n to send a <LF>.   

 

To use a data event or time event to trigger the RS232 module to send the command, you need to activate the setting to use an input. This input will look for 0 or 5, and 5 (TTL High) will send the command. You can also use an Action module to send the command  without an input on the RS232 output module .

 

You can use a Trigger or a Comparator module to determine when to send the command, or, any other technique that will provide a TTL high for the RS232 module.

 

- cj
Member
Martin wijaya
Posts: 13
0 Kudos

Re: Send different commands to RS232 during measurement

Dear Cj

 

Ok, I'll post it as a new question tomorrow as I need to see the machine. I'll provide the complete information later.

Thx

 

Regards

Martin Wijaya

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